SpanKind
Stay organized with collections
Save and categorize content based on your preferences.
Type of span. Can be used to specify additional relationships between spans in addition to a parent/child relationship.
Enums |
SPAN_KIND_UNSPECIFIED |
Unspecified. Do NOT use as default. Implementations MAY assume SpanKind.INTERNAL to be default. |
INTERNAL |
Indicates that the span is used internally. Default value. |
SERVER |
Indicates that the span covers server-side handling of an RPC or other remote network request. |
CLIENT |
Indicates that the span covers the client-side wrapper around an RPC or other remote request. |
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). |
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). |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-12-10 UTC.
[[["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 2020-12-10 UTC."],[[["Span kind specifies relationships between spans beyond parent/child connections."],["`INTERNAL` span kind indicates the span is used internally and serves as the default."],["`SERVER` and `CLIENT` span kinds are used for server-side and client-side handling of remote network requests, respectively."],["`PRODUCER` and `CONSUMER` span kinds describe sending and receiving messages to/from a broker, without direct latency between them."]]],[]]