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

fix(sumologicexporter): translate Telegraf metrics with OTLP format #659

Merged
merged 3 commits into from
Jul 8, 2022

Conversation

andrzej-stencel
Copy link
Contributor

This change fixes a regression introduced in #536 that caused the metric name translations (the feature under the translate_telegraf_attributes setting) to not work when using the OTLP format.
This change refactors the code so that all modifications to metrics (attribute translation, metrics translation, dropping routing attribute) are done before branching the code into different sending formats.

@github-actions github-actions bot added the go label Jul 7, 2022
This change fixes a regression introduced in #536
that caused the metric name translations
(the feature under the `translate_telegraf_attributes` setting)
to not work when using the OTLP format.
This change refactors the code so that all modifications to metrics
(attribute translation, metrics translation, dropping routing attribute)
are done before branching the code into different sending formats.
@andrzej-stencel andrzej-stencel force-pushed the translate-metrics-otlp branch from 0b698bf to 1ff2e9e Compare July 7, 2022 11:27
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jul 7, 2022
@andrzej-stencel andrzej-stencel marked this pull request as ready for review July 7, 2022 11:38
@andrzej-stencel andrzej-stencel requested a review from a team as a code owner July 7, 2022 11:38
@andrzej-stencel andrzej-stencel merged commit 8047661 into main Jul 8, 2022
@andrzej-stencel andrzej-stencel deleted the translate-metrics-otlp branch July 8, 2022 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation go
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants