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

Function span

packages/platform/node/test/NodeHttpServer.test.ts:958–967  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

956 Tracer.Tracer,
957 Tracer.make({
958 span(options) {
959 assert.strictEqual(options.name, "GET")
960 assert.strictEqual(options.kind, "client")
961 assert(options.parent._tag === "Some")
962 if (options.parent.value._tag !== "Span") {
963 throw new Error("Expected span parent")
964 }
965 assert.strictEqual(options.parent.value.name, "request parent")
966 return requestSpan
967 }
968 })
969 ),
970 Effect.withSpan("request parent"),

Callers

nothing calls this directly

Calls 4

getMethod · 0.65
assertFunction · 0.50
callMethod · 0.45
succeedMethod · 0.45

Tested by

no test coverage detected