Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the active transaction name on the event #1716

Closed
wants to merge 1 commit into from

Conversation

cleptric
Copy link
Member

@cleptric cleptric commented Mar 8, 2024

Brainstorming a fix for #1715

The scenario here is that an error should contain the active transaction name when the error is sent to Sentry. The only other place besides the integration where we set this property on the event is in Transaction::finish().

Comment on lines +39 to +45
$transaction = SentrySdk::getCurrentHub()->getTransaction();
if ($transaction !== null) {
$event->setTransaction($transaction->getName());

return $event;
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should likely move this after the hint was applied, as this should take precedence.

@cleptric cleptric self-assigned this Mar 11, 2024
@cleptric cleptric closed this Mar 13, 2024
@cleptric cleptric deleted the improve-error-transactions branch March 13, 2024 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant