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/geoip] skip error if geo metadata is not found #35278

Merged

Conversation

rogercoll
Copy link
Contributor

Description:

If a provider does not found any associated metadata to the given IP, the processor will continue the processing instead of returning the error. Nonetheless, the error will be logged when debug telemetry level is enabled.

Link to tracking Issue: #35047

Testing: Add a testdata case for IP 1.2.3.5 which is not available in any of the providers (maxmind neither mocked provider)

Documentation:

Copy link
Member

@andrzej-stencel andrzej-stencel left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@andrzej-stencel andrzej-stencel merged commit 313f4d0 into open-telemetry:main Oct 1, 2024
156 checks passed
@github-actions github-actions bot added this to the next release milestone Oct 1, 2024
@rogercoll rogercoll deleted the skip_if_geo_not_found branch October 1, 2024 08:18
jriguera pushed a commit to springernature/opentelemetry-collector-contrib that referenced this pull request Oct 4, 2024
…etry#35278)

**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.--> 
If a provider does not found any associated metadata to the given IP,
the processor will continue the processing instead of returning the
error. Nonetheless, the error will be logged when debug telemetry level
is enabled.

**Link to tracking Issue:** <Issue number if applicable>
open-telemetry#35047

**Testing:** <Describe what testing was performed and which tests were
added.> Add a testdata case for IP `1.2.3.5` which is not available in
any of the providers (maxmind neither mocked provider)

**Documentation:** <Describe the documentation added.>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants