Skip to content

Stacktraces for Swift Concurrency #1919

@kabiroberai

Description

@kabiroberai

Platform

iOS

Installed

Swift Package Manager

Version

7.16.0

Steps to Reproduce

  1. Create an async function, with a suspension point (such as await Task.sleep(…))
  2. Capture a Sentry event after the suspension point

It should be possible to repro this with the sample introduced in #1504

Expected Result

The Sentry dashboard shows the entire stack trace, including the async function’s caller

Actual Result

The stack trace stops at the function inside which the error was logged, showing the caller as swift::runJobInEstablishedExecutorContext

Sentry would ideally stitch together parent Task stack frames, similar to how stitchAsyncCode from #998 works for libdispatch.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions