Skip to content

Force a new segment where we were creating transactions #6217

@sentrivana

Description

@sentrivana

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.

Metadata

Metadata

Assignees

Labels

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions