Skip to content

Commit

Permalink
refactor: add stack_trace mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
rmyz committed Oct 4, 2024
1 parent f9ccf34 commit 71cfaad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/kbn-apm-types/src/es_fields/apm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export const ERROR_EXC_MESSAGE = 'error.exception.message'; // only to be used i
export const ERROR_EXC_HANDLED = 'error.exception.handled'; // only to be used in es queries, since error.exception is now an array
export const ERROR_EXC_TYPE = 'error.exception.type';
export const ERROR_PAGE_URL = 'error.page.url';
export const ERROR_STACK_TRACE = 'error.stack_trace';
export const ERROR_TYPE = 'error.type';

// METRICS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
ERROR_EXC_HANDLED,
ERROR_EXC_TYPE,
ERROR_CULPRIT,
ERROR_STACK_TRACE,
AT_TIMESTAMP,
APMError,
OBSERVER_TYPE,
Expand Down Expand Up @@ -119,6 +120,7 @@ export const errorSampleDetailsMapping = (fields: Fields): APMError | undefined
},
],
grouping_key: normalizeValue<string>(fields[ERROR_GROUP_ID]),
stack_trace: normalizeValue<string>(fields[ERROR_STACK_TRACE]),
},
processor: {
name: normalizeValue<'error'>(fields[PROCESSOR_NAME]),
Expand Down

0 comments on commit 71cfaad

Please sign in to comment.