1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/internal/global
Damien Mathieu 625d76daea
Don't panic when setting a provider to itself (#2749)
* don't panic when setting a provider to itself

* check for the presence of a delegate in all tests

* use t.Fatal instead of t.Error

* remove unneeded return

* Update CHANGELOG.md

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

* log errors when skipping providers

* check for current provider outside of the run once

* Update internal/global/state_test.go

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

* Update internal/global/state_test.go

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

* Update internal/global/state_test.go

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

* Update internal/global/state_test.go

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

* Update internal/global/state_test.go

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

* Update internal/global/state_test.go

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

* Update metric/internal/global/state_test.go

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

* Update metric/internal/global/state_test.go

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

* Update internal/global/state_test.go

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2022-03-31 11:16:51 -07:00
..
benchmark_test.go run ResetForTest during cleanup (#2754) 2022-03-31 10:21:14 -07:00
internal_logging_test.go Fixes race, moved into global 2021-11-24 20:06:39 +00:00
internal_logging.go Minor PR fixes 2021-12-01 16:47:46 +00:00
propagator_test.go run ResetForTest during cleanup (#2754) 2022-03-31 10:21:14 -07:00
propagator.go Add vanity imports to internal packages (#2280) 2021-10-29 09:34:37 -07:00
state_test.go Don't panic when setting a provider to itself (#2749) 2022-03-31 11:16:51 -07:00
state.go Don't panic when setting a provider to itself (#2749) 2022-03-31 11:16:51 -07:00
trace_test.go run ResetForTest during cleanup (#2754) 2022-03-31 10:21:14 -07:00
trace.go Add vanity imports to internal packages (#2280) 2021-10-29 09:34:37 -07:00