Hi, is there a way to filter all spans by specific time range from Phoenix UI. Example : all spans between 8am - 9am today.
Is there a way to export this result?
Yes, you can filter all spans by a specific time range in the Phoenix UI using the search bar with Python boolean expressions, and you can export the filtered results. The UI supports time-based filtering, and you can also use the Python client to export spans within a time range as a DataFrame using the get_spans_dataframe or query_spans methods with start_time and end_time parameters. For example, in code: LBKSimport phoenix as px from datetime import datetimeLBKSclient = px.Client() start = datetime(2024, 6, 20, 8, 0, 0) end = datetime(2024, 6, 20, 9, 0, 0) df = client.query_spans(start_time=start, end_time=end)LBKSAccording to the documentation, the same filter logic applies in the UI and Python client, and the exported data can be saved as a DataFrame or CSV file as needed. Would you like more detail on how to do this in the UI or with code? Sources:
- Export Data & Query Spans | Phoenix
- Export Data & Query Spans | Phoenix
- Span Querying & Data Extraction for Phoenix Client
馃挕聽Hint: Mention RunLLM in the thread for followups.
Hi Keerthi! Currently in the UI we have a way to filter spans from a certain time frame and then export those from a project into a dataset. (I have included a quick walkthrough in the GIF below)