1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-07-15 01:04:25 +02:00

Rename instrumentationName param of Meter method (#3734)

Rename to name to match our trace API and the metric specification.
This commit is contained in:
Tyler Yahn
2023-02-16 12:04:19 -08:00
committed by GitHub
parent 80f187fd0d
commit c1802c213e

View File

@ -26,12 +26,12 @@ import (
// //
// Warning: methods may be added to this interface in minor releases. // Warning: methods may be added to this interface in minor releases.
type MeterProvider interface { type MeterProvider interface {
// Meter creates an instance of a `Meter` interface. The instrumentationName // Meter creates an instance of a `Meter` interface. The name must be the
// must be the name of the library providing instrumentation. This name may // name of the library providing instrumentation. This name may be the same
// be the same as the instrumented code only if that code provides built-in // as the instrumented code only if that code provides built-in
// instrumentation. If the instrumentationName is empty, then a // instrumentation. If the name is empty, then a implementation defined
// implementation defined default name will be used instead. // default name will be used instead.
Meter(instrumentationName string, opts ...MeterOption) Meter Meter(name string, opts ...MeterOption) Meter
} }
// Meter provides access to instrument instances for recording metrics. // Meter provides access to instrument instances for recording metrics.