Skip to main content

Module observability

Module observability 

Source
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§

TelemetryConfig
Minimal telemetry config that mirrors the real one’s surface so callers don’t need cfg gates.

Enums§

TelemetryError

Functions§

build_env_filter
extract_table_name
init_telemetry
When otel is off, install a basic tracing-subscriber formatter so log output still reaches stderr. Returns Ok(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