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

Support: HTTP Instrumentation in NodeJS SEA #2693

Open
1 of 2 tasks
JoJ123-SE opened this issue Feb 4, 2025 · 0 comments
Open
1 of 2 tasks

Support: HTTP Instrumentation in NodeJS SEA #2693

JoJ123-SE opened this issue Feb 4, 2025 · 0 comments

Comments

@JoJ123-SE
Copy link

  • This only affects the JavaScript OpenTelemetry library
  • This may affect other libraries, but I would like to get opinions here first

I have an backend microservice (NodeJs). That is build for Desktop and Cloud. We recently added Otel Tracing to our services. We just use Http Instrumentation to get basic spans with node build in tools (http).

Our build flow:

  1. Use Webpack to bundle to a single file.
  2. For Cloud --> node bundle.js
  3. For Desktop --> NodeJS 22 SEA

For Cloud the tracing is working fine, so the bundled version of our application is working fine with the OTEL HTTP Instrumenation

For the desktop executable the tracing is not working, as the http module can probably not be wrapped.

How can I manage this with NodeJS SEA or is my only choice to ship for desktop as well the node.exe & bundle.js?

Link to Stackoverflow Question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant