Debian Codegraph @

exporters/prometheus/errors.go

raw
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 package prometheus // import "go.opentelemetry.io/otel/exporters/prometheus"
5
6 import "errors"
7
8 // Sentinel errors for consistent error checks in tests.
9 var (
10 errInvalidMetricType = errors.New("invalid metric type")
11 errInvalidMetric = errors.New("invalid metric")
12 errEHScaleBelowMin = errors.New("exponential histogram scale below minimum supported")
13 errBridgeNotSupported = errors.New(
14 "metrics from the prometheus bridge are not supported in the prometheus exporter, and will be dropped",
15 )
16 )