1
0
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:
Tyler Yahn
2020-09-23 15:16:13 -07:00
committed by GitHub
parent 5dd2962202
commit 7d71867644
49 changed files with 276 additions and 256 deletions

View File

@ -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"))