Documentation
¶
Overview ¶
Package postgresotel adapts postgres observations to standard OpenTelemetry metrics without recording SQL, arguments, DSNs, or raw errors. New borrows a meter provider, defaulting to no-op instruments. The caller owns provider export/shutdown; this adapter does not add query tracing or a background loop.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// MeterProvider is borrowed; nil selects a no-op provider. Its shutdown is
// caller-owned.
MeterProvider metric.MeterProvider
}
Config selects the standard OpenTelemetry meter provider.
Click to show internal directories.
Click to hide internal directories.