Previously, we could control whether a transaction is started via start_transaction. In span first, we can force a segment with parent_span=None.
Goal
- go through the migrated integrations
- audit all places where we used to
start_transaction and see whether the span first equivalent should always create a segment (very likely): if yes, add parent_span=None to the sentry_sdk.traces.start_span call
Note: In most cases, the span we're creating would've been a segment anyway since there's no other span active. However, if for some reason this is not the case, parent_span=None will ensure it'll be a segment.
Previously, we could control whether a transaction is started via
start_transaction. In span first, we can force a segment withparent_span=None.Goal
start_transactionand see whether the span first equivalent should always create a segment (very likely): if yes, addparent_span=Noneto thesentry_sdk.traces.start_spancallNote: In most cases, the span we're creating would've been a segment anyway since there's no other span active. However, if for some reason this is not the case,
parent_span=Nonewill ensure it'll be a segment.