Package dev.dokimos.server.service
Class TraceQueryService
java.lang.Object
dev.dokimos.server.service.TraceQueryService
Read side for ingested traces: a paginated list and a per-trace detail with spans and eval jobs.
-
Constructor Summary
ConstructorsConstructorDescriptionTraceQueryService(TraceRepository traceRepository, TraceSpanRepository spanRepository, TraceEvalJobRepository jobRepository) -
Method Summary
Modifier and TypeMethodDescriptiongetTrace(UUID id, TenantScope scope) Returns the full detail of one trace: its metadata, spans, and the online eval jobs scoped to its spans.org.springframework.data.domain.Page<TraceSummary> listTraces(UUID projectId, org.springframework.data.domain.Pageable pageable, TenantScope scope) Lists traces newest first, optionally filtered to a project.
-
Constructor Details
-
TraceQueryService
public TraceQueryService(TraceRepository traceRepository, TraceSpanRepository spanRepository, TraceEvalJobRepository jobRepository)
-
-
Method Details
-
listTraces
@Transactional(readOnly=true) public org.springframework.data.domain.Page<TraceSummary> listTraces(UUID projectId, org.springframework.data.domain.Pageable pageable, TenantScope scope) Lists traces newest first, optionally filtered to a project.- Parameters:
projectId- restrict to this project when non-nullpageable- the page request- Returns:
- a page of trace summaries
-
getTrace
Returns the full detail of one trace: its metadata, spans, and the online eval jobs scoped to its spans.- Parameters:
id- the trace primary key- Returns:
- the trace detail
- Throws:
IllegalArgumentException- if no trace has the id (mapped to 404)
-