File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 3535from sentry_sdk .integrations .dedupe import DedupeIntegration
3636from sentry_sdk .sessions import SessionFlusher
3737from sentry_sdk .envelope import Envelope
38- from sentry_sdk .opentelemetry .integration import (
39- patch_readable_span ,
40- setup_sentry_tracing ,
41- )
38+
4239from sentry_sdk .profiler .continuous_profiler import setup_continuous_profiler
4340from sentry_sdk .profiler .transaction_profiler import (
4441 has_profiling_enabled ,
@@ -396,6 +393,11 @@ def _capture_envelope(envelope):
396393 except Exception as e :
397394 logger .debug ("Can not set up continuous profiler. (%s)" , e )
398395
396+ from sentry_sdk .opentelemetry .integration import (
397+ patch_readable_span ,
398+ setup_sentry_tracing ,
399+ )
400+
399401 patch_readable_span ()
400402 setup_sentry_tracing ()
401403 finally :
You can’t perform that action at this time.
0 commit comments