Skip to content

Commit 268a524

Browse files
authored
Add OTelIntegration to DEFAULT_INTEGRATIONS (#3471)
1 parent 4331362 commit 268a524

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

sentry_sdk/client.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
VERSION,
3131
ClientConstructor,
3232
)
33-
from sentry_sdk.integrations import _DEFAULT_INTEGRATIONS, setup_integrations
33+
from sentry_sdk.integrations import setup_integrations
3434
from sentry_sdk.sessions import SessionFlusher
3535
from sentry_sdk.envelope import Envelope
3636
from sentry_sdk.profiler.continuous_profiler import setup_continuous_profiler
@@ -345,18 +345,6 @@ def _capture_envelope(envelope):
345345
)
346346
)
347347

348-
if self.options["_experiments"].get("otel_powered_performance", False):
349-
logger.debug(
350-
"[OTel] Enabling experimental OTel-powered performance monitoring."
351-
)
352-
if (
353-
"sentry_sdk.integrations.opentelemetry.integration.OpenTelemetryIntegration"
354-
not in _DEFAULT_INTEGRATIONS
355-
):
356-
_DEFAULT_INTEGRATIONS.append(
357-
"sentry_sdk.integrations.opentelemetry.integration.OpenTelemetryIntegration",
358-
)
359-
360348
self.integrations = setup_integrations(
361349
self.options["integrations"],
362350
with_defaults=self.options["default_integrations"],

sentry_sdk/integrations/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def iter_default_integrations(with_auto_enabling_integrations):
6565
"sentry_sdk.integrations.excepthook.ExcepthookIntegration",
6666
"sentry_sdk.integrations.logging.LoggingIntegration",
6767
"sentry_sdk.integrations.modules.ModulesIntegration",
68+
"sentry_sdk.integrations.opentelemetry.integration.OpenTelemetryIntegration",
6869
"sentry_sdk.integrations.stdlib.StdlibIntegration",
6970
"sentry_sdk.integrations.threading.ThreadingIntegration",
7071
]

0 commit comments

Comments
 (0)