1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-07 23:02:15 +02:00
opentelemetry-go/sdk/metric
Joshua MacDonald 2578accaa8
otel: conceal unwrapping for global async instrument registration (#5881)
~Two defects are fixed here. However, note that async instrument
delegation appears to have been broken a long time.~

Internalizes and tests the behavior of the Global MeterProvider. This
moves the call to `Unwrap()` out of the SDK, fully concealing it within
the internal/global package (using an un-exported method).

This adds a test for the new functionality. While this test is not
comprehensive, because it doesn't test every instrument variation, it
explicitly tests that both the NewCallback function and the Observe
functions receive objects constructed by the alternate SDK.

Fixes #5827

---------

Co-authored-by: David Ashpole <dashpole@google.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
2024-10-18 10:36:05 -07:00
..
exemplar Add selector of exemplar reservoir providers to metric.Stream configuration (#5861) 2024-10-18 09:05:10 -04:00
internal Add selector of exemplar reservoir providers to metric.Stream configuration (#5861) 2024-10-18 09:05:10 -04:00
metricdata [chore]: enable len and empty rules from testifylint (#5832) 2024-09-21 08:04:28 -07:00
aggregation_test.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
aggregation.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
benchmark_test.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
cache_test.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
cache.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
config_test.go Allow configuring the exemplar filter on the metrics SDK (#5850) 2024-10-11 16:02:20 -04:00
config.go Allow configuring the exemplar filter on the metrics SDK (#5850) 2024-10-11 16:02:20 -04:00
doc.go Add comment to other observable instruments about repeated creation with callbacks (#5606) 2024-07-12 11:45:51 -07:00
env.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
example_test.go Add selector of exemplar reservoir providers to metric.Stream configuration (#5861) 2024-10-18 09:05:10 -04:00
exemplar_test.go Move global random number generator to randRes field (#5819) 2024-09-16 07:31:15 -07:00
exemplar.go Add selector of exemplar reservoir providers to metric.Stream configuration (#5861) 2024-10-18 09:05:10 -04:00
exporter.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
go.mod Release v1.31.0/v0.53.0/v0.7.0/v0.0.10 (#5883) 2024-10-11 12:59:27 -04:00
go.sum fix(deps): update golang.org/x (#5872) 2024-10-07 09:13:11 +02:00
instrument_test.go Add the synchronous gauge to the metric API and SDK (#5304) 2024-05-16 09:56:40 -07:00
instrument.go Add selector of exemplar reservoir providers to metric.Stream configuration (#5861) 2024-10-18 09:05:10 -04:00
instrumentkind_string.go Fix exported instrument kind const value change (#5385) 2024-05-21 08:46:38 -07:00
manual_reader_test.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
manual_reader.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
meter_test.go Allow configuring the exemplar filter on the metrics SDK (#5850) 2024-10-11 16:02:20 -04:00
meter.go otel: conceal unwrapping for global async instrument registration (#5881) 2024-10-18 10:36:05 -07:00
periodic_reader_test.go Fix typos (#5763) 2024-09-09 08:53:15 +02:00
periodic_reader.go Add errorlint linter (#5535) 2024-06-25 10:55:00 -07:00
pipeline_registry_test.go Allow configuring the exemplar filter on the metrics SDK (#5850) 2024-10-11 16:02:20 -04:00
pipeline_test.go Add selector of exemplar reservoir providers to metric.Stream configuration (#5861) 2024-10-18 09:05:10 -04:00
pipeline.go Add selector of exemplar reservoir providers to metric.Stream configuration (#5861) 2024-10-18 09:05:10 -04:00
provider_test.go [chore]: enable len and empty rules from testifylint (#5832) 2024-09-21 08:04:28 -07:00
provider.go Allow configuring the exemplar filter on the metrics SDK (#5850) 2024-10-11 16:02:20 -04:00
reader_test.go [chore]: enable suite-extra-assert-call rule from testifylint (#5833) 2024-09-23 08:56:45 +02:00
reader.go typo: fix docs (#5649) 2024-07-26 09:41:00 -07:00
README.md Add READMEs to every package (#5103) 2024-03-26 20:13:54 +01:00
version_test.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
version.go Release v1.31.0/v0.53.0/v0.7.0/v0.0.10 (#5883) 2024-10-11 12:59:27 -04:00
view_test.go Add the synchronous gauge to the metric API and SDK (#5304) 2024-05-16 09:56:40 -07:00
view.go Add selector of exemplar reservoir providers to metric.Stream configuration (#5861) 2024-10-18 09:05:10 -04:00

Metric SDK

PkgGoDev