Telemetry
2 specifications, 31 requirements. All libraries
0001 Telemetry
| Requirement | Mechanism | Who | Note |
|---|---|---|---|
FR-001 | check | bun test suite/ | otel.test.ts: the model's types (type-level tests) and the values an attribute can hold |
FR-002 | check | bun test suite/ | otel.test.ts: ids from given bytes, zeros refused, brands kept apart |
FR-003 | check | bun test suite/ | otel.test.ts: traceparent and tracestate against the W3C examples, with property round trips |
FR-004 | check | bun test suite/ | otlp.test.ts: OTLP JSON encode and decode, round-trip properties, int64 as strings, unknown fields ignored |
FR-005 | check | bun test suite/ | otel.test.ts: configuration from OTEL_* records, invalid values warned and defaulted |
FR-006 | check | bun test suite/ | otel.test.ts: redaction of secret attributes, URLs, tokens, name=value pairs, provider token formats |
FR-007 | check | bun test suite/ | otel.test.ts: attribute, event and link limits with dropped counts |
FR-008 | check | bun test suite/ | otel.test.ts: the samplers, ratio decided by the trace id alone |
FR-009 | check | bun test suite/ | signals.test.ts: defineSignals, with @ts-expect-error for undeclared kinds and wrong attributes |
FR-010 | check | bun test suite/ | signals.test.ts: span ends by its Result, exceptions recorded and rethrown, one end only |
FR-011 | check | bun test suite/ | signals.test.ts: an exact span tree from a fixed clock and random source |
FR-012 | check | bun test suite/ | signals.test.ts: in-memory, simple and batch processors, drops counted, flush bounded |
FR-013 | check | bun test suite/ | signals.test.ts: counter, up-down, gauge and histogram aggregation |
FR-014 | check | bun test suite/ | otel-host.test.ts: export to a local receiver, retries on 503 with Retry-After, never throws |
FR-015 | check | bun test suite/ | otel-host.test.ts: the probe gives up within 150 ms, the exit wait within a second |
FR-016 | check | bun test suite/ | otel-host.test.ts: the journal writes OTLP lines, rotates and removes files past their age |
FR-017 | check | bun test suite/ | otel-host.test.ts: the current span across await, and the parent from TRACEPARENT |
FR-018 | check | bun test suite/ | process-span.test.ts: proc spans, with traceparent passed on; the http client and serve spans are proved by commons/ts tests/runtime/otel-net.test.ts until the library net is lifted |
FR-019 | check | bun test suite/ | otel-host.test.ts: the receiver decodes, refuses protobuf (415) and bad JSON (400) |
FR-020 | gate | .github/workflows/ifc-typescript.auto.yml | the otel-conformance job runs suite/otel-conformance.test.ts against the pinned OpenTelemetry Collector and compares its file export |
FR-021 | check | bun test suite/ | render.test.ts: the reducer in each mode, snapshots through the terminal emulator |
FR-022 | check | bun test suite/ | render.test.ts: lines cut by display width, elapsed time and progress |
FR-023 | check | bun test suite/ | render.test.ts: the export warning said once, dimmed, at the end |
FR-024 | check | bun test suite/ | console.test.ts: the console is the only writer, its modes, uncaught errors recorded and rendered |
FR-025 | check | bun test suite/ | render.test.ts: the pending and action marks and roles; a pending or an action is no warning |
FR-026 | check | bun run verify | the package is built, inspected and packed by tools/pack.ts; tests/commons-packages.test.ts installs the tarball and runs every entry on Node 26 and Bun and type-checks a consumer |