MCPcopy Index your code
hub / github.com/Effect-TS/effect / span

Function span

packages/platform-node/test/HttpServer.test.ts:449–455  ·  view source on GitHub ↗
(name, parent, _, __, ___, kind)

Source from the content-addressed store, hash-verified

447 Effect.flatMap((r) => r.json),
448 Effect.withTracer(Tracer.make({
449 span(name, parent, _, __, ___, kind) {
450 assert.strictEqual(name, "http.client GET")
451 assert.strictEqual(kind, "client")
452 assert(parent._tag === "Some" && parent.value._tag === "Span")
453 assert.strictEqual(parent.value.name, "request parent")
454 return requestSpan
455 },
456 context(f, _fiber) {
457 return f()
458 }

Callers

nothing calls this directly

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected