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

Function span

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

Source from the content-addressed store, hash-verified

403 Tracer.Tracer,
404 Tracer.make({
405 span(options) {
406 assert.strictEqual(options.name, "http.client GET")
407 assert.strictEqual(options.kind, "client")
408 assert(options.parent._tag === "Some")
409 if (options.parent.value._tag !== "Span") {
410 throw new Error("Expected span parent")
411 }
412 assert.strictEqual(options.parent.value.name, "request parent")
413 return requestSpan
414 }
415 })
416 ),
417 Effect.withSpan("request parent"),

Callers

nothing calls this directly

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected