Skip to content

Support: HTTP Instrumentation in NodeJS SEA #2693

@JoJ123-SE

Description

@JoJ123-SE
  • 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions