idempotencytelemetry

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package idempotencytelemetry adapts bounded observations to OpenTelemetry metrics. The telemetry runtime exposes the standard MeterProvider used by New, so the integration does not require global provider registration.

Index

Constants

This section is empty.

Variables

View Source
var ErrNilMeterProvider = errors.New("idempotencytelemetry: nil meter provider")

ErrNilMeterProvider reports an unusable telemetry configuration.

Functions

This section is empty.

Types

type Observer

type Observer struct {
	// contains filtered or unexported fields
}

Observer counts semantic transitions using bounded attributes.

func New

func New(provider metric.MeterProvider) (*Observer, error)

New constructs an observer from a standard OpenTelemetry meter provider. Pass telemetry Runtime.MeterProvider() to bind an application runtime.

func (*Observer) Observe

func (observer *Observer) Observe(ctx context.Context, event idempotency.Observation)

Observe increments the transition counter. Correlation is deliberately excluded because keyed digests remain high-cardinality metric attributes.

Jump to

Keyboard shortcuts

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