Indicates that the span covers the client-side wrapper around an RPC or
other remote request.
Consumer
Indicates that the span describes consumer receiving a message from a
broker. Unlike client and server, there is no direct critical path
latency relationship between producer and consumer spans (e.g. receiving
a message from a pubsub service subscription).
Internal
Indicates that the span is used internally. Default value.
Producer
Indicates that the span describes producer sending a message to a broker.
Unlike client and server, there is no direct critical path latency
relationship between producer and consumer spans (e.g. publishing a
message to a pubsub service).
Server
Indicates that the span covers server-side handling of an RPC or other
remote network request.
Unspecified
Unspecified. Do NOT use as default.
Implementations MAY assume SpanKind.INTERNAL to be default.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation provides reference information for the \u003ccode\u003eSpan.Types.SpanKind\u003c/code\u003e enum within the Google Cloud Trace v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpanKind\u003c/code\u003e enum categorizes the type of span, aiding in understanding relationships between spans beyond parent-child connections.\u003c/p\u003e\n"],["\u003cp\u003eAvailable versions of this documentation range from version 2.2.0 to the latest version 3.6.0, which is the most up-to-date version.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpanKind\u003c/code\u003e enum includes fields like \u003ccode\u003eClient\u003c/code\u003e, \u003ccode\u003eConsumer\u003c/code\u003e, \u003ccode\u003eInternal\u003c/code\u003e, \u003ccode\u003eProducer\u003c/code\u003e, \u003ccode\u003eServer\u003c/code\u003e, and \u003ccode\u003eUnspecified\u003c/code\u003e, each with specific descriptions related to RPCs, messages, or internal processes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInternal\u003c/code\u003e SpanKind is specified as the default value, and \u003ccode\u003eUnspecified\u003c/code\u003e should not be used as a default value, according to the documentation.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Trace v2 API - Enum Span.Types.SpanKind (3.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.SpanKind)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.5.0/Google.Cloud.Trace.V2.Span.Types.SpanKind)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.4.0/Google.Cloud.Trace.V2.Span.Types.SpanKind)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.3.0/Google.Cloud.Trace.V2.Span.Types.SpanKind)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.2.0/Google.Cloud.Trace.V2.Span.Types.SpanKind)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.1.0/Google.Cloud.Trace.V2.Span.Types.SpanKind)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.0.0/Google.Cloud.Trace.V2.Span.Types.SpanKind)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/2.3.0/Google.Cloud.Trace.V2.Span.Types.SpanKind)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/2.2.0/Google.Cloud.Trace.V2.Span.Types.SpanKind) \n\n public enum Span.Types.SpanKind\n\nReference documentation and code samples for the Google Cloud Trace v2 API enum Span.Types.SpanKind.\n\nType of span. Can be used to specify additional relationships between spans\nin addition to a parent/child relationship.\n\nNamespace\n---------\n\n[Google.Cloud.Trace.V2](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Trace.V2.dll"]]