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

Function span

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected