(headers: Record<string, string>, sampled: boolean)
| 7 | const spanId = "e457b5a2e4d86bd1" |
| 8 | |
| 9 | const assertSampled = (headers: Record<string, string>, sampled: boolean) => { |
| 10 | const span = Option.getOrThrow(HttpTraceContext.fromHeaders(Headers.fromInput(headers))) |
| 11 | strictEqual(span.traceId, traceId) |
| 12 | strictEqual(span.spanId, spanId) |
| 13 | strictEqual(span.sampled, sampled) |
| 14 | } |
| 15 | |
| 16 | describe("HttpTraceContext", () => { |
| 17 | describe("fromHeaders", () => { |
no test coverage detected