Interface TraceRepositoryFragment

All Superinterfaces:
ScopedRepository<Trace>
All Known Subinterfaces:
TraceRepository
All Known Implementing Classes:
TraceRepositoryFragmentImpl

public interface TraceRepositoryFragment extends ScopedRepository<Trace>
Entity-specific scoped finders for Trace plus the unrestricted ingestion and sweeper paths.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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.
    Looks up a trace by its OTLP trace id regardless of tenant.

    Methods inherited from interface dev.dokimos.server.tenant.ScopedRepository

    count, delete, findAll, findById, save, saveAll
  • Method Details

    • findByTraceId

      Optional<Trace> findByTraceId(String traceId)
      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

      int deleteExpired(Instant cutoff)
      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.