lmnr-ai / lmnr

Laminar - open-source all-in-one platform for engineering AI products. Crate data flywheel for you AI app. Traces, Evals, Datasets, Labels. YC S24.
https://www.lmnr.ai
Apache License 2.0
1.17k stars 58 forks source link

disable all clickhouse queries for non-full builds (#213) #214

Closed dinmukhamedm closed 1 week ago

dinmukhamedm commented 1 week ago

[!IMPORTANT] Disable ClickHouse queries for non-full builds by checking Feature::FullBuild across multiple modules.

  • Behavior:
    • Disable ClickHouse queries for non-full builds by checking Feature::FullBuild in insert_evaluation_scores(), insert_events(), insert_label(), delete_label(), insert_span(), get_events_metrics(), and get_traces_metrics().
    • Return early with empty results or success when Feature::FullBuild is not enabled.
  • Files Affected:
    • evaluation_scores.rs, events.rs, labels.rs, spans.rs in app-server/src/ch/
    • events.rs, traces.rs in app-server/src/routes/
    • evaluation-scores.ts in frontend/lib/clickhouse/

This description was created by Ellipsis for 7b14a7acde31984593e21a0762f6f0397dfac253. It will automatically update as commits are pushed.