Repository navigation
docs(profiling): Fix stale comment referencing removed start_profiling - #8401
Merged
Merged
Conversation
sentrivana
approved these changes
Nov 26, 2026
Contributor
Coverage Results 📊✅ 59457 passed | ⏭️ 3119 skipped | Total: 62576 | Pass Rate: 95.02% | Execution Time: 161m 49s 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 100.00% (no changed executable lines found; target 80%). Files with missing lines (1)
Generated by Coverage Action |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR only changes a comment, in
sentry_sdk/profiler/continuous_profiler.py(ContinuousScheduler.make_sampler, line 322). No code changes.Old comment:
Why it's inaccurate:
start_profilingdoesn't exist anywhere insentry_sdk/. 2b067e953 (#4017) copied this comment from the transaction profiler, whereScheduler.start_profilingappended tonew_profiles. In the continuous profiler, that same commit addedContinuousScheduler.auto_startas the method that doesself.new_profiles.append(profile)(line 242). It is called throughtry_profile_lifecycle_trace_start()when a segment span starts (sentry_sdk/traces.py,_start_profile), so it runs on whatever thread starts the span. Then 123c21404 (#6921) removed the transaction profiler, andstart_profilingwent with it.Fix: I kept the comment because it explains why profiles go through the
new_profilesdeque and don't get added to the set directly. I only changed the method name toauto_start.Issues
n/a
via automation
sched_7b023adc5c6d74c9739cbbdca1ed3cf8· Run IDsched_7b023adc5c6d74c9739cbbdca1ed3cf8:1795680000000.--
View Session [Sentry]