Interface SpanContextOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
SpanContext, SpanContext.Builder

@Generated public interface SpanContextOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    The resource name of the span.
    com.google.protobuf.ByteString
    The resource name of the span.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getSpanName

      String getSpanName()
       The resource name of the span. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
      
       `[TRACE_ID]` is a unique identifier for a trace within a project;
       it is a 32-character hexadecimal encoding of a 16-byte array.
      
       `[SPAN_ID]` is a unique identifier for a span within a trace; it
       is a 16-character hexadecimal encoding of an 8-byte array.
       
      string span_name = 1;
      Returns:
      The spanName.
    • getSpanNameBytes

      com.google.protobuf.ByteString getSpanNameBytes()
       The resource name of the span. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
      
       `[TRACE_ID]` is a unique identifier for a trace within a project;
       it is a 32-character hexadecimal encoding of a 16-byte array.
      
       `[SPAN_ID]` is a unique identifier for a span within a trace; it
       is a 16-character hexadecimal encoding of an 8-byte array.
       
      string span_name = 1;
      Returns:
      The bytes for spanName.