Interface Span.LinkOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
All Known Implementing Classes:
Span.Link, Span.Link.Builder
Enclosing class:
Span

public static interface Span.LinkOrBuilder extends com.google.protobuf.MessageLiteOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    getAttributes(int index)
    A collection of attribute key/value pairs on the link.
    int
    A collection of attribute key/value pairs on the link.
    A collection of attribute key/value pairs on the link.
    int
    The number of dropped attributes.
    int
    Flags, a bit field.
    com.google.protobuf.ByteString
    A unique identifier for the linked span.
    com.google.protobuf.ByteString
    A unique identifier of a trace that this linked span is part of.
    The trace_state associated with the link.
    com.google.protobuf.ByteString
    The trace_state associated with the link.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getTraceId

      com.google.protobuf.ByteString getTraceId()
       A unique identifier of a trace that this linked span is part of. The ID is a
       16-byte array.
       
      bytes trace_id = 1 [json_name = "traceId"];
      Returns:
      The traceId.
    • getSpanId

      com.google.protobuf.ByteString getSpanId()
       A unique identifier for the linked span. The ID is an 8-byte array.
       
      bytes span_id = 2 [json_name = "spanId"];
      Returns:
      The spanId.
    • getTraceState

      String getTraceState()
       The trace_state associated with the link.
       
      string trace_state = 3 [json_name = "traceState"];
      Returns:
      The traceState.
    • getTraceStateBytes

      com.google.protobuf.ByteString getTraceStateBytes()
       The trace_state associated with the link.
       
      string trace_state = 3 [json_name = "traceState"];
      Returns:
      The bytes for traceState.
    • getAttributesList

      List<KeyValue> getAttributesList()
       A collection of attribute key/value pairs on the link.
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       The behavior of software that receives duplicated keys can be unpredictable.
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4 [json_name = "attributes"];
    • getAttributes

      KeyValue getAttributes(int index)
       A collection of attribute key/value pairs on the link.
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       The behavior of software that receives duplicated keys can be unpredictable.
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4 [json_name = "attributes"];
    • getAttributesCount

      int getAttributesCount()
       A collection of attribute key/value pairs on the link.
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       The behavior of software that receives duplicated keys can be unpredictable.
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4 [json_name = "attributes"];
    • getDroppedAttributesCount

      int getDroppedAttributesCount()
       The number of dropped attributes. If the value is 0,
       then no attributes were dropped.
       
      uint32 dropped_attributes_count = 5 [json_name = "droppedAttributesCount"];
      Returns:
      The droppedAttributesCount.
    • getFlags

      int getFlags()
       Flags, a bit field.
      
       Bits 0-7 (8 least significant bits) are the trace flags as defined in W3C Trace
       Context specification. To read the 8-bit W3C trace flag, use
       `flags & SPAN_FLAGS_TRACE_FLAGS_MASK`.
      
       See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions.
      
       Bits 8 and 9 represent the 3 states of whether the link is remote.
       The states are (unknown, is not remote, is remote).
       To read whether the value is known, use `(flags & SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK) != 0`.
       To read whether the link is remote, use `(flags & SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK) != 0`.
      
       Readers MUST NOT assume that bits 10-31 (22 most significant bits) will be zero.
       When creating new spans, bits 10-31 (most-significant 22-bits) MUST be zero.
      
       [Optional].
       
      fixed32 flags = 6 [json_name = "flags"];
      Returns:
      The flags.