Problem/Motivation
It seems various Sentry code cannot determine when a transaction is not sampled, because unsampled transactions are not set on the hub.
Steps to reproduce
Look at sentry meta tags on a page when the transaction was not sampled.
Proposed resolution
Various code runs when a span is present on the hub. Instead, that code could run if a span is both present and sampled.
Remaining tasks
Backport to 5.x, 4.x and 3.x
User interface changes
API changes
Data model changes
Issue fork raven-3447361
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
mfbComment #5
mfbVerified that this fix is correct in https://github.com/getsentry/sentry-laravel/issues/894
Comment #12
mfbComment #13
mfb