1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-12-13 23:57:10 +02:00

Make Meter a struct, simplify the global Meter (#709)

* Tests pass

* Precommit pass

* More lint

* Remove a few interfaces

* Final edits

* Fix comments

* Indentation

* registry->unique

* Comments
This commit is contained in:
Joshua MacDonald
2020-05-11 20:29:06 -07:00
committed by GitHub
parent 64afb05e53
commit 32ddc16e1b
7 changed files with 175 additions and 307 deletions

View File

@@ -37,7 +37,7 @@ func (*testTraceProvider) Tracer(_ string) trace.Tracer {
}
func (*testMeterProvider) Meter(_ string) metric.Meter {
return &metric.NoopMeter{}
return metric.Meter{}
}
func TestMultipleGlobalTracerProvider(t *testing.T) {