Interface ResourceSpansOrBuilder

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

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

    Modifier and Type
    Method
    Description
    The resource for the spans in this message.
    The Schema URL, if known.
    com.google.protobuf.ByteString
    The Schema URL, if known.
    getScopeSpans(int index)
    A list of ScopeSpans that originate from a resource.
    int
    A list of ScopeSpans that originate from a resource.
    A list of ScopeSpans that originate from a resource.
    boolean
    The resource for the spans in this message.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • hasResource

      boolean hasResource()
       The resource for the spans in this message.
       If this field is not set then no resource info is known.
       
      .opentelemetry.proto.resource.v1.Resource resource = 1 [json_name = "resource"];
      Returns:
      Whether the resource field is set.
    • getResource

      Resource getResource()
       The resource for the spans in this message.
       If this field is not set then no resource info is known.
       
      .opentelemetry.proto.resource.v1.Resource resource = 1 [json_name = "resource"];
      Returns:
      The resource.
    • getScopeSpansList

      List<ScopeSpans> getScopeSpansList()
       A list of ScopeSpans that originate from a resource.
       
      repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2 [json_name = "scopeSpans"];
    • getScopeSpans

      ScopeSpans getScopeSpans(int index)
       A list of ScopeSpans that originate from a resource.
       
      repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2 [json_name = "scopeSpans"];
    • getScopeSpansCount

      int getScopeSpansCount()
       A list of ScopeSpans that originate from a resource.
       
      repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2 [json_name = "scopeSpans"];
    • getSchemaUrl

      String getSchemaUrl()
       The Schema URL, if known. This is the identifier of the Schema that the resource 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 "resource" field. It does not apply
       to the data in the "scope_spans" field which have their own schema_url 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 resource 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 "resource" field. It does not apply
       to the data in the "scope_spans" field which have their own schema_url field.
       
      string schema_url = 3 [json_name = "schemaUrl"];
      Returns:
      The bytes for schemaUrl.