Skip to content

SwiftUI Instrumentation traces not visible in Explore #7078

@dalnoki

Description

@dalnoki

Platform

iOS

Environment

Develop

Installed

Manually

Version

9.1.0

Xcode Version

16.4

Did it work on previous versions?

Steps to Reproduce

A customer wrote in, they are currently integrating SwiftUI Instrumentation using the Sentry iOS SDK, but they are unable to see any SwiftUI-related traces in Explore → Traces, while UIKit instrumentation works as expected.

Despite following the SwiftUI Instrumentation documentation and verifying the setup, no SwiftUI traces appear in the dashboard.

I went ahead and tested it by modifying the CartViewController in the ios demo, but I also couldn't make it work. Please find the app that I used attached to the Linear ticket.

struct CartViewRoot: View {
    var body: some View {
        CartView()
            .sentryTrace("Sentry Test View")
    }
}

Expected Result

SwiftUI traces should appear in Explore → Traces

Actual Result

SwiftUI traces don't currently appear in Explore → Traces

Are you willing to submit a PR?

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions