@velum-labs/routekit-tracing 0.18.0 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# `@velum-labs/routekit-tracing`
|
|
2
|
+
|
|
3
|
+
Brand-neutral OpenTelemetry runtime, propagation, listeners, and export redaction.
|
|
4
|
+
|
|
5
|
+
This package provides trace carriers, environment/header propagation, readable
|
|
6
|
+
span and event helpers, in-process listeners, OTLP exporter policy, and tracing
|
|
7
|
+
provider lifecycle utilities. It is generic infrastructure, not RouteKit
|
|
8
|
+
product telemetry.
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
import {
|
|
12
|
+
carrierFromHeaders,
|
|
13
|
+
initTracing,
|
|
14
|
+
newSessionCarrier,
|
|
15
|
+
toExportableSpan,
|
|
16
|
+
withBaggage
|
|
17
|
+
} from "@velum-labs/routekit-tracing";
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Export policy keeps loopback OTLP endpoints available for local development
|
|
21
|
+
while allowing hosts to redact attributes before spans or log records leave the
|
|
22
|
+
process.
|
|
23
|
+
|
|
24
|
+
## Boundaries
|
|
25
|
+
|
|
26
|
+
- Anonymous product telemetry consent and event schemas live in `@velum-labs/routekit-telemetry-core`.
|
|
27
|
+
- Daemon-specific tracing setup belongs to `@velum-labs/routekit-daemon`.
|
|
28
|
+
- Gateway and account packages should emit neutral spans/events, not configure exporters directly.
|
|
29
|
+
|