<PackageReference Include="OpenTelemetry.Api" Version="1.16.0" />

OpenTelemetry.Trace.SpanKind

public enum SpanKind
Span kind.
Client = 3

Client span represents outgoing request to the external component.

Consumer span represents output received from an external component. Unlike client and server, there is no direct critical path latency relationship between producer and consumer spans.

Span kind was not specified.

Producer span represents output provided to external components. Unlike client and server, there is no direct critical path latency relationship between producer and consumer spans.

Server = 2

Server span represents request incoming from external component.