Replies: 1 comment
-
|
Same here, but with Vue. Traces work great but I can't get the trace or span id to show up in the logs no matter what I try. Post back here if you figure it out. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to send logs from my frontend and bind them with traces. I've already setup traces with auto-instrumentation:
Here I found a simple example how to setup logs. My implementation is
This is how I initialize the traces and loggs in main.ts file. I wanted to initialize liggs after tracs in order to be sure that auto-instriumentation was setup before logging.
I cannot get a traceId and the span in this line const span = trace.getSpan(context.active()); is always undefined.
The application sends http requests and I tried to add logs as close to requests as possible, but still I have logs without connection to the traces.
In the begining I also tried without const span = trace.getSpan(context.active()); and it didn't work.
Any idea, how to mke it working?
P.S. I use React with redux queries.
Beta Was this translation helpful? Give feedback.
All reactions