otelpostgres

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package otelpostgres preserves the released OpenTelemetry adapter path. New code should import github.com/faustbrian/go-postgres/v2/adapters/otel.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config deprecated

type Config struct {
	MeterProvider metric.MeterProvider
}

Config selects the standard OpenTelemetry meter provider.

Deprecated: import github.com/faustbrian/go-postgres/v2/adapters/otel.

type Observer deprecated

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

Observer records bounded lifecycle and transaction metrics.

Deprecated: import github.com/faustbrian/go-postgres/v2/adapters/otel.

func New deprecated

func New(config Config) (*Observer, error)

New constructs an OpenTelemetry observer with the released instrumentation scope and standard database metric names.

Deprecated: import github.com/faustbrian/go-postgres/v2/adapters/otel.

func (*Observer) Observe

func (o *Observer) Observe(ctx context.Context, observation postgres.Observation)

Observe implements postgres.Observer.

Jump to

Keyboard shortcuts

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