[8.11] Added context_propagation_only APM agent setting (#170405) (#171157)

# Backport

This will backport the following commits from `main` to `8.11`:
- [Added context_propagation_only APM agent setting
(#170405)](https://github.com/elastic/kibana/pull/170405)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jonas
Kunz","email":"jonas.kunz@elastic.co"},"sourceCommit":{"committedDate":"2023-11-14T07:59:14Z","message":"Added
context_propagation_only APM agent setting (#170405)\n\nAdded central
configuration option
context_propagation_only","sha":"ecb53e3060841ad3fbb03d79cf1bb4b901550c7d","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","Team:APM","backport:prev-minor","v8.12.0"],"number":170405,"url":"https://github.com/elastic/kibana/pull/170405","mergeCommit":{"message":"Added
context_propagation_only APM agent setting (#170405)\n\nAdded central
configuration option
context_propagation_only","sha":"ecb53e3060841ad3fbb03d79cf1bb4b901550c7d"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/170405","number":170405,"mergeCommit":{"message":"Added
context_propagation_only APM agent setting (#170405)\n\nAdded central
configuration option
context_propagation_only","sha":"ecb53e3060841ad3fbb03d79cf1bb4b901550c7d"}}]}]
BACKPORT-->

Co-authored-by: Jonas Kunz <jonas.kunz@elastic.co>
This commit is contained in:
Kibana Machine 2023-11-14 05:00:52 -05:00 committed by GitHub
parent b8d00024a1
commit 1adb557415
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 0 deletions

View file

@ -72,6 +72,11 @@ Array [
"type": "boolean",
"validationName": "(\\"true\\" | \\"false\\")",
},
Object {
"key": "context_propagation_only",
"type": "boolean",
"validationName": "(\\"true\\" | \\"false\\")",
},
Object {
"key": "dedot_custom_metrics",
"type": "boolean",

View file

@ -337,6 +337,26 @@ export const generalSettings: RawSettingDefinition[] = [
excludeAgents: ['nodejs', 'rum-js', 'js-base'],
},
{
key: 'context_propagation_only',
type: 'boolean',
defaultValue: 'false',
label: i18n.translate(
'xpack.apm.agentConfig.context_propagation_only.label',
{
defaultMessage: 'Context Propagation Only',
}
),
description: i18n.translate(
'xpack.apm.agentConfig.context_propagation_only.description',
{
defaultMessage:
'When set to true, disables log sending, metrics and trace collection. Trace context propagation and log correlation will stay active.',
}
),
includeAgents: ['java'],
},
// SERVER_TIMEOUT
{
key: 'server_timeout',

View file

@ -75,6 +75,7 @@ describe('filterByAgent', () => {
'profiling_inferred_spans_min_duration',
'profiling_inferred_spans_sampling_interval',
'recording',
'context_propagation_only',
'sanitize_field_names',
'server_timeout',
'span_frames_min_duration',