elastic / apm-data

apm-data holds definitions and code for manipulating Elastic APM data
Apache License 2.0
12 stars 25 forks source link

Ensure more unique grouping key when parsed stack trace is not available. #331

Open Mpdreamz opened 1 month ago

Mpdreamz commented 1 month ago

OpenTelemetry today just sends a tree of exception.message and exception.type

The current logic for haveExceptionStackTrace determines there is a stack trace if there is an exception tree.

This PR ensures that when an exception tree has no stacktrace anywhere in the tree we include exception.message into the hash so that we don't just hash over exception.type.

This PR also fixes if we only receive stack trace as string we atleast hash over that instead.