You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may affect other libraries, but I would like to get opinions here first
Setup
Node JS Lambda using the OpenTelemetry Lambda SDK and Collector Layers, with the exporter set up to export to an Elastic Cloud Instance.
Issue
I'm currently able to export Logs through the OTLP Receiver and to my Elastic Stack Endpoint -- I can see the logs are attributed to the correct service name. However, I have currently been unable to find a way to inject the Trace ID/Transaction ID into the log output so that I can receive correlated logs in my Traces view. I was trying to use the @opentelemetry/api package in order to get either of the ID's, but unfortunately they were undefined.
I realise the log exporter is currently experimental, but has anyone found a way to achieve this?
Thanks in Advance!
The text was updated successfully, but these errors were encountered:
What are you using to log? If I use winston and have @opentelemetry/winston-transport installed and am instrumenting with @opentelemetry/instrumentation-winston (this turns itself on by default if you use @opentelemetry/auto-instrumentations-node), then I see the trace id correlated with the traces in the APM view in kibana.
Setup
Node JS Lambda using the OpenTelemetry Lambda SDK and Collector Layers, with the exporter set up to export to an Elastic Cloud Instance.
Issue
I'm currently able to export Logs through the OTLP Receiver and to my Elastic Stack Endpoint -- I can see the logs are attributed to the correct service name. However, I have currently been unable to find a way to inject the Trace ID/Transaction ID into the log output so that I can receive correlated logs in my Traces view. I was trying to use the
@opentelemetry/api
package in order to get either of the ID's, but unfortunately they were undefined.I realise the log exporter is currently experimental, but has anyone found a way to achieve this?
Thanks in Advance!
The text was updated successfully, but these errors were encountered: