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
Hello, my first hunch is that this is possibly due to pino-instrumentation and the way it works with ESM. There is nothing ESM/CJS specific in the pino-opentelemetry-transport code. I'll try to debug this to confirm this with certainty.
This seems to be a tough problem. I was not able to get pino-instrumentation to work when using ESM. I converted the trace-context into .mjs and I stopped getting trace and span ids. I also had this problem when I did not use pino-opentelemetry-transport at all.
It seems like getting ESM to work is not straightforward. I guess that's why it is not documented. Currently, most instrumentations when using ESM are working via import-in-the-middle package. This issue (open-telemetry/opentelemetry-js#4553) might be connected to the problem we are experiencing here.
It might be worth creating an issue in the pino-instrumentation repo.
Hi,
I am trying to get
pino
to report logs back to OTelCollector. The pipeline is working except for the traceId and spanId fields being undefined.This only happens in ECMAScript modules, cjs works as expected.
Not an expert on this, please enlighted me.
Thank you.
The text was updated successfully, but these errors were encountered: