Skip to content

Commit 424d9eb

Browse files
committed
fix: correct function names in deprecation warnings for start/stop_profile_session
1 parent 26ef571 commit 424d9eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎sentry_sdk/profiler/continuous_profiler.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def start_profiler() -> None:
155155

156156
def start_profile_session() -> None:
157157
warnings.warn(
158-
"The `start_profile_session` function is deprecated. Please use `start_profile` instead.",
158+
"The `start_profile_session` function is deprecated. Please use `start_profiler` instead.",
159159
DeprecationWarning,
160160
stacklevel=2,
161161
)
@@ -171,7 +171,7 @@ def stop_profiler() -> None:
171171

172172
def stop_profile_session() -> None:
173173
warnings.warn(
174-
"The `stop_profile_session` function is deprecated. Please use `stop_profile` instead.",
174+
"The `stop_profile_session` function is deprecated. Please use `stop_profiler` instead.",
175175
DeprecationWarning,
176176
stacklevel=2,
177177
)

0 commit comments

Comments
 (0)