open-telemetry / open-telemetry/opentelemetry-java
Add exemplar reservoir support to View
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2.5k
- Forks
- 1k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 58
Description
Currently there are options defined in the spec that are not available to configure (for example exemplar_reservoir).
I would like the ability to configure the reservoir size and even exemplar filter per metric. Neither of those are possible with the current API.
(SdkMeterProviderUtil.setExemplarFilter allows configuring the filter for the whole meterProvider, but not per metric. It should probably be renamed to setDefaultExemplarFilter and allow views to define alternate filters.)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the stream configuration section of the OpenTelemetry metrics SDK specification and the View API, then inspect SdkMeterProviderUtil.setExemplarFilter. Define how a View can configure reservoir size and an exemplar filter per metric while preserving a provider-level default; done means both options are configurable per metric and the default-filter naming is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- observability-sre
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100