otel

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL