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+ )
27from sentry_sdk .profiler .transaction_profiler import (
38 MAX_PROFILE_DURATION_NS ,
49 PROFILE_MINIMUM_SAMPLES ,
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" ,
You can’t perform that action at this time.
0 commit comments