1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/metric
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
..
global Add back global metric Meter function (#2750) 2022-03-30 16:50:14 -07:00
instrument [API EPIC 4/4] Fix tests and examples (#2587) 2022-03-02 09:50:29 -06:00
internal/global Don't panic when setting a provider to itself (#2749) 2022-03-31 11:16:51 -07:00
nonrecording [API EPIC 4/4] Fix tests and examples (#2587) 2022-03-02 09:50:29 -06:00
unit Replaces golint by revive and fix newly reported linter issues (#1946) 2021-06-08 10:10:01 -07:00
config.go [API EPIC 4/4] Fix tests and examples (#2587) 2022-03-02 09:50:29 -06:00
doc.go [API EPIC 4/4] Fix tests and examples (#2587) 2022-03-02 09:50:29 -06:00
example_test.go [API EPIC 4/4] Fix tests and examples (#2587) 2022-03-02 09:50:29 -06:00
go.mod Release v1.6.1 (#2746) 2022-03-28 09:50:10 -07:00
go.sum Adds metrics Global (#2660) 2022-03-22 08:33:13 -07:00
meter.go [API EPIC 4/4] Fix tests and examples (#2587) 2022-03-02 09:50:29 -06:00