Skip to content

Commit 01ad0ac

Browse files
docs(celery): Fix stale comment referencing removed sentry_apply_entry (#8253)
1 parent 939bcf0 commit 01ad0ac

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎sentry_sdk/integrations/celery/__init__.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,9 @@ def _update_celery_task_headers(
241241
if combined_baggage:
242242
updated_headers["headers"][BAGGAGE_HEADER_NAME] = combined_baggage
243243

244-
# Add the Sentry options potentially added in `sentry_apply_entry`
245-
# to the headers (done when auto-instrumenting Celery Beat tasks)
244+
# Add the Sentry options potentially added in
245+
# `_apply_crons_data_to_schedule_entry` to the headers (done when
246+
# auto-instrumenting Celery Beat tasks)
246247
for key, value in updated_headers.items():
247248
if key.startswith("sentry-"):
248249
updated_headers["headers"][key] = value

0 commit comments

Comments
 (0)