1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-10 09:50:58 +02:00
opentelemetry-go/internal
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
..
baggage Add vanity imports to internal packages (#2280) 2021-10-29 09:34:37 -07:00
global Don't panic when setting a provider to itself (#2749) 2022-03-31 11:16:51 -07:00
internaltest Add vanity imports to internal packages (#2280) 2021-10-29 09:34:37 -07:00
matchers Add vanity imports to internal packages (#2280) 2021-10-29 09:34:37 -07:00
tools Bump github.com/golangci/golangci-lint from 1.45.0 to 1.45.2 in /internal/tools (#2729) 2022-03-28 07:47:38 -07:00
trace/noop Add vanity imports to internal packages (#2280) 2021-10-29 09:34:37 -07:00
rawhelpers.go Add vanity imports to internal packages (#2280) 2021-10-29 09:34:37 -07:00