-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Inconsistent Redaction of Numeric Attribute Values in the OpenTelemetry Collector #26348
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
How would you expect the redaction processor to work in this case? Should the redaction processor change the type from |
Yes, I think so, as MatchString is expecting a I'm not sure how the attributes are passed to the redactor processor, but apparently if there's only numeric values it comes as an |
@TylerHelmuth can the transform processor apply the |
I agree that the redactionprocessor shouldn't be in the business of transforming telemetry. We don't have a
|
From my understanding of the comments I'm going to remove the |
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. |
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. |
#29087 was recently filed requesting the same functionality. I'm going to close this issue in favor of that one as the purpose and request is more clear there. Feel free to let me know if I missed something here. |
Component(s)
processor/redaction
What happened?
Description
When using the OpenTelemetry Collector's redaction processor with a configuration that includes regex-based redaction of specific attribute values, there is an issue where numeric values are not being redacted as expected.
Specifically, the redaction regex does not seem to match when the span attribute has only numeric values.
For instance, consider the following example where two spans are sent for processing:
In this case, the redaction processor only redacts the second span's attribute value, leaving the first one untouched.
Steps to Reproduce
Expected Result
The redaction processor should consistently match and redact attribute values that fit the specified regex patterns, including numeric values.
Actual Result
Currently, the redaction processor does not effectively match and redact numeric attribute values, leading to inconsistent redaction behavior.
We suspect the issue could be related to this line.
It seems that this line returns an empty result if the attribute value is not a string, which could explain why numeric values are not being redacted as expected.
Collector version
0.84.0
Environment information
Environment
otel/opentelemetry-collector-contrib:0.84.0
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: