Skip to content

Commit a07c4ae

Browse files
authored
Remove OpenTelemetryIntegration from __init__.py (#2379)
Always importing the experimental integration module that requires a higher version of the opentelemetry-distro package causes packaging issues on some systems where the newer OTel packages don't exist.
1 parent a7b4144 commit a07c4ae

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

sentry_sdk/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def _capture_envelope(envelope):
243243
)
244244
self.options["instrumenter"] = INSTRUMENTER.OTEL
245245
_DEFAULT_INTEGRATIONS.append(
246-
"sentry_sdk.integrations.opentelemetry.OpenTelemetryIntegration",
246+
"sentry_sdk.integrations.opentelemetry.integration.OpenTelemetryIntegration",
247247
)
248248

249249
self.integrations = setup_integrations(

sentry_sdk/integrations/opentelemetry/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
from sentry_sdk.integrations.opentelemetry.integration import ( # noqa: F401
2-
OpenTelemetryIntegration,
3-
)
4-
51
from sentry_sdk.integrations.opentelemetry.span_processor import ( # noqa: F401
62
SentrySpanProcessor,
73
)

0 commit comments

Comments
 (0)