Skip to content

feat(profiling): Export start/stop profile session #4079

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 1 commit into from
Feb 20, 2025
Merged
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
13 changes: 10 additions & 3 deletions sentry_sdk/profiler/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
from sentry_sdk.profiler.continuous_profiler import start_profiler, stop_profiler
from sentry_sdk.profiler.continuous_profiler import (
start_profile_session,
start_profiler,
stop_profile_session,
stop_profiler,
)
from sentry_sdk.profiler.transaction_profiler import (
MAX_PROFILE_DURATION_NS,
PROFILE_MINIMUM_SAMPLES,
Expand All @@ -20,8 +25,10 @@
)

__all__ = [
"start_profiler",
"stop_profiler",
"start_profile_session",
"start_profiler", # TODO: Deprecate this in favor of `start_profile_session`
"stop_profile_session",
"stop_profiler", # TODO: Deprecate this in favor of `stop_profile_session`
# DEPRECATED: The following was re-exported for backwards compatibility. It
# will be removed from sentry_sdk.profiler in a future release.
"MAX_PROFILE_DURATION_NS",
Expand Down
Loading