otel

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package otel is the legacy low-cardinality OpenTelemetry cache adapter.

Deprecated: use github.com/faustbrian/go-cache/v2/adapters/otel. This package remains supported for the longer of 180 days after successor availability and two subsequently published stable root-module minor releases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Observer

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

Observer preserves the legacy OpenTelemetry adapter type identity.

func New

func New(meter metric.Meter) (*Observer, error)

New constructs all instruments required by an Observer.

func (*Observer) Observe

func (observer *Observer) Observe(ctx context.Context, event cache.Event) error

Observe records one validated, low-cardinality cache event.

Jump to

Keyboard shortcuts

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