pub fn init(
context: Context,
logs: Logs,
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. When None, span
callsites in the runtime-provided subscriber are disabled and only log events
are emitted (per Logs::level).