Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[processor/metricsgeneration] Add config validation for generated metric names #37599

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

crobert-1
Copy link
Member

Description

If a generated metric name matched the metric being scaled an infinite loop is hit. Since this action is not supported by this processor, and is supported by the metrics transform processor, the fix here is to add config validation to enforce metric names are different.

Link to tracking issue

Fixes #37474

Testing

Added a test to ensure enforcement is done properly.

@crobert-1 crobert-1 requested a review from a team as a code owner January 30, 2025 19:15
@github-actions github-actions bot added the processor/metricsgeneration Metrics Generation processor label Jan 30, 2025
@github-actions github-actions bot requested a review from Aneurysm9 January 30, 2025 19:15
@songy23 songy23 merged commit 4a2ed0d into open-telemetry:main Jan 31, 2025
163 checks passed
@github-actions github-actions bot added this to the next release milestone Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
processor/metricsgeneration Metrics Generation processor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] metricsgeneration/infinite loop
5 participants