mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -04:00
[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:
parent
f72bf857e7
commit
228db1a229
1 changed files with 8 additions and 10 deletions
|
@ -21,15 +21,13 @@ export const edotSDKSettings: RawSettingDefinition[] = [
|
||||||
'xpack.apm.agentConfig.edot.deactivate_instrumentations.description',
|
'xpack.apm.agentConfig.edot.deactivate_instrumentations.description',
|
||||||
{
|
{
|
||||||
defaultMessage:
|
defaultMessage:
|
||||||
'Comma-separated list of modules to disable instrumentation for.\n' +
|
'Comma-separated list of instrumentation names to disable. When an instrumentation is disabled, no telemetry will be collected for the library/module it instruments. ' +
|
||||||
'When instrumentation is disabled for a module, no spans will be collected for that module.\n' +
|
'The list of supported instrumentation names is language specific:\n' +
|
||||||
'\n' +
|
'- [EDOT Java](https://ela.st/otel-agent-instructions): for example "akka-http,grpc"\n' +
|
||||||
'The up-to-date list of modules for which instrumentation can be disabled is language specific ' +
|
'- [EDOT Node.js](https://ela.st/edot-node-disable-instrs): for example "net,dns,http"',
|
||||||
'and can be found under the following links: ' +
|
|
||||||
'[opentelemetry/java/elastic](https://ela.st/otel-agent-instructions)',
|
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
includeAgents: ['opentelemetry/java/elastic'],
|
includeAgents: ['opentelemetry/java/elastic', 'opentelemetry/nodejs/elastic'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'deactivate_all_instrumentations',
|
key: 'deactivate_all_instrumentations',
|
||||||
|
@ -41,10 +39,10 @@ export const edotSDKSettings: RawSettingDefinition[] = [
|
||||||
description: i18n.translate(
|
description: i18n.translate(
|
||||||
'xpack.apm.agentConfig.edot.deactivate_all_instrumentations.description',
|
'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',
|
key: 'logging_level',
|
||||||
|
@ -55,7 +53,7 @@ export const edotSDKSettings: RawSettingDefinition[] = [
|
||||||
defaultMessage: 'Logging level',
|
defaultMessage: 'Logging level',
|
||||||
}),
|
}),
|
||||||
description: i18n.translate('xpack.apm.agentConfig.loggingLevel.description', {
|
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: [
|
options: [
|
||||||
{ text: 'trace', value: 'trace' },
|
{ text: 'trace', value: 'trace' },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue