Skip to content

Commit 9085d7b

Browse files
committed
.
1 parent 43d85d6 commit 9085d7b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

sentry_sdk/client.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@
3535
from sentry_sdk.integrations.dedupe import DedupeIntegration
3636
from sentry_sdk.sessions import SessionFlusher
3737
from sentry_sdk.envelope import Envelope
38-
from sentry_sdk.opentelemetry.integration import (
39-
patch_readable_span,
40-
setup_sentry_tracing,
41-
)
38+
4239
from sentry_sdk.profiler.continuous_profiler import setup_continuous_profiler
4340
from 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:

0 commit comments

Comments
 (0)