mirror of https://github.com/knative/pkg.git
This commit is contained in:
parent
98fbab2143
commit
a51a29b220
|
|
@ -35,10 +35,7 @@ func init() {
|
|||
}
|
||||
|
||||
func buildPrometheus(_ context.Context, cfg Config) (sdkmetric.Reader, shutdownFunc, error) {
|
||||
r, err := otelprom.New(
|
||||
otelprom.WithoutCounterSuffixes(),
|
||||
otelprom.WithoutUnits(),
|
||||
)
|
||||
r, err := otelprom.New()
|
||||
if err != nil {
|
||||
return nil, noopFunc, fmt.Errorf("unable to create otel prometheus exporter: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue