[APM] Add 'deactivate_...' agent configuration settings for EDOT Node.js (#224502)

This makes the existing 'deactivate_all_instrumentations' and
'deactivate_instrumentations' agent configuration settings
available to EDOT Node.js agents (`agent.name:
opentelemetry/nodejs/elastic`).
This commit is contained in:
Trent Mick 2025-06-20 09:19:52 -07:00 committed by GitHub
parent f72bf857e7
commit 228db1a229
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,15 +21,13 @@ export const edotSDKSettings: RawSettingDefinition[] = [
'xpack.apm.agentConfig.edot.deactivate_instrumentations.description',
{
defaultMessage:
'Comma-separated list of modules to disable instrumentation for.\n' +
'When instrumentation is disabled for a module, no spans will be collected for that module.\n' +
'\n' +
'The up-to-date list of modules for which instrumentation can be disabled is language specific ' +
'and can be found under the following links: ' +
'[opentelemetry/java/elastic](https://ela.st/otel-agent-instructions)',
'Comma-separated list of instrumentation names to disable. When an instrumentation is disabled, no telemetry will be collected for the library/module it instruments. ' +
'The list of supported instrumentation names is language specific:\n' +
'- [EDOT Java](https://ela.st/otel-agent-instructions): for example "akka-http,grpc"\n' +
'- [EDOT Node.js](https://ela.st/edot-node-disable-instrs): for example "net,dns,http"',
}
),
includeAgents: ['opentelemetry/java/elastic'],
includeAgents: ['opentelemetry/java/elastic', 'opentelemetry/nodejs/elastic'],
},
{
key: 'deactivate_all_instrumentations',
@ -41,10 +39,10 @@ export const edotSDKSettings: RawSettingDefinition[] = [
description: i18n.translate(
'xpack.apm.agentConfig.edot.deactivate_all_instrumentations.description',
{
defaultMessage: 'No spans will be collected for any instrumentation modules.\n' + '\n',
defaultMessage: 'No spans will be collected for any instrumentation modules.',
}
),
includeAgents: ['opentelemetry/java/elastic'],
includeAgents: ['opentelemetry/java/elastic', 'opentelemetry/nodejs/elastic'],
},
{
key: 'logging_level',
@ -55,7 +53,7 @@ export const edotSDKSettings: RawSettingDefinition[] = [
defaultMessage: 'Logging level',
}),
description: i18n.translate('xpack.apm.agentConfig.loggingLevel.description', {
defaultMessage: 'Sets the logging level for the agent',
defaultMessage: 'Sets the logging level for the agent.',
}),
options: [
{ text: 'trace', value: 'trace' },