Skip to content

Instrumentation Autoload #1672

@dyladan

Description

@dyladan

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: ...,
}),

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions