-
Notifications
You must be signed in to change notification settings - Fork 977
Metrics: Scope the Views API #466
Copy link
Copy link
Closed
Labels
area:sdkRelated to the SDKRelated to the SDKpriority:p1Highest priority levelHighest priority levelrelease:required-for-gaMust be resolved before GA release, or nice to have before GAMust be resolved before GA release, or nice to have before GAspec:metricsRelated to the specification/metrics directoryRelated to the specification/metrics directory
Milestone
Metadata
Metadata
Assignees
Labels
area:sdkRelated to the SDKRelated to the SDKpriority:p1Highest priority levelHighest priority levelrelease:required-for-gaMust be resolved before GA release, or nice to have before GAMust be resolved before GA release, or nice to have before GAspec:metricsRelated to the specification/metrics directoryRelated to the specification/metrics directory
The OpenCensus system gave us a precedent for a "Views" API over metrics, allowing users to configure how instruments are aggregated, including which operator to use and which dimensions to use.
We have debated whether the developers, who are responsible for defining metric instruments, should have the ability to declare aggregations directly, at the point of definition. As an alternative, we have discussed the excluding this ability from the instrument declaration and requiring all aggregations to be configured through a Views API.
In the 0.4 specification we are considering to remove
WithRecommendedKeyswhich is the only existing facility in the specification that lets a user configure aggregation.As a whole, the Views API needs to be scoped for OpenTelemetry. I believe this should be considered an SDK API, meaning the default SDK will implement this facility. Will a Views API be written for every language? (I assume not.) Will some languages expect to export raw events, to allow a Views API to execute in the OTel collector? (I assume so.)