open-telemetry / open-telemetry/opentelemetry-cpp

[Feature] Metrics SDK: allow metric readers to filter Meters during Collect()

Open
#2,709 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement issue:blocked Stale triage/accepted
Dominant language
C++
Stars
1.4k
Forks
632
Avg merge
1d 13h
Merged PRs (30d)
75

Description

When metrics are exported to different endpoints by different exporters, it is necessary to express somehow which metric goes to which exporter.

Currently this is not possible, because a metric reader exports all the meters and metrics defined on a meter provider.

This is a new feature to improve usefulness and expressiveness of which data is exported, and where to.

Desired filtering is on a meter by meter basis, for efficiency at runtime, and ease of configuration.

This feature depends on the following spec change:

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 by reviewing the metric reader, meter provider, and Collect() behavior described in this issue, then read the dependent OpenTelemetry specification issue 3617. The work is complete when readers can filter meters independently during collection and the implementation matches the updated specification.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
observability-sre
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.