opentelemetry-demo icon indicating copy to clipboard operation
opentelemetry-demo copied to clipboard

Use zero-code JS instrumentation for Payment service.

Open puckpuck opened this issue 3 weeks ago • 0 comments

Feature Request

Currently the payment service has an opentelemetry.js code file which is required as part of the node app startup. This file is the standard boilerplate code except for the config on a single auto-instrumentation library.

All of that same functionality can be achieved by leveraging environment variables and the zero-code approach, which requires a file part of the opentelemetry/auto-instrumentations-node package. We can even showcase how to do this using environment variables only with NODE_OPTIONS. Here are the docs on how to get zero-code instrumentation for Node https://opentelemetry.io/docs/zero-code/js/#configuring-the-module

puckpuck avatar Jun 13 '24 17:06 puckpuck