This commit is contained in:
Dave Protasowski 2025-08-17 10:00:35 -04:00
parent 98fbab2143
commit a51a29b220
1 changed files with 1 additions and 4 deletions

View File

@ -35,10 +35,7 @@ func init() {
} }
func buildPrometheus(_ context.Context, cfg Config) (sdkmetric.Reader, shutdownFunc, error) { func buildPrometheus(_ context.Context, cfg Config) (sdkmetric.Reader, shutdownFunc, error) {
r, err := otelprom.New( r, err := otelprom.New()
otelprom.WithoutCounterSuffixes(),
otelprom.WithoutUnits(),
)
if err != nil { if err != nil {
return nil, noopFunc, fmt.Errorf("unable to create otel prometheus exporter: %w", err) return nil, noopFunc, fmt.Errorf("unable to create otel prometheus exporter: %w", err)
} }