-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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] Add error_mode configuration option #35069
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue makes sense to me, and was filed by a code owner. Removing |
One situation is when the IP that was found in the telemetry record was not found in the GeoIP database. Another situation is when the IP was not found in the telemetry record in the first place (the attribute is missing or empty). Yet another situation is when the value of the attribute is not a valid IP. I suppose the An alternative could be to have separate options for each of these situations, like |
One of the challenges I see with this approach is that rfc1918 IP addresses (private IPs) are extremely common in
Perhaps as @andrzej-stencel indicates, separate settings should be used or perhaps we have settings which decide if these cases are errors in the first place? Perhaps we have error_mode with |
Even before we reach conclusion on how we want error mode to be configured, I think we should change the current behavior to not error out when IP is missing, is invalid or cannot be found in geo database. What do you think @rogercoll, @strawgate? |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
still active |
Component(s)
processor/geoip
Is your feature request related to a problem? Please describe.
When using the GeoIP processor with MaxMind provider, if an IP is detected in the attributes but not found in the internal databases, the processor will issue an error. Depending on the user's workflow, that might be expected (known IPs), but in some others the processor should continue the attributes processing (any IP can be processed).
Related issue: #35047
Context (previous proposal): #33319 (comment)
Describe the solution you'd like
A configuration option to ignore, propagate or silently skip the error, similar to the transform processor
error_mode
option:Describe alternatives you've considered
The
ErrorMode
configuration option resides on the ottl package, given that multiple components are willing to adopt this configuration option, should we decouple it to the ottl package and move it to a more collector's generic one?Additional context
No response
The text was updated successfully, but these errors were encountered: