open-telemetry / open-telemetry/opentelemetry-java

Add exemplar reservoir support to View

Open
#7,314 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.