You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
bfbfdf9d53
Related to https://github.com/open-telemetry/opentelemetry-go/issues/7686. This makes the Prometheus exporter ignore all metrics from the Prometheus bridge. This is almost certainly a misconfiguration, but may happen when using autoexport or other packages that automatically install the bridge.
17 lines
589 B
Go
17 lines
589 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package prometheus // import "go.opentelemetry.io/otel/exporters/prometheus"
|
|
|
|
import "errors"
|
|
|
|
// Sentinel errors for consistent error checks in tests.
|
|
var (
|
|
errInvalidMetricType = errors.New("invalid metric type")
|
|
errInvalidMetric = errors.New("invalid metric")
|
|
errEHScaleBelowMin = errors.New("exponential histogram scale below minimum supported")
|
|
errBridgeNotSupported = errors.New(
|
|
"metrics from the prometheus bridge are not supported in the prometheus exporter, and will be dropped",
|
|
)
|
|
)
|