mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-25 15:28:06 +00:00
chore(test): fix flaky telemetry tests
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
This commit is contained in:
parent
20c3197952
commit
81361add26
2 changed files with 9 additions and 4 deletions
|
|
@ -83,6 +83,7 @@ class SQLiteTraceStore(TraceStore):
|
|||
)
|
||||
SELECT DISTINCT trace_id, root_span_id, start_time, end_time
|
||||
FROM filtered_traces
|
||||
WHERE root_span_id IS NOT NULL
|
||||
LIMIT {limit} OFFSET {offset}
|
||||
"""
|
||||
|
||||
|
|
@ -166,7 +167,11 @@ class SQLiteTraceStore(TraceStore):
|
|||
return spans_by_id
|
||||
|
||||
async def get_trace(self, trace_id: str) -> Trace:
|
||||
query = "SELECT * FROM traces WHERE trace_id = ?"
|
||||
query = """
|
||||
SELECT *
|
||||
FROM traces t
|
||||
WHERE t.trace_id = ?
|
||||
"""
|
||||
async with aiosqlite.connect(self.conn_string) as conn:
|
||||
conn.row_factory = aiosqlite.Row
|
||||
async with conn.execute(query, (trace_id,)) as cursor:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue