TraceSpanKind
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllA span’s OpenTelemetry kind. Values are stored in the database as
smallint; the numbers are stable.
[JsonConverter(typeof(JsonStringEnumConverter<TraceSpanKind>))]public enum TraceSpanKindFields
Section titled “Fields”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.
Remarks
Section titled “Remarks”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.