Skip to content

Commit

Permalink
fix(oteldb): enable UTF-8 Prometheus label validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed Nov 23, 2024
1 parent a41cacb commit 8094192
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/oteldb/oteldb.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ import (

"github.com/go-faster/errors"
"github.com/go-faster/sdk/app"
promodel "github.com/prometheus/common/model"
"go.uber.org/zap"

"github.com/go-faster/oteldb/internal/autopyro"
"github.com/go-faster/oteldb/internal/autozpages"
)

func init() {
// Match v3.0.0.
promodel.NameValidationScheme = promodel.UTF8Validation
}

func main() {
app.Run(func(ctx context.Context, lg *zap.Logger, m *app.Metrics) error {
shutdown, err := autozpages.Setup(m.TracerProvider())
Expand Down

0 comments on commit 8094192

Please sign in to comment.