Skip to content

Commit 113936a

Browse files
authored
[APM] Use observer.hostname instead of observer.name (#76074)
1 parent b65c95a commit 113936a

File tree

10 files changed

+418
-228
lines changed

10 files changed

+418
-228
lines changed

x-pack/plugins/apm/common/__snapshots__/apm_telemetry.test.ts.snap

Lines changed: 30 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugins/apm/common/__snapshots__/elasticsearch_fieldnames.test.ts.snap

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugins/apm/common/apm_telemetry.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export function getApmTelemetryMapping() {
7878
properties: {
7979
expected_metric_document_count: long,
8080
transaction_count: long,
81+
ratio: long,
8182
},
8283
};
8384

@@ -102,10 +103,14 @@ export function getApmTelemetryMapping() {
102103
properties: {
103104
current_implementation: aggregatedTransactionsProperties,
104105
no_observer_name: aggregatedTransactionsProperties,
105-
no_rum: aggregatedTransactionsProperties,
106-
no_rum_no_observer_name: aggregatedTransactionsProperties,
107-
only_rum: aggregatedTransactionsProperties,
108-
only_rum_no_observer_name: aggregatedTransactionsProperties,
106+
with_country: aggregatedTransactionsProperties,
107+
},
108+
},
109+
environments: {
110+
properties: {
111+
services_without_environment: long,
112+
services_with_multiple_environments: long,
113+
top_enviroments: keyword,
109114
},
110115
},
111116
cloud: {
@@ -227,6 +232,7 @@ export function getApmTelemetryMapping() {
227232
agents: tookProperties,
228233
cardinality: tookProperties,
229234
cloud: tookProperties,
235+
environments: tookProperties,
230236
groupings: tookProperties,
231237
indices_stats: tookProperties,
232238
integrations: tookProperties,

x-pack/plugins/apm/common/elasticsearch_fieldnames.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const USER_AGENT_NAME = 'user_agent.name';
3131

3232
export const DESTINATION_ADDRESS = 'destination.address';
3333

34-
export const OBSERVER_NAME = 'observer.name';
34+
export const OBSERVER_HOSTNAME = 'observer.hostname';
3535
export const OBSERVER_VERSION_MAJOR = 'observer.version_major';
3636
export const OBSERVER_LISTENING = 'observer.listening';
3737
export const PROCESSOR_EVENT = 'processor.event';

0 commit comments

Comments
 (0)