Interface ScopeSpansOrBuilder

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

public interface ScopeSpansOrBuilder extends com.google.protobuf.MessageLiteOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    The Schema URL, if known.
    com.google.protobuf.ByteString
    The Schema URL, if known.
    The instrumentation scope information for the spans in this message.
    getSpans(int index)
    A list of Spans that originate from an instrumentation scope.
    int
    A list of Spans that originate from an instrumentation scope.
    A list of Spans that originate from an instrumentation scope.
    boolean
    The instrumentation scope information for the spans in this message.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • hasScope

      boolean hasScope()
       The instrumentation scope information for the spans in this message.
       Semantically when InstrumentationScope isn't set, it is equivalent with
       an empty instrumentation scope name (unknown).
       
      .opentelemetry.proto.common.v1.InstrumentationScope scope = 1 [json_name = "scope"];
      Returns:
      Whether the scope field is set.
    • getScope

       The instrumentation scope information for the spans in this message.
       Semantically when InstrumentationScope isn't set, it is equivalent with
       an empty instrumentation scope name (unknown).
       
      .opentelemetry.proto.common.v1.InstrumentationScope scope = 1 [json_name = "scope"];
      Returns:
      The scope.
    • getSpansList

      List<Span> getSpansList()
       A list of Spans that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.trace.v1.Span spans = 2 [json_name = "spans"];
    • getSpans

      Span getSpans(int index)
       A list of Spans that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.trace.v1.Span spans = 2 [json_name = "spans"];
    • getSpansCount

      int getSpansCount()
       A list of Spans that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.trace.v1.Span spans = 2 [json_name = "spans"];
    • getSchemaUrl

      String getSchemaUrl()
       The Schema URL, if known. This is the identifier of the Schema that the span data
       is recorded in. Notably, the last part of the URL path is the version number of the
       schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see
       https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
       This schema_url applies to the data in the "scope" field and all spans and span
       events in the "spans" field.
       
      string schema_url = 3 [json_name = "schemaUrl"];
      Returns:
      The schemaUrl.
    • getSchemaUrlBytes

      com.google.protobuf.ByteString getSchemaUrlBytes()
       The Schema URL, if known. This is the identifier of the Schema that the span data
       is recorded in. Notably, the last part of the URL path is the version number of the
       schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see
       https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
       This schema_url applies to the data in the "scope" field and all spans and span
       events in the "spans" field.
       
      string schema_url = 3 [json_name = "schemaUrl"];
      Returns:
      The bytes for schemaUrl.