-
Notifications
You must be signed in to change notification settings - Fork 2.8k
redaction processor does not seem to redact attributes of span event #36633
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
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hi @qrli. Thanks for reporting! It's clearly a bug. Do you have a chance contribute a fix? |
I'd like to but unfortunately Go is not in my skill set. |
I'll find some time and fix this later this week. In the meantime, if anyone else wants to dive into the otel work, just let me know and I can assign it to them. |
@qrli I tried to reproduce this with a couple of different kv pairs, here's my obervation:
|
@VihasMakwana No, the issue is not about my regex for redaction - I just provided them for example.
It loops through all attributes of a span, but it does not touch any span events, so event attributes are not redacted. So I think the fix should be simply adding a nested loop of span events and process each event attribute. |
The issue is still marked as waiting for author. Is there anything more you need me to provide? |
I think we are not waiting for author anymore, we just need to land the fix :) |
I was working on the fix and then was on holidays for new yeas. Sorry for inconvenience. I'll open up a PR soon. |
Component(s)
processor/redaction
What happened?
Description
We are using
allow_all_keys: true
and expects all blocked values are redacted. However, we found some data which should have been redacted got through. After investigation, I found the data failed to be redacted are in span events.Steps to Reproduce
Put some value to be redacted in attributes of span events, and try to use redaction processor to redact it.
Expected Result
The blocked values are successfully redacted from all traces/logs.
Actual Result
The blocked values in span events leaked through redaction processor.
Collector version
0.111.0
Environment information
Environment
OS: Ubuntu 22.04
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: