mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-14 04:09:09 +00:00
fix(lens): accept omitted trace references in bulk reads
This commit is contained in:
parent
0fc90ac049
commit
477828ac49
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ import { useTracesApi, type TracesApi } from "../../api";
|
|||
import type { Span, SpanDetail, Trace } from "../../types";
|
||||
import { CONVERSATION_PAGE_SIZE, conversationSteps } from "./conversation";
|
||||
|
||||
async function readBatch(traces: TracesApi, traceId: string, ids: string[], traceRef: string): Promise<SpanDetail[]> {
|
||||
async function readBatch(traces: TracesApi, traceId: string, ids: string[], traceRef?: string): Promise<SpanDetail[]> {
|
||||
try {
|
||||
return await traces.spans(traceId, ids, traceRef);
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue