Interface RepositorySpanFactory

All Known Implementing Classes:
DefaultRepositorySpanFactory

public interface RepositorySpanFactory
Span factory that creates spans for the Repository. You can customize the spans of the bus by creating your own implementation.
Since:
4.9.0
Author:
Mitchell Herrijgers
  • Method Summary

    Modifier and Type
    Method
    Description
    createInitializeStateSpan(String aggregateType, String aggregateId)
    Creates a span that represents the time it took to hydrate the aggregate with data from, for example, the event store.
    createLoadSpan(String aggregateId)
    Creates a span that represents the loading of an aggregate with the provided identifier.
    Creates a span that represents the time waiting to acquire a lock on an aggregate with the provided identifier.
  • Method Details

    • createLoadSpan

      Span createLoadSpan(String aggregateId)
      Creates a span that represents the loading of an aggregate with the provided identifier.
      Parameters:
      aggregateId - The identifier of the aggregate that is being loaded.
      Returns:
      A span that represents the loading of the aggregate.
    • createObtainLockSpan

      Span createObtainLockSpan(String aggregateId)
      Creates a span that represents the time waiting to acquire a lock on an aggregate with the provided identifier.
      Parameters:
      aggregateId - The identifier of the aggregate that is trying to acquire a lock.
      Returns:
      A span that represents the acquisition of the lock for the aggregate.
    • createInitializeStateSpan

      Span createInitializeStateSpan(String aggregateType, String aggregateId)
      Creates a span that represents the time it took to hydrate the aggregate with data from, for example, the event store.
      Parameters:
      aggregateType - The type of the aggregate that is being hydrated.
      aggregateId - The identifier of the aggregate that is being hydrated.
      Returns:
      A span that represents the hydration of the aggregate.