mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* Prefix metric namespaces with tempo instead of cortex * Remove cortex_ prefixed metrics * Mark breaking change
22 lines
630 B
Go
22 lines
630 B
Go
package log
|
|
|
|
import (
|
|
"github.com/go-kit/log/level"
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
var experimentalFeaturesInUse = promauto.NewCounter(
|
|
prometheus.CounterOpts{
|
|
Namespace: "tempo",
|
|
Name: "experimental_features_in_use_total",
|
|
Help: "The number of experimental features in use.",
|
|
},
|
|
)
|
|
|
|
// WarnExperimentalUse logs a warning and increments the experimental features metric.
|
|
func WarnExperimentalUse(feature string) {
|
|
level.Warn(Logger).Log("msg", "experimental feature in use", "feature", feature)
|
|
experimentalFeaturesInUse.Inc()
|
|
}
|