File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 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
+ )
2
7
from sentry_sdk .profiler .transaction_profiler import (
3
8
MAX_PROFILE_DURATION_NS ,
4
9
PROFILE_MINIMUM_SAMPLES ,
20
25
)
21
26
22
27
__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`
25
32
# DEPRECATED: The following was re-exported for backwards compatibility. It
26
33
# will be removed from sentry_sdk.profiler in a future release.
27
34
"MAX_PROFILE_DURATION_NS" ,
You can’t perform that action at this time.
0 commit comments