Package dev.dokimos.server.repository
Interface TraceRepositoryFragment
- All Superinterfaces:
ScopedRepository<Trace>
- All Known Subinterfaces:
TraceRepository
- All Known Implementing Classes:
TraceRepositoryFragmentImpl
Entity-specific scoped finders for
Trace plus the unrestricted ingestion and sweeper paths.-
Method Summary
Modifier and TypeMethodDescriptionintdeleteExpired(Instant cutoff) Deletes traces whose retention window has closed, across all tenants; spans and trace eval jobs cascade.org.springframework.data.domain.Page<Trace> findAllOrdered(org.springframework.data.domain.Pageable pageable, TenantScope scope) Lists traces newest first within the scope, paginated.org.springframework.data.domain.Page<Trace> findByProjectId(UUID projectId, org.springframework.data.domain.Pageable pageable, TenantScope scope) Lists a project's traces newest first within the scope, paginated.findByTraceId(String traceId) Looks up a trace by its OTLP trace id regardless of tenant.
-
Method Details
-
findByTraceId
Looks up a trace by its OTLP trace id regardless of tenant. Ingestion reuses an existing trace row so spans accumulate across batches, so this lookup is unrestricted. -
findAllOrdered
org.springframework.data.domain.Page<Trace> findAllOrdered(org.springframework.data.domain.Pageable pageable, TenantScope scope) Lists traces newest first within the scope, paginated. -
findByProjectId
org.springframework.data.domain.Page<Trace> findByProjectId(UUID projectId, org.springframework.data.domain.Pageable pageable, TenantScope scope) Lists a project's traces newest first within the scope, paginated. -
deleteExpired
Deletes traces whose retention window has closed, across all tenants; spans and trace eval jobs cascade. Runs off the request thread, so it is unrestricted.
-