interface InstrumentationConfig
Since 0.2.0

Per-instrumentation entry. Presence of the parent key enables; this configures or injects.

Properties

readonly
optional
instrumentation: unknown

An already-constructed OTel Instrumentation instance — the INJECT half of the inject-or-lazy seam. When set, the registry skips the lazy npm: import and uses this instance directly.

readonly
optional
config: Readonly<Record<string, unknown>>

Opaque config object forwarded VERBATIM to the OTel instrumentation constructor's config argument (the LAZY half). Framework-owned and untyped on purpose: OTel instrumentation config surfaces evolve independently and re-typing them here would fabricate field names and drift.

Usage

import { type InstrumentationConfig } from "telemetry-plugin/src/index.ts";