Enum SpanKind
- Namespace
- DotCompute.Core.Telemetry.Enums
- Assembly
- DotCompute.Core.dll
Defines the different kinds of spans in distributed tracing. Each kind indicates the role of the span in the overall trace context.
public enum SpanKind
Fields
Client = 2Client span - represents a request made to another service. Used when the service is acting as a client making outbound calls.
Consumer = 4Consumer span - represents a message being received from a messaging system. Used when processing messages from queues or event streams.
Internal = 0Internal span - represents an operation within the application. Used for internal operations that don't cross service boundaries.
Producer = 3Producer span - represents a message being sent to a messaging system. Used in message queue or event streaming scenarios.
Server = 1Server span - represents a request being handled by the service. Used when the service is acting as a server receiving requests.