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(influx2otel): only map to histogram when all fields match #314

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

seankhliao
Copy link
Contributor

When AddPoint is called with the unknown metric type, it tries to infer the type from the given field names. Right now it infers histogram when any of the fields matches the histogram keys, but that leads to a lot of errors when your data isn't actually a histogram. Instead, only infer a histogram if all fields match the expected histogram keys.

Fixes #312
and maybe also influxdata/telegraf#14371 ?

When AddPoint is called with the unknown metric type, it tries to
infer the type from the given field names. Right now it infers histogram
when any of the fields matches the histogram keys, but that leads to a
lot of errors when your data isn't actually a histogram. Instead, only
infer a histogram if all fields match the expected histogram keys.
@seankhliao seankhliao requested a review from a team as a code owner November 26, 2024 22:05
@seankhliao
Copy link
Contributor Author

cc @jacobmarble I see you listed as the code owner on the otel collector side

Copy link
Member

@jacobmarble jacobmarble left a comment

Choose a reason for hiding this comment

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

Thanks a bunch!

@jacobmarble jacobmarble removed the request for review from Joe-Blount December 3, 2024 22:20
@jacobmarble jacobmarble merged commit 86ed142 into influxdata:main Dec 3, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

influx2otel: error on field named "count"
2 participants