-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Description
As prework to #14332 we want to do multiple things:
- Add a
openTelemetryInstrumentationsoption toSentry.init()andNodeClientas an alternative and migration path for the foot-gunnySentry.addOpenTelemetryInstrumentation()(feat(node): AddopenTelemetryInstrumentationsoption #14484) - Deprecate
registerEsmLoaderHooks.includeandregisterEsmLoaderHooks.excludein favor of usingonlyIncludeInstrumentedModules: trueand add a note toregisterEsmLoaderHooksand all of its "object options" explaining that in the future the SDK will only wrap modules that there are OTEL instrumentations registered for. (feat: DeprecateregisterEsmLoaderHooks.includeandregisterEsmLoaderHooks.exclude#14486) - Adjust docs to recommend using the
openTelemetryInstrumentationsoption instead ofaddOpenTelemetryInstrumentationand adjust docs to recommend always settingregisterEsmLoaderHooks: falseand registering their own loader hooks if a complete custom OTEL setup is used. (Guide towards v9 for ESM OTEL setups sentry-docs#11974) - Deprecate
addOpenTelemetryInstrumentation(feat: DeprecateaddOpenTelemetryInstrumentation#14485)