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

Fix/span type filter #195

Closed dinmukhamedm closed 2 weeks ago

dinmukhamedm commented 2 weeks ago

[!IMPORTANT] Enhance span_type filtering by implementing FromStr for SpanType, updating query handling, and modifying frontend SQL casting.

  • Behavior:
    • Implement FromStr for SpanType in spans.rs to parse string inputs for span types.
    • Update add_filters_to_traces_query() in trace.rs to handle top_span_type using SpanType parsing.
    • Modify GET function in route.ts to cast span_type values correctly in SQL queries.
  • Misc:
    • Add castType to FilterDef in modifiers.ts to support type casting in SQL filters.
    • Adjust ordinal values in seed.json for consistency.

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