Module observability

Source

Structs§

OtelGuard

Functions§

env_filter
create a RUST_LOG env based log filter with default level set to info
init_tracing_subscriber
Initialize tracing-subscriber with env filter based on RUST_LOG env variable. fmt layer is used to print logs to stdout. OpenTelemetryLayer is used to export logs to the configured OTLP endpoint. fmt layer with custom writer is used to write logs to log file in datadir.
setup_file_appender
create a non blocking tracing file appender with daily rolling