OptionalcurrentConfig?: Record<string, unknown>The instrumentation's current config. Nested fields are merged over the matching branch of this, so declarative config that sets one leaf does not drop sibling leaves set in code.
Optionaldiag?: DiagLoggerOptionalgeneralDomains?: string[]The general domains this instrumentation is responsible for, e.g.
['http']. Unhandled properties are reported for these domains only,
because general is shared between instrumentations.
Read an instrumentation's declarative config and map it onto config fields.
Builds typed readers over the instrumentation's own node and the shared
generalnode, passes them toreader, and returns a partial config to merge over the current one. Nested fields are deep-merged withcurrentConfig, so declarative config that sets one leaf does not drop sibling leaves set in code. Reading never throws (a reader error is caught and warned), becausesetConfigProvider()must not. Properties the instrumentation owns but the reader did not read are reported together as unhandled.