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

feat: Add TransactionContext::fromEnvironment #1519

Merged
merged 1 commit into from
Apr 24, 2023
Merged

Conversation

cleptric
Copy link
Member

@cleptric cleptric commented Apr 20, 2023

TransactionContext::fromEnvironment has the same behaviour as TransactionContext::fromHeaders.

A use-case for this is the sentry-cli, where the CLI wraps a PHP script or framework console command to be cron monitored and exposes SENTRY_TRACE & SENTRY_BAGGAGE when executing it.

@cleptric cleptric marked this pull request as ready for review April 20, 2023 12:02
@cleptric cleptric merged commit c7d8de5 into master Apr 24, 2023
@cleptric cleptric deleted the continue-via-env branch April 24, 2023 11:17
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.

2 participants