-
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
[stanza] stanza transformer helper should optionally log stanza.Entry #26670
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Good catch @timannguyen. Will you open the PR? |
Pinging code owners for pkg/stanza: @djaglowski. 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. |
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. |
Component(s)
No response
Is your feature request related to a problem? Please describe.
when error occurs in transformer, https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/pkg/stanza/operator/helper/transformer.go#L98, It would log the Stanza.Entry object. This contains the events being processed. This can contain Secrets or PII. The behavior is undesirable in production environment.
Example:
Describe the solution you'd like
Similarly with
onError
flag, https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/pkg/stanza/operator/helper/transformer.go#L28, I would suggest to another flag with something likelogEntry
.and on https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/pkg/stanza/operator/helper/transformer.go#L98, it could be
Describe alternatives you've considered
we wrote an zapcore.Encoder to intercept and filter stanza.Entry if it's on the log
Additional context
No response
The text was updated successfully, but these errors were encountered: