Skip to content

Commit

Permalink
Rename instrumentationName param of Meter method (#3734)
Browse files Browse the repository at this point in the history
Rename to name to match our trace API and the metric specification.
  • Loading branch information
MrAlias authored Feb 16, 2023
1 parent 80f187f commit c1802c2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions metric/meter.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ import (
//
// Warning: methods may be added to this interface in minor releases.
type MeterProvider interface {
// Meter creates an instance of a `Meter` interface. The instrumentationName
// must be the name of the library providing instrumentation. This name may
// be the same as the instrumented code only if that code provides built-in
// instrumentation. If the instrumentationName is empty, then a
// implementation defined default name will be used instead.
Meter(instrumentationName string, opts ...MeterOption) Meter
// Meter creates an instance of a `Meter` interface. The name must be the
// name of the library providing instrumentation. This name may be the same
// as the instrumented code only if that code provides built-in
// instrumentation. If the name is empty, then a implementation defined
// default name will be used instead.
Meter(name string, opts ...MeterOption) Meter
}

// Meter provides access to instrument instances for recording metrics.
Expand Down

0 comments on commit c1802c2

Please sign in to comment.