How do you use Sentry?
Sentry Saas (sentry.io)
Version
1.26.0; 1.44.1
Steps to Reproduce
Run this script
Expected Result
Having seven entries in sentry Discover, from Sherlock.1 to Sherlock.6 and another one for Holmes
Actual Result
Not having all the metrics, sometimes it works and sometimes not, even with traces_sample_rate set to 1.0 and flushing transactions manually.
output log:
Hello Sherlock.1!
[sentry] DEBUG: Setting up integrations (with default = False)
[sentry] DEBUG: Setting up previously not enabled integration atexit
[sentry] DEBUG: Enabling integration atexit
[sentry] DEBUG: Setting SDK name to 'sentry.python'
[sentry] DEBUG: [Tracing] Starting transaction <Sherlock.1>
[sentry] DEBUG: [Profiling] Discarding profile because profiler was not started.
[sentry] DEBUG: Flushing HTTP transport
[sentry] DEBUG: background worker got flush request
[sentry] DEBUG: background worker flushed
[sentry] DEBUG: [Tracing] Starting transaction <Sherlock.2>
[sentry] DEBUG: [Profiling] Discarding profile because profiler was not started.
Hello Sherlock.2!
[sentry] DEBUG: Flushing HTTP transport
[sentry] DEBUG: Sending envelope [envelope with 1 items (transaction)] project:4505... host:o450...
[sentry] DEBUG: background worker got flush request
[sentry] DEBUG: 2 event(s) pending on flush
[sentry] DEBUG: background worker flushed
[sentry] DEBUG: [Tracing] Starting transaction <Sherlock.3>
[sentry] DEBUG: [Profiling] Discarding profile because profiler was not started.
Hello Sherlock.3!
[sentry] DEBUG: Flushing HTTP transport
[sentry] DEBUG: Sending envelope [envelope with 1 items (transaction)] project:4505... host:o450...
[sentry] DEBUG: background worker got flush request
[sentry] DEBUG: background worker flushed
[sentry] DEBUG: [Tracing] Starting transaction <Sherlock.4>
[sentry] DEBUG: [Profiling] Discarding profile because profiler was not started.
Hello Sherlock.4!
[sentry] DEBUG: Flushing HTTP transport
[sentry] DEBUG: Sending envelope [envelope with 1 items (transaction)] project:4505... host:o450...
[sentry] DEBUG: background worker got flush request
[sentry] DEBUG: background worker flushed
[sentry] DEBUG: [Tracing] Starting transaction <Sherlock.5>
[sentry] DEBUG: [Profiling] Discarding profile because profiler was not started.
Hello Sherlock.5!
[sentry] DEBUG: Sending envelope [envelope with 1 items (transaction)] project:4505... host:o450...
[sentry] DEBUG: Flushing HTTP transport
[sentry] DEBUG: background worker got flush request
[sentry] DEBUG: background worker flushed
[sentry] DEBUG: [Tracing] Starting transaction <Sherlock.6>
[sentry] DEBUG: [Profiling] Discarding profile because profiler was not started.
Hello Sherlock.6!
[sentry] DEBUG: Sending envelope [envelope with 1 items (transaction)] project:4505... host:o450...
[sentry] DEBUG: Flushing HTTP transport
[sentry] DEBUG: background worker got flush request
[sentry] DEBUG: background worker flushed
[sentry] DEBUG: [Tracing] Starting transaction <Holmes>
[sentry] DEBUG: [Profiling] Discarding profile because profiler was not started.
Hello Holmes!
[sentry] DEBUG: Sending envelope [envelope with 1 items (transaction)] project:4505... host:o450...
[sentry] DEBUG: Flushing HTTP transport
[sentry] DEBUG: background worker got flush request
[sentry] DEBUG: background worker flushed
[sentry] DEBUG: atexit: got shutdown signal
[sentry] DEBUG: atexit: shutting down client
[sentry] DEBUG: Flushing HTTP transport
[sentry] DEBUG: Sending envelope [envelope with 1 items (transaction)] project:4505... host:o450...
[sentry] DEBUG: background worker got flush request
[sentry] DEBUG: background worker flushed
[sentry] DEBUG: Killing HTTP transport
[sentry] DEBUG: background worker got kill request
[sentry] DEBUG: Killing HTTP transport
