-
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
Populate SpanIDs and TraceIDs from logs picked via filelog receiver #27283
Labels
Comments
ceevaaa
added
bug
Something isn't working
needs triage
New item requiring triage
labels
Sep 30, 2023
ceevaaa
changed the title
[] Populate SpanIDs and TraceIDs from logs picked via filelog receiver
Populate SpanIDs and TraceIDs from logs picked via filelog receiver
Sep 30, 2023
github-actions
bot
added
processor/transform
Transform processor
receiver/filelog
labels
Sep 30, 2023
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
/label -bug -needs-triage |
/label +question -bug |
This worked for me.
|
You can also do this within the receiver. See https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/pkg/stanza/docs/types/trace.md#trace-parsing |
God! I missed that. Thanks for pointing that out. |
This was referenced Oct 3, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Component(s)
processor/transform, receiver/filelog
What happened?
Description
I want to populate the TraceID and SpanID fields (in the exported OTLP logs) from the logs picked by the filelog receiver.
An entry from a log looks like this -
{"level":"info","traceId":"f5f510d734d6df8e51ffa998d2045199","spanId":"923e0d2c44e6b43a","additionalData":null,"requestId":"","location":"main.(*application).history","time":"2023-09-27T19:18:44.034049083Z","message":"blah"}
The output from filelog receiver looks something like -
Can I do this via the filelog receiver itself ? Or i will need to do this using the transform processor ?
Either way can someone please point me to the exact expression I will need to write to populate these ?
Thanks and Regards
Collector version
v0.83.0
Environment information
Environment
OS: (e.g., "Ubuntu 22.04")
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: