Skip to content

TraceSpanKind

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

A span’s OpenTelemetry kind. Values are stored in the database as smallint; the numbers are stable.

[JsonConverter(typeof(JsonStringEnumConverter<TraceSpanKind>))]
public enum TraceSpanKind

Client = 2

The span making an outgoing call.

Consumer = 4

The span consuming a message.

Internal = 0

An internal operation. The default.

Producer = 3

The span producing a message.

Server = 1

The span handling an incoming request.

Follows Diagnostics.ActivityKind’s order exactly. We carry our own enum because AgentPrism.Abstractions must not leak the System.Diagnostics.DiagnosticSource type into its public surface.