Help us shape the future of Go! Take the 2026 Go Developer Survey

otelpostgres

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 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/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/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/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/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