Implementations MAY assume SpanKind.INTERNAL to be default.
Generated from protobuf enumSPAN_KIND_UNSPECIFIED = 0;
INTERNAL
Value: 1
Indicates that the span is used internally. Default value.
Generated from protobuf enumINTERNAL = 1;
SERVER
Value: 2
Indicates that the span covers server-side handling of an RPC or other
remote network request.
Generated from protobuf enumSERVER = 2;
CLIENT
Value: 3
Indicates that the span covers the client-side wrapper around an RPC or
other remote request.
Generated from protobuf enumCLIENT = 3;
PRODUCER
Value: 4
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).
Generated from protobuf enumPRODUCER = 4;
CONSUMER
Value: 5
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).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Stackdriver Trace V2 Client - Class SpanKind (1.8.10)\n\nVersion latestkeyboard_arrow_down\n\n- [1.8.10 (latest)](/php/docs/reference/cloud-trace/latest/V2.Span.SpanKind)\n- [1.8.9](/php/docs/reference/cloud-trace/1.8.9/V2.Span.SpanKind)\n- [1.7.0](/php/docs/reference/cloud-trace/1.7.0/V2.Span.SpanKind)\n- [1.6.5](/php/docs/reference/cloud-trace/1.6.5/V2.Span.SpanKind)\n- [1.5.3](/php/docs/reference/cloud-trace/1.5.3/V2.Span.SpanKind)\n- [1.4.11](/php/docs/reference/cloud-trace/1.4.11/V2.Span.SpanKind) \nReference documentation and code samples for the Stackdriver Trace V2 Client class SpanKind.\n\nType of span. Can be used to specify additional relationships between spans\nin addition to a parent/child relationship.\n\nProtobuf type `google.devtools.cloudtrace.v2.Span.SpanKind`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Trace \\\\ V2 \\\\ Span\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### SPAN_KIND_UNSPECIFIED\n\n Value: 0\n\nUnspecified. Do NOT use as default.\n\nImplementations MAY assume SpanKind.INTERNAL to be default.\n\nGenerated from protobuf enum `SPAN_KIND_UNSPECIFIED = 0;`\n\n### INTERNAL\n\n Value: 1\n\nIndicates that the span is used internally. Default value.\n\nGenerated from protobuf enum `INTERNAL = 1;`\n\n### SERVER\n\n Value: 2\n\nIndicates that the span covers server-side handling of an RPC or other\nremote network request.\n\nGenerated from protobuf enum `SERVER = 2;`\n\n### CLIENT\n\n Value: 3\n\nIndicates that the span covers the client-side wrapper around an RPC or\nother remote request.\n\nGenerated from protobuf enum `CLIENT = 3;`\n\n### PRODUCER\n\n Value: 4\n\nIndicates that the span describes producer sending a message to a broker.\n\nUnlike client and server, there is no direct critical path latency\nrelationship between producer and consumer spans (e.g. publishing a\nmessage to a pubsub service).\n\nGenerated from protobuf enum `PRODUCER = 4;`\n\n### CONSUMER\n\n Value: 5\n\nIndicates that the span describes consumer receiving a message from a\nbroker. Unlike client and server, there is no direct critical path\nlatency relationship between producer and consumer spans (e.g. receiving\na message from a pubsub service subscription).\n\nGenerated from protobuf enum `CONSUMER = 5;`"]]