-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[APM][OTel] Ensure Errors views works with OTel Data #9
Conversation
/ci |
@@ -66,16 +67,18 @@ export async function getErrorGroupSampleIds({ | |||
should: [{ term: { [TRANSACTION_SAMPLED]: true } }], // prefer error samples with related transactions | |||
}, | |||
}, | |||
_source: [ERROR_ID, 'transaction'], | |||
fields: [ERROR_ID], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'm not mistaken, the 'transaction' was added for the scoring, so I think the field TRANSACTION_SAMPLED
, should we also added not sure why just 'transaction' was in this case
@dgieselaar can you confirm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
culprit: normalizedFields?.error?.culprit, | ||
handled: normalizedFields?.error?.exception[0]?.handled, | ||
type: normalizedFields?.error?.exception[0]?.type, | ||
traceId: normalizedFields?.trace?.id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Optional chaining is only needed for normalizedFields
. If the object is not undefined, then the rest is defined
culprit: normalizedFields?.error?.culprit, | |
handled: normalizedFields?.error?.exception[0]?.handled, | |
type: normalizedFields?.error?.exception[0]?.type, | |
traceId: normalizedFields?.trace?.id, | |
culprit: normalizedFields?.error.culprit, | |
handled: normalizedFields?.error.exception[0].handled, | |
type: normalizedFields?.error.exception[0].type, | |
traceId: normalizedFields?.trace.id, |
This work will be merged on elastic#195242 |
Summary
Closes elastic#192336
Kapture.2024-10-04.at.15.52.06.mp4
How to test
*otel*
indices.error.exception.handled:true
to see failing services