Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶ added in v0.1.3
Middleware collects prometheus metrics from HTTP server requests.
See https://opentelemetry.io/docs/reference/specification/metrics/semantic_conventions/http-metrics/ for exported metrics.
func MustNewDefault ¶ added in v0.1.6
func MustNewDefault(ctx context.Context) *prometheus.Exporter
MustNewDefault calls NewDefault and panics if there was an error.
func New ¶
New creates and configures an OpenTelemetry prometheus exporter. Providing a prometheus.Config is optional
func NewDefault ¶ added in v0.1.6
func NewDefault(ctx context.Context) (*prometheus.Exporter, error)
NewDefault creates and configures OpenTelemetry for exporting Prometheus metrics. It uses the default Prometheus configuration and sets it as the global provider.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.