-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metric View API Prototype #1473
Conversation
28d204a
to
871759c
Compare
Codecov Report
@@ Coverage Diff @@
## main #1473 +/- ##
=======================================
- Coverage 79.2% 79.0% -0.3%
=======================================
Files 127 129 +2
Lines 6659 6768 +109
=======================================
+ Hits 5280 5350 +70
- Misses 1124 1163 +39
Partials 255 255
|
002498b
to
0caf60e
Compare
…ort/metric to otel/metric
…lector in metrics processing/exporting
d8ed3a0
to
0fba138
Compare
0fba138
to
50f51a6
Compare
Added fixed bucket histogram view example using simple aggregation selector
Closing as the metric's part of the specification is going through a large refactor currently and we will likely need to reevaluate the entire signal once it stabilizes, including how we want to approach views. |
Any news on this? Not being able to specify buckets per single metric(s) is a real blocker for a lot of scenarios. Is there a way to possible help? |
View API was discussed in the OTEP which is not merged yet (OTEP#89). Having a prototype may push this forward (optentelemetry-specification#466).
Inspired by the Python View API Prototype but the approach for the Golang SDK is a bit different.
View only works for synchronous instruments since the semantics for asynchronous instruments is undefined at the moment. So observers functionality does not change.
The uniqueness of a view is defined by a tuple of instrument, label keys and its aggregator factory. Note that an
Ungroup
view is the same with defining an empty pair of label keys.Summary of changes:
Aggregator
,Aggregation
andAggregatorSelector
interfaces to otel/metric package to avoid concept dependency cycle. (commit)View
type andRegisterView
method as part of the Metric API. (commit)