Skip to content

Commit 4b3284c

Browse files
committed
ref: Move sampler out of integrations/opentelemetry
1 parent 9977769 commit 4b3284c

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

sentry_sdk/integrations/opentelemetry/integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from sentry_sdk.integrations.opentelemetry.span_processor import (
1010
SentrySpanProcessor,
1111
)
12-
from sentry_sdk.integrations.opentelemetry.sampler import SentrySampler
12+
from sentry_sdk.sampler import SentrySampler
1313
from sentry_sdk.utils import logger
1414

1515
try:

sentry_sdk/integrations/opentelemetry/span_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
import sentry_sdk
1515
from sentry_sdk.consts import SPANDATA
16+
from sentry_sdk.sampler import create_sampling_context
1617
from sentry_sdk.tracing import DEFAULT_SPAN_ORIGIN
1718
from sentry_sdk.utils import get_current_thread_meta
1819
from sentry_sdk.profiler.continuous_profiler import (
@@ -21,7 +22,6 @@
2122
try_profile_lifecycle_trace_start,
2223
)
2324
from sentry_sdk.profiler.transaction_profiler import Profile
24-
from sentry_sdk.integrations.opentelemetry.sampler import create_sampling_context
2525
from sentry_sdk.integrations.opentelemetry.utils import (
2626
is_sentry_span,
2727
convert_from_otel_timestamp,
File renamed without changes.

0 commit comments

Comments
 (0)