Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dinmukhamedm
Copy link
Member

@dinmukhamedm dinmukhamedm commented Jun 26, 2025

Important

Reorder message acknowledgment in inner_process_browser_events() and remove wait_for_async_insert option in insert_browser_events() for improved processing.

  • Behavior:
    • Move acker.ack() call before increment_project_browser_events_bytes_ingested() in inner_process_browser_events() in mod.rs to ensure message acknowledgment occurs earlier.
    • Remove wait_for_async_insert option in insert_browser_events() in browser_events.rs to modify ClickHouse insert behavior.
  • Logging:
    • Add error logging for failed message acknowledgment in inner_process_browser_events() in mod.rs.

This description was created by Ellipsis for 206b69a. You can customize this summary. It will automatically update as commits are pushed.

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.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! πŸ‘

Reviewed everything up to 206b69a in 58 seconds. Click for details.
  • Reviewed 38 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with πŸ‘ or πŸ‘Ž to teach Ellipsis.
1. app-server/src/browser_events/mod.rs:95
  • Draft comment:
    Removed duplicate ack call on successful insert. Now the message is acked only once (line 95) before updating stats. Ensure this behavior (ack before stats update) is acceptable and doesn't mask any potential insert issues.
  • Reason this comment was not posted:
    Comment looked like it was already resolved.
2. app-server/src/ch/browser_events.rs:41
  • Draft comment:
    Removed the 'wait_for_async_insert' option. Verify that not waiting for async insert completion is intentional and acceptable for reliability/performance trade-offs.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% The comment is asking the PR author to verify their intention regarding the removal of an option. This falls under the rule of not asking the author to confirm their intention or ensure behavior is intended. Therefore, this comment should be removed.

Workflow ID: wflow_N7MsFNGAYaq2K8ub

You can customize Ellipsis by changing your verbosity settings, reacting with πŸ‘ or πŸ‘Ž, replying to comments, or adding code review rules.

@dinmukhamedm dinmukhamedm merged commit 8e800f3 into dev Jun 26, 2025
2 checks passed
@dinmukhamedm dinmukhamedm deleted the hotfix/ack-browser-events branch June 26, 2025 10:23
olzhik11 added a commit that referenced this pull request Jun 26, 2025
* estimate span size before any processing (#654)

* Feat/lam 682 (#655)

* feat: update delete project, fix spans filters

* fix: rendering, model fallback

* feat: move delete endpoint to next

* feat: fix margins

* feat: update delete project data in ch, fix comments

* fix: command

* feat: add debug console

* feat: move helper function

* allow CTES in SQL editor (#653)

* allow CTES in SQL editor

* remove debug console.log

* fix reset usage when upgrading (#657)

* Hotfix/ack browser events (#660)

* first ack browser events, then increment usage

* don't wait for async insert on browser events

* feat: fix decode key by passing in docker file (#661)

* feat: fix decode key by passing in docker file

* feat: add key to full build

---------

Co-authored-by: Dinmukhamed Mailibay <[email protected]>
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.

2 participants