Skip to content

Create spans from the transaction root instead of latest active span #1827

@marandaneto

Description

@marandaneto

We've decided that automatically created spans should be a child of the root transaction.
It'll be a flat list of spans but the timeline is still correct due to the timestamps.

On Cocoa, getsentry/sentry-cocoa#1215 was already closed to keep creating automatic spans from the root.

This is only necessary for Mobile integrations since they have the concept of singleHub, backend instrumentation does not require that since each thread has its own hub/scope.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance API issues

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions