Senior
What are the main components of a trace message (span)?
sobes.tech AI
Answer from AI
A trace message (span) typically consists of the following main blocks:
- Trace ID — a unique identifier for the entire tracing request, linking all spans in a single chain.
- Span ID — a unique identifier for a specific span (operation).
- Parent Span ID — the identifier of the parent span, if any, for building a hierarchy.
- Operation Name — the name of the operation or method being performed.
- Start Timestamp — the start time of the operation.
- Duration — the duration of the operation.
- Tags/Attributes — additional metadata, such as status, errors, request parameters.
- Logs/Events — timestamps with descriptions of events within the span.
These blocks allow tracking and analyzing distributed requests in microservices systems.