oteladapter

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package oteladapter implements both public OpenTelemetry adapter paths while retaining their distinct instrumentation scopes. New borrows a provider and creates instruments; Observe projects fixed categories without recording SQL. Provider export/shutdown and query tracing remain outside this adapter.

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 records bounded lifecycle and transaction metrics.

func New

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

New constructs an observer using the public package's instrumentation scope.

func (*Observer) Observe

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

Observe records one bounded PostgreSQL observation.

Jump to

Keyboard shortcuts

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