getsentry / getsentry/sentry-python

Add a warning if starting a transaction within a transaction

Open
#4,631 1 comment 0 reactions 0 assignees View on GitHub
Improvement Python Spans
Dominant language
Python
Stars
2.2k
Forks
669
Avg merge
1d 40m
Merged PRs (30d)
212

Description

In SDK 2.x, starting a transaction within a running transaction is undefined behavior. In SDK 3.x, there is no real user-facing `start_transaction` anymore, which might mean that spans that used to be transactions in 2.x will become child spans in 3.x.

We should issue a warning if we detect someone wants to `start_transaction` while another transaction is running in 2.x, to give people heads up before upgrading to 3.x.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.