MCPcopy Create free account
hub / github.com/Effect-TS/effect / recordConnectionWait

Function recordConnectionWait

packages/effect/src/internal/sql.ts:35–39  ·  view source on GitHub ↗
(span: Tracer.Span, clock: Clock)

Source from the content-addressed store, hash-verified

33 * @internal
34 */
35export const recordConnectionWait = (span: Tracer.Span, clock: Clock): void =>
36 span.attribute(
37 "db.client.connection.wait_time_ms",
38 Number(clock.currentTimeNanosUnsafe() - span.status.startTime) / 1e6
39 )

Callers 3

streamFunction · 0.90
runOnConnectionFunction · 0.90
makeWithTransactionFunction · 0.90

Calls 3

attributeMethod · 0.65
NumberFunction · 0.50

Tested by

no test coverage detected