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

Skip to content

Conversation

@dinmukhamedm
Copy link
Member

@dinmukhamedm dinmukhamedm commented Dec 17, 2025

Note

Upgrade ClickHouse and Moka dependencies and migrate all ClickHouse insertions to the new typed, async insert API across CH modules.

  • Dependencies:
    • Update clickhouse to 0.14.1 and moka to 0.12.11 in app-server/Cargo.toml.
    • Unify thiserror dependency (remove explicit v1 pin); refresh Cargo.lock with new transitive crates (e.g., clickhouse-macros, clickhouse-types) and removals tied to the upgrade.
  • ClickHouse insertion API migration:
    • Replace insert("table") with typed insert::<Type>("table").await and adjust call sites in:
      • app-server/src/ch/browser_events.rs
      • app-server/src/ch/datapoints.rs
      • app-server/src/ch/evaluation_datapoint_outputs.rs
      • app-server/src/ch/evaluation_datapoints.rs
      • app-server/src/ch/evaluation_scores.rs
      • app-server/src/ch/evaluator_scores.rs
      • app-server/src/ch/events.rs
      • app-server/src/ch/spans.rs
      • app-server/src/ch/tags.rs
      • app-server/src/ch/traces.rs

Written by Cursor Bugbot for commit fb5cef2. This will update automatically on new commits. Configure here.


Important

Update dependencies and modify Clickhouse insertions to use new API in multiple files.

  • Dependencies:
    • Update clickhouse to 0.14.1 and moka to 0.12.11 in Cargo.toml.
    • Remove specific version dependency on thiserror 1.0.69 in Cargo.lock.
  • Clickhouse Insertions:
    • Update insert calls to specify type and use .await in browser_events.rs, datapoints.rs, evaluation_datapoint_outputs.rs.
    • Similar updates in evaluation_datapoints.rs, evaluation_scores.rs, evaluator_scores.rs.
    • Apply changes to events.rs, spans.rs, tags.rs, traces.rs for consistency with new clickhouse API.

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

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 fb5cef2 in 1 minute and 7 seconds. Click for details.
  • Reviewed 706 lines of code in 12 files
  • Skipped 0 files when reviewing.
  • Skipped posting 7 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/ch/datapoints.rs:50
  • Draft comment:
    Consider handling serialization errors explicitly instead of using unwrap_or_default when converting datapoint payloads to string. This avoids silently masking potential issues.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
2. app-server/src/ch/evaluation_scores.rs:11
  • Draft comment:
    The custom serializer clones the timestamp; consider if borrowing (or avoiding clone) is possible to reduce overhead.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
3. app-server/src/ch/evaluation_scores.rs:50
  • Draft comment:
    Ensure that the lengths of 'points' and 'evaluation_datapoint_ids' match when zipping; otherwise, data might be silently dropped.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
4. app-server/src/ch/traces.rs:116
  • Draft comment:
    TraceAggregation::from_spans uses zip on spans and span_usage_vec; ensure these slices are aligned in order and length to avoid aggregation mismatches.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
5. app-server/src/ch/tags.rs:91
  • Draft comment:
    For batch tag insertion, new Uuid::new_v4() is called per tag. Confirm this is intended and that tag IDs don't need to be deterministic for duplicate checks.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
6. app-server/src/ch/spans.rs:123
  • Draft comment:
    Verify that sanitize_string properly handles all edge cases for converting input/output fields, as these fields are critical for span logging.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
7. app-server/src/ch/evaluation_datapoints.rs:65
  • Draft comment:
    When filtering out existing datapoints using dataset_link fields, ensure that missing links (default Uuid) are handled as intended and do not lead to accidental duplicate filtering.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.

Workflow ID: wflow_uUa3brC0jOn6u3f2

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

@dinmukhamedm dinmukhamedm merged commit 381bdf7 into dev Dec 18, 2025
3 checks passed
@dinmukhamedm dinmukhamedm deleted the bump-rust-deps branch January 6, 2026 12:29
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