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

Add EnableTracing option #2201

Merged
merged 7 commits into from
Feb 28, 2023
Merged

Add EnableTracing option #2201

merged 7 commits into from
Feb 28, 2023

Conversation

mattjohnsonpint
Copy link
Contributor

@mattjohnsonpint mattjohnsonpint commented Feb 28, 2023

Adds a new option EnableTracing which simplifies enabling the Sentry SDK's tracing features.

  • When set true, tracing will be enabled. No other settings are required, but will be honored if set.
  • When set false, tracing will be disabled, regardless of other settings.
  • When set null (the default), the current behavior will be used (which is to follow TracesSampleRate or TracesSampler)

No changes are required, but if you're starting a new app I recommend using EnableTracing = true instead of TracesSampleRate = 1.0.

I've also updated all samples that can leverage tracing to have tracing enabled, using the new option.

Closes #2158

@github-actions
Copy link
Contributor

github-actions bot commented Feb 28, 2023

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 7627ad2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add enableTracing option
2 participants