You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Force a new segment where we were creating transactions #6217
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.
Activity
linear-code commentedon May 7, 2026
PY-2407
fix: Make sure `http.server` spans are segments (#6230)
fix: Make sure `http.server` spans are segments (getsentry#6230)
fix: Make sure `http.server` spans are segments (getsentry#6230)