-
Notifications
You must be signed in to change notification settings - Fork 979
Closed
Labels
Description
Per the call today, we would like to be able to configure instrumentations like this:
const { registerInstrumentations } = require("@opentelemetry/instrumentation");
const instrumentations = require("@opentelemetry/instrumentations-node-core")
const MyPlugin = require("my-plugin") // old plugin
const MyInstrumentation = require("my-instrumentation") // new instrumentation
registerInstrumentations({
instrumentations: [...instrumentations, MyPlugin, MyInstrumentation],
// optional - use globals by default
tracerProvider: ...,
meterProvider: ...,
}),