pub fn init(
context: Context,
logging: Logging,
metrics: Option<SocketAddr>,
traces: Option<Config>,
)
Expand description
Initialize telemetry with the given configuration.
If metrics
is provided, starts serving metrics at the given address at /metrics
.
If traces
is provided, enables OpenTelemetry trace export.