Expand description
Observability: traces, metrics, and structured logging.
With the otel feature: real OpenTelemetry pipeline (OTLP exporters for
traces/metrics/logs, instrumented DB queries, function/job/HTTP metrics).
Without otel: every recording function is a no-op. Callers can record
events unconditionally without compile-time cfg gates everywhere.
tracing-subscriber log output still works via init_telemetry’s
fallback path.
Structs§
- Telemetry
Config - Minimal telemetry config that mirrors the real one’s surface so callers don’t need cfg gates.
Enums§
Functions§
- build_
env_ filter - extract_
table_ name - init_
telemetry - When
otelis off, install a basictracing-subscriberformatter so log output still reaches stderr. ReturnsOk(false)to indicate that no exporters were installed. - instrumented_
query - record_
fn_ cache - record_
fn_ execution - record_
http_ request - record_
job_ execution - record_
lost_ claim - record_
notify_ payload_ bytes - record_
pool_ metrics - record_
query_ duration - record_
subscription_ counts - record_
workflow_ scheduler_ duration - set_
active_ connections - shutdown_
telemetry