Package dev.dokimos.server.repository
Class TraceRepositoryFragmentImpl
java.lang.Object
dev.dokimos.server.tenant.AbstractScopedRepository<Trace>
dev.dokimos.server.repository.TraceRepositoryFragmentImpl
- All Implemented Interfaces:
TraceRepositoryFragment,ScopedRepository<Trace>
public class TraceRepositoryFragmentImpl
extends AbstractScopedRepository<Trace>
implements TraceRepositoryFragment
Tenant-scoped implementation of the
Trace finders plus the unrestricted ingestion paths.-
Constructor Summary
Constructors -
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.Methods inherited from class dev.dokimos.server.tenant.AbstractScopedRepository
count, delete, findAll, findById, save, saveAll
-
Constructor Details
-
TraceRepositoryFragmentImpl
public TraceRepositoryFragmentImpl()
-
-
Method Details
-
findByTraceId
Description copied from interface:TraceRepositoryFragmentLooks 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.- Specified by:
findByTraceIdin interfaceTraceRepositoryFragment
-
findAllOrdered
public org.springframework.data.domain.Page<Trace> findAllOrdered(org.springframework.data.domain.Pageable pageable, TenantScope scope) Description copied from interface:TraceRepositoryFragmentLists traces newest first within the scope, paginated.- Specified by:
findAllOrderedin interfaceTraceRepositoryFragment
-
findByProjectId
public org.springframework.data.domain.Page<Trace> findByProjectId(UUID projectId, org.springframework.data.domain.Pageable pageable, TenantScope scope) Description copied from interface:TraceRepositoryFragmentLists a project's traces newest first within the scope, paginated.- Specified by:
findByProjectIdin interfaceTraceRepositoryFragment
-
deleteExpired
Description copied from interface:TraceRepositoryFragmentDeletes traces whose retention window has closed, across all tenants; spans and trace eval jobs cascade. Runs off the request thread, so it is unrestricted.- Specified by:
deleteExpiredin interfaceTraceRepositoryFragment
-