Skip to content

Conversation

jmichalek132
Copy link
Contributor

@jmichalek132 jmichalek132 commented May 2, 2025

Description

Fixing passing metric namespace to the otel metadata translation, so when provided metric name matches the metric name in metadata

Testing

Added unit test coverage

@ArthurSens
Copy link
Member

Hey @jmichalek132, could you clarify what problem we're solving? I don't see how namespace is related to Metadata 🤔

@jmichalek132
Copy link
Contributor Author

Hey @jmichalek132, could you clarify what problem we're solving? I don't see how namespace is related to Metadata 🤔

Just realized a while a bit ago if you use the namespace feature to change the metric name and don't do the same for the metric name in metadata, your tool i.e. grafana won't be able to match them and show metadata.

Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label May 23, 2025
@ArthurSens
Copy link
Member

Hey @jmichalek132, could you clarify what problem we're solving? I don't see how namespace is related to Metadata 🤔

Just realized a while a bit ago if you use the namespace feature to change the metric name and don't do the same for the metric name in metadata, your tool i.e. grafana won't be able to match them and show metadata.

Good catch! Do you wanna finish the PR and add tests for it?

@github-actions github-actions bot removed the Stale label May 25, 2025
@github-actions github-actions bot requested a review from ywwg June 1, 2025 16:23
@jmichalek132 jmichalek132 marked this pull request as ready for review June 1, 2025 17:03
@jmichalek132 jmichalek132 requested review from a team as code owners June 1, 2025 17:03
Copy link
Member

@ArthurSens ArthurSens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, I have just some comments around changelogs and tests

@jmichalek132 jmichalek132 requested a review from ArthurSens June 4, 2025 14:01
@jmichalek132 jmichalek132 requested a review from ArthurSens June 5, 2025 08:42
Copy link
Member

@ArthurSens ArthurSens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@ArthurSens ArthurSens added the ready to merge Code review completed; ready to merge by maintainers label Jun 5, 2025
@songy23 songy23 merged commit 3cf8edf into open-telemetry:main Jun 5, 2025
187 checks passed
@github-actions github-actions bot added this to the next release milestone Jun 5, 2025
rockdaboot pushed a commit to rockdaboot/opentelemetry-collector-contrib that referenced this pull request Jun 10, 2025
…emetry#39826)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Fixing passing metric namespace to the otel metadata translation, so
when provided metric name matches the metric name in metadata

<!--Describe what testing was performed and which tests were added.-->
#### Testing

Added unit test coverage

---------

Co-authored-by: Arthur Silva Sens <[email protected]>
dd-jasminesun pushed a commit to DataDog/opentelemetry-collector-contrib that referenced this pull request Jun 23, 2025
…emetry#39826)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Fixing passing metric namespace to the otel metadata translation, so
when provided metric name matches the metric name in metadata

<!--Describe what testing was performed and which tests were added.-->
#### Testing

Added unit test coverage

---------

Co-authored-by: Arthur Silva Sens <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants