Add exemplar reservoir support to View

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

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java

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.

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.)

Dominant language
Java
Stars
2.5k
Forks
1.1k
Avg merge
5d 11h
Merged PRs (30d)
41

Getting set up

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.

More from open-telemetry/opentelemetry-java

All issues in open-telemetry/opentelemetry-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.