Skip to content

Commit 6ea6c35

Browse files
[9.1] [APM] Make captureHeaders: false default config (#239082) (#239120)
# Backport This will backport the following commits from `main` to `9.1`: - [[APM] Make `captureHeaders: false` default config (#239082)](#239082) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Jean-Louis Leysens","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-10-15T12:00:15Z","message":"[APM] Make `captureHeaders: false` default config (#239082)","sha":"046872001e93d14fcf6b85c8b8e50a2b1c84320f","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","backport:version","v9.2.0","v9.0.8","v9.3.0","v9.1.6","v8.18.9","v8.19.6"],"title":"[APM] Make `captureHeaders: false` default config","number":239082,"url":"https://github.com/elastic/kibana/pull/239082","mergeCommit":{"message":"[APM] Make `captureHeaders: false` default config (#239082)","sha":"046872001e93d14fcf6b85c8b8e50a2b1c84320f"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.0","9.1","8.18","8.19"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/239082","number":239082,"mergeCommit":{"message":"[APM] Make `captureHeaders: false` default config (#239082)","sha":"046872001e93d14fcf6b85c8b8e50a2b1c84320f"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.9","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Jean-Louis Leysens <[email protected]>
1 parent eeaa07d commit 6ea6c35

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/platform/packages/private/kbn-apm-config-loader/src/config.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ describe('ApmConfiguration', () => {
8888
Object {
8989
"active": true,
9090
"breakdownMetrics": true,
91+
"captureHeaders": false,
9192
"captureSpanStackTraces": false,
9293
"centralConfig": false,
9394
"contextPropagationOnly": true,

src/platform/packages/private/kbn-apm-config-loader/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import type { ApmConfigSchema } from './apm_config';
2121
// https://www.elastic.co/guide/en/apm/agent/nodejs/current/configuration.html
2222
const DEFAULT_CONFIG: AgentConfigOptions = {
2323
active: true,
24+
captureHeaders: false,
2425
contextPropagationOnly: true,
2526
environment: 'development',
2627
globalLabels: {},
@@ -47,7 +48,6 @@ export const CENTRALIZED_SERVICE_BASE_CONFIG: AgentConfigOptions | RUMAgentConfi
4748
const CENTRALIZED_SERVICE_DIST_CONFIG: AgentConfigOptions = {
4849
breakdownMetrics: false,
4950
captureBody: 'off',
50-
captureHeaders: false,
5151
metricsInterval: '120s',
5252
transactionSampleRate: 0.1,
5353
};

0 commit comments

Comments
 (0)