Closed jsumners-nr closed 1 month ago
After discussion with the team, I am closing this issue as "complete." We have a branch at https://github.com/jsumners-nr/node-newrelic/tree/6a9e56472c5cda4c086459df82ebc70c6c0ad29e/lib/instrumentation/otel that has some research details and code outlines. We have determined that it can be a viable path forward, but we need/want to rearchitect some agent internals before doing so.
The OpenTelemetry SDK allows for the injection of its constituent parts (context manager, trace provider, metrics provider, etc.). By utilizing this feature, we should be able to add a shim to our agent that would allow us to support utilizing
@opentelemetry
scoped tracing packages to gain instrumentations for packages we do not support, e.g.knex
.Success for this issue entails:
@opentelemetry/instrumentation-knex
)The outcome should be a statement on whether or not this is an avenue we would like to continue pursuing.