Skip to content

Commit ccfd3a8

Browse files
authored
feat(profiling): Export start/stop profile session (#4079)
Need to export these explicitly so it can be used.
1 parent a3b6e5d commit ccfd3a8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

sentry_sdk/profiler/__init__.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
from sentry_sdk.profiler.continuous_profiler import start_profiler, stop_profiler
1+
from sentry_sdk.profiler.continuous_profiler import (
2+
start_profile_session,
3+
start_profiler,
4+
stop_profile_session,
5+
stop_profiler,
6+
)
27
from sentry_sdk.profiler.transaction_profiler import (
38
MAX_PROFILE_DURATION_NS,
49
PROFILE_MINIMUM_SAMPLES,
@@ -20,8 +25,10 @@
2025
)
2126

2227
__all__ = [
23-
"start_profiler",
24-
"stop_profiler",
28+
"start_profile_session",
29+
"start_profiler", # TODO: Deprecate this in favor of `start_profile_session`
30+
"stop_profile_session",
31+
"stop_profiler", # TODO: Deprecate this in favor of `stop_profile_session`
2532
# DEPRECATED: The following was re-exported for backwards compatibility. It
2633
# will be removed from sentry_sdk.profiler in a future release.
2734
"MAX_PROFILE_DURATION_NS",

0 commit comments

Comments
 (0)