sentry-unity icon indicating copy to clipboard operation
sentry-unity copied to clipboard

Tracing: Native crashes don't have `trace-id`

Open bruno-garcia opened this issue 1 year ago • 0 comments
trafficstars

Using the sample in Sentry Defenses I was able to capture lots of examples (try/catch, log/ etc) and all those in the C# layer are connected via a trace:

https://sentry.sentry.io/issues/5987941966/?project=5905698&query=is%3Aunresolved%20issue.priority%3A%5Bhigh%2C%20medium%5D&referrer=issue-stream&sort=date&statsPeriod=1h&stream_index=1

Image

Except events captured by the native SDK. It has the breadcrumbs (scope sync) but no trace-id:

https://sentry.sentry.io/issues/5987942166/?project=5905698&query=is%3Aunresolved%20issue.priority%3A%5Bhigh%2C%20medium%5D&referrer=issue-stream&sort=date&statsPeriod=1h&stream_index=4

We need to set the trace-id via the bridge anytime we create/update the trace id. This way, all the telemetry data is connected via the trace. Even user feedback, events on the backend, spans, and native crashes.

bruno-garcia avatar Oct 13 '24 03:10 bruno-garcia