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

Transform opentelemetry spans log event #30635

Closed
strelok29 opened this issue Jan 17, 2024 · 6 comments
Closed

Transform opentelemetry spans log event #30635

strelok29 opened this issue Jan 17, 2024 · 6 comments
Labels
processor/redaction Redaction processor processor/transform Transform processor question Further information is requested Stale waiting for author

Comments

@strelok29
Copy link

Component(s)

processor/transform

Describe the issue you're reporting

I've been working with OpenTelemetry Collector using opentelemetry-collector-contrib:0.85.0. I have set up the auto instrumentation using opentelemetry laravel auto instrumentation and started receiving spans. but I realized in the spans log event I saw the Token printed out like this.

event = Token: abcdefghijklmn......
context = []
level   = info

is there a way to maybe hide or transform it into another string? to be something like this

event = Token: ********
context = []
level   = info
@strelok29 strelok29 added the needs triage New item requiring triage label Jan 17, 2024
@github-actions github-actions bot added the processor/transform Transform processor label Jan 17, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@crobert-1 crobert-1 added the question Further information is requested label Jan 17, 2024
@crobert-1
Copy link
Member

Hello @strelok29, if the Token value is of the same format for all spans you can use the blocked_values configuration option of the redaction processor. If you simply want to drop the key and its value you can do that as well.

Let me know if those options don't work, with more information we can look at other options.

@crobert-1 crobert-1 added the processor/redaction Redaction processor label Jan 17, 2024
Copy link
Contributor

Pinging code owners for processor/redaction: @dmitryax @mx-psi @TylerHelmuth. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@TylerHelmuth
Copy link
Member

@strelok29 what is event in this context? Is it an attribute on the span?

Copy link
Contributor

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 @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions github-actions bot added the Stale label May 13, 2024
@mx-psi
Copy link
Member

mx-psi commented May 13, 2024

Closing as wontfix due to lack of response. Feel free to comment to reopen.

@mx-psi mx-psi closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
processor/redaction Redaction processor processor/transform Transform processor question Further information is requested Stale waiting for author
Projects
None yet
Development

No branches or pull requests

4 participants