Skip to content

Conversation

justin-tahara
Copy link
Contributor

@justin-tahara justin-tahara commented Aug 22, 2025

Description

[Provide a brief description of the changes in this PR]
We need to add additional logging in order to investigate why there are issues with the logging of the heartbeat and understand why there is an issue.

How Has This Been Tested?

[Describe the tests you ran to verify your changes]

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

* fix: use only celery-shared for security context

* fix: bump helm chart version 0.2.8
@justin-tahara justin-tahara requested a review from a team as a code owner August 22, 2025 00:24
Copy link

vercel bot commented Aug 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
internal-search Ready Ready Preview Comment Aug 22, 2025 0:25am

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Summary

This PR adds logging capabilities to the document processing heartbeat functionality to improve observability and debugging. The changes introduce proper logging for both successful heartbeat counter updates and failures in the indexing worker system.

Specifically, the PR:

  • Imports the setup_logger() function from onyx.utils.logger
  • Adds debug-level logging when heartbeat counters are successfully updated for index attempts
  • Replaces a silent pass statement with proper exception logging that captures full stack traces when heartbeat updates fail

This change integrates with the existing logging infrastructure by using the OnyxLoggingAdapter that adds contextual information like request IDs and tenant IDs to log messages. The heartbeat system is a critical component for tracking the health of document indexing workers, and previously any failures were silently ignored, making it impossible to diagnose issues. This logging enhancement will provide the visibility needed to investigate heartbeat problems mentioned in the PR description.

Confidence score: 5/5

  • This PR is extremely safe to merge with virtually no risk of causing issues
  • Score reflects simple, well-contained logging additions that follow established patterns and improve observability without changing core logic
  • No files require special attention as the changes are straightforward logging enhancements

1 file reviewed, no comments

Edit Code Review Bot Settings | Greptile

@evan-onyx evan-onyx merged commit 5602ff8 into main Aug 22, 2025
13 of 18 checks passed
@evan-onyx evan-onyx deleted the jtahara/heartbeat-logger branch August 22, 2025 00:25
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
…nyx-dot-app#5239)

* fix: use only celery-shared for security context

* fix: bump helm chart version 0.2.8

Co-authored-by: Sam Waddell <shwaddell28@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants