To enable tracing in your application, adjust the traces_sample_rate
based on the number of trace samples you want to send to Sentry by adding the highlighted code snippet below. (Setting a value of 1.0
will send 100% of your traces.)
Copied
import sentry_sdk
sentry_sdk.init(
dsn="https://examplePublicKey@o0.ingest.sentry.io/0",
send_default_pii=True,
+ traces_sample_rate=1.0,
)
If you’re adopting Tracing in a high-throughput environment, we recommend testing prior to deployment to ensure that your service’s performance characteristics maintain expectations.
Learn more about tracing options, how to use the traces_sampler function, or how to sample transactions.
Next StepsLearn how to add attributes to spans in Sentry to monitor performance and debug applications.
Learn how to add attributes to spans in Sentry to monitor performance and debug applications
Learn how to connect events across applications/services.
Learn how to configure sampling in your app.
Learn what Sentry instruments automatically, and how to configure spans to capture tracing data on any action in your app.
Learn how to troubleshoot your tracing setup.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4