Skip to content

Commit

Permalink
[APM] Ensure telemetry data matches SO/telemetry mapping (#61957)
Browse files Browse the repository at this point in the history
* [APM] Ensure telemetry data matches SO/telemetry mapping

Closes #61802.

* Correct mapping for dotnet data
  • Loading branch information
dgieselaar committed Apr 2, 2020
1 parent 866dc65 commit feadf19
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions x-pack/legacy/plugins/apm/mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,17 @@
},
"language": {
"properties": {
"composite": {
"type": "keyword",
"ignore_above": 1024
},
"name": {
"type": "keyword",
"ignore_above": 1024
},
"version": {
"type": "keyword",
"ignore_above": 1024
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export const tasks: TelemetryTask[] = [
.map(part => Number(part));

return {
versions: {
version: {
apm_server: {
major,
minor,
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/apm/server/lib/apm_telemetry/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type TimeframeMapAll = Pick<TimeframeMap, 'all'>;
export type APMDataTelemetry = DeepPartial<{
has_any_services: boolean;
services_per_agent: Record<AgentName, number>;
versions: {
version: {
apm_server: {
minor: number;
major: number;
Expand Down

0 comments on commit feadf19

Please sign in to comment.