- All Known Implementing Classes:
- FlowIDGenerator, PhraseGenerator, UUIDGenerator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface Generator
A generator is used to create a new trace identifier when a new lifecycle begins and no existing identifier exist.
This usually happens for incoming requests from external systems that are not aware of the special trace header or
if someone explicitly decides to start a new trace lifecycle without preserving existing identifiers.
- See Also:
Tracer#create(ImmutableList, ImmutableMap, ImmutableList),
Tracer.start(),
Tracer.start(Function)