You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-07-13 01:00:22 +02:00
Rename *Provider names (#1190)
* Rename *Provider names There is overlap in naming with MeterProviders and TracerProviders. This is means the specification is not implemented and these types can not exist in the same package (#1179). This makes each type and related functions and types explicit. * Add changes to CHANGELOG
This commit is contained in:
@ -43,7 +43,7 @@ func TestPullNoCache(t *testing.T) {
|
||||
)
|
||||
|
||||
ctx := context.Background()
|
||||
meter := puller.Provider().Meter("nocache")
|
||||
meter := puller.MeterProvider().Meter("nocache")
|
||||
counter := metric.Must(meter).NewInt64Counter("counter.sum")
|
||||
|
||||
counter.Add(ctx, 10, label.String("A", "B"))
|
||||
@ -80,7 +80,7 @@ func TestPullWithCache(t *testing.T) {
|
||||
puller.SetClock(mock)
|
||||
|
||||
ctx := context.Background()
|
||||
meter := puller.Provider().Meter("nocache")
|
||||
meter := puller.MeterProvider().Meter("nocache")
|
||||
counter := metric.Must(meter).NewInt64Counter("counter.sum")
|
||||
|
||||
counter.Add(ctx, 10, label.String("A", "B"))
|
||||
|
Reference in New Issue
Block a user