Expand description
Telemetry facade. Currently wraps Sentry. Designed for extraction to
docspec-telemetry when (a) OpenTelemetry is added, OR (b) docspec-cli
wants Sentry, OR (c) Prometheus metrics land. Keep the public API surface
stable and free of HTTP-specific types.
Modules§
- sentry
- Sentry telemetry backend internals.
Structs§
- Telemetry
Guard - Keeps the telemetry client alive until shutdown so buffered events can flush.
Functions§
- init
- Initializes telemetry from the configured environment and returns its guard.
- tower_
http_ layer - Returns a tower HTTP layer that enriches Sentry events when telemetry is initialized.
- tower_
new_ layer - Returns a tower layer that binds a Sentry hub to each request when telemetry is initialized.
- tracing_
layer - Returns a Sentry tracing layer when telemetry is initialized.