You've already forked opentelemetry-go
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:
@ -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.
|
||||||
|
Reference in New Issue
Block a user