Documentation
¶
Overview ¶
Package otel turns ota's update events into OpenTelemetry metrics and traces. It is a separate module so the updater core carries no OpenTelemetry dependency; programs that want it add one line:
opts.OnEvent = otaotel.Subscriber(meterProvider, tracerProvider)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Subscriber ¶
func Subscriber(mp metric.MeterProvider, tp trace.TracerProvider) func(ota.Event)
Subscriber returns an ota event handler that records:
- ota.update.stages: a counter per stage reached (attribute ota.stage);
- ota.download.duration: seconds from the first download byte to verified;
- one span per attempt ("ota.update"), with an event per stage, ended as an error when the attempt failed, was refused or rolled back.
Types ¶
This section is empty.