Skip to content

ref: Move sampler out of integrations/opentelemetry/ #4258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sentry_sdk/integrations/opentelemetry/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from sentry_sdk.integrations.opentelemetry.span_processor import (
SentrySpanProcessor,
)
from sentry_sdk.integrations.opentelemetry.sampler import SentrySampler
from sentry_sdk.opentelemetry.sampler import SentrySampler
from sentry_sdk.utils import logger

try:
Expand Down
2 changes: 1 addition & 1 deletion sentry_sdk/integrations/opentelemetry/span_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
from sentry_sdk.consts import SPANDATA
from sentry_sdk.tracing import DEFAULT_SPAN_ORIGIN
from sentry_sdk.utils import get_current_thread_meta
from sentry_sdk.opentelemetry.sampler import create_sampling_context
from sentry_sdk.profiler.continuous_profiler import (
try_autostart_continuous_profiler,
get_profiler_id,
try_profile_lifecycle_trace_start,
)
from sentry_sdk.profiler.transaction_profiler import Profile
from sentry_sdk.integrations.opentelemetry.sampler import create_sampling_context
from sentry_sdk.integrations.opentelemetry.utils import (
is_sentry_span,
convert_from_otel_timestamp,
Expand Down
5 changes: 5 additions & 0 deletions sentry_sdk/opentelemetry/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from sentry_sdk.opentelemetry.sampler import SentrySampler

__all__ = [
"SentrySampler",
]
Loading