Package io.opentelemetry.proto.trace.v1
Interface ResourceSpansOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ResourceSpans,ResourceSpans.Builder
public interface ResourceSpansOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description InstrumentationLibrarySpansgetInstrumentationLibrarySpans(int index)Deprecated.intgetInstrumentationLibrarySpansCount()Deprecated.List<InstrumentationLibrarySpans>getInstrumentationLibrarySpansList()Deprecated.InstrumentationLibrarySpansOrBuildergetInstrumentationLibrarySpansOrBuilder(int index)Deprecated.List<? extends InstrumentationLibrarySpansOrBuilder>getInstrumentationLibrarySpansOrBuilderList()Deprecated.ResourcegetResource()The resource for the spans in this message.ResourceOrBuildergetResourceOrBuilder()The resource for the spans in this message.StringgetSchemaUrl()This schema_url applies to the data in the "resource" field.com.google.protobuf.ByteStringgetSchemaUrlBytes()This schema_url applies to the data in the "resource" field.ScopeSpansgetScopeSpans(int index)A list of ScopeSpans that originate from a resource.intgetScopeSpansCount()A list of ScopeSpans that originate from a resource.List<ScopeSpans>getScopeSpansList()A list of ScopeSpans that originate from a resource.ScopeSpansOrBuildergetScopeSpansOrBuilder(int index)A list of ScopeSpans that originate from a resource.List<? extends ScopeSpansOrBuilder>getScopeSpansOrBuilderList()A list of ScopeSpans that originate from a resource.booleanhasResource()The resource for the spans in this message.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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;- 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;- Returns:
- The resource.
-
getResourceOrBuilder
ResourceOrBuilder getResourceOrBuilder()
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;
-
getScopeSpansList
List<ScopeSpans> getScopeSpansList()
A list of ScopeSpans that originate from a resource.
repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
-
getScopeSpans
ScopeSpans getScopeSpans(int index)
A list of ScopeSpans that originate from a resource.
repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
-
getScopeSpansCount
int getScopeSpansCount()
A list of ScopeSpans that originate from a resource.
repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
-
getScopeSpansOrBuilderList
List<? extends ScopeSpansOrBuilder> getScopeSpansOrBuilderList()
A list of ScopeSpans that originate from a resource.
repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
-
getScopeSpansOrBuilder
ScopeSpansOrBuilder getScopeSpansOrBuilder(int index)
A list of ScopeSpans that originate from a resource.
repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
-
getInstrumentationLibrarySpansList
@Deprecated List<InstrumentationLibrarySpans> getInstrumentationLibrarySpansList()
Deprecated.A list of InstrumentationLibrarySpans that originate from a resource. This field is deprecated and will be removed after grace period expires on June 15, 2022. During the grace period the following rules SHOULD be followed: For Binary Protobufs ==================== Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead scope_spans SHOULD be set. Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set and scope_spans is not set then the value in instrumentation_library_spans SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans. If scope_spans is set then instrumentation_library_spans SHOULD be ignored. For JSON ======== JSON senders that set instrumentation_library_spans field MAY also set scope_spans to carry the same spans, essentially double-publishing the same data. Such double-publishing MAY be controlled by a user-settable option. If double-publishing is not used then the senders SHOULD set scope_spans and SHOULD NOT set instrumentation_library_spans. JSON receivers SHOULD check if instrumentation_library_spans is set and scope_spans is not set then the value in instrumentation_library_spans SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans. If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
-
getInstrumentationLibrarySpans
@Deprecated InstrumentationLibrarySpans getInstrumentationLibrarySpans(int index)
Deprecated.A list of InstrumentationLibrarySpans that originate from a resource. This field is deprecated and will be removed after grace period expires on June 15, 2022. During the grace period the following rules SHOULD be followed: For Binary Protobufs ==================== Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead scope_spans SHOULD be set. Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set and scope_spans is not set then the value in instrumentation_library_spans SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans. If scope_spans is set then instrumentation_library_spans SHOULD be ignored. For JSON ======== JSON senders that set instrumentation_library_spans field MAY also set scope_spans to carry the same spans, essentially double-publishing the same data. Such double-publishing MAY be controlled by a user-settable option. If double-publishing is not used then the senders SHOULD set scope_spans and SHOULD NOT set instrumentation_library_spans. JSON receivers SHOULD check if instrumentation_library_spans is set and scope_spans is not set then the value in instrumentation_library_spans SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans. If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
-
getInstrumentationLibrarySpansCount
@Deprecated int getInstrumentationLibrarySpansCount()
Deprecated.A list of InstrumentationLibrarySpans that originate from a resource. This field is deprecated and will be removed after grace period expires on June 15, 2022. During the grace period the following rules SHOULD be followed: For Binary Protobufs ==================== Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead scope_spans SHOULD be set. Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set and scope_spans is not set then the value in instrumentation_library_spans SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans. If scope_spans is set then instrumentation_library_spans SHOULD be ignored. For JSON ======== JSON senders that set instrumentation_library_spans field MAY also set scope_spans to carry the same spans, essentially double-publishing the same data. Such double-publishing MAY be controlled by a user-settable option. If double-publishing is not used then the senders SHOULD set scope_spans and SHOULD NOT set instrumentation_library_spans. JSON receivers SHOULD check if instrumentation_library_spans is set and scope_spans is not set then the value in instrumentation_library_spans SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans. If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
-
getInstrumentationLibrarySpansOrBuilderList
@Deprecated List<? extends InstrumentationLibrarySpansOrBuilder> getInstrumentationLibrarySpansOrBuilderList()
Deprecated.A list of InstrumentationLibrarySpans that originate from a resource. This field is deprecated and will be removed after grace period expires on June 15, 2022. During the grace period the following rules SHOULD be followed: For Binary Protobufs ==================== Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead scope_spans SHOULD be set. Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set and scope_spans is not set then the value in instrumentation_library_spans SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans. If scope_spans is set then instrumentation_library_spans SHOULD be ignored. For JSON ======== JSON senders that set instrumentation_library_spans field MAY also set scope_spans to carry the same spans, essentially double-publishing the same data. Such double-publishing MAY be controlled by a user-settable option. If double-publishing is not used then the senders SHOULD set scope_spans and SHOULD NOT set instrumentation_library_spans. JSON receivers SHOULD check if instrumentation_library_spans is set and scope_spans is not set then the value in instrumentation_library_spans SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans. If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
-
getInstrumentationLibrarySpansOrBuilder
@Deprecated InstrumentationLibrarySpansOrBuilder getInstrumentationLibrarySpansOrBuilder(int index)
Deprecated.A list of InstrumentationLibrarySpans that originate from a resource. This field is deprecated and will be removed after grace period expires on June 15, 2022. During the grace period the following rules SHOULD be followed: For Binary Protobufs ==================== Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead scope_spans SHOULD be set. Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set and scope_spans is not set then the value in instrumentation_library_spans SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans. If scope_spans is set then instrumentation_library_spans SHOULD be ignored. For JSON ======== JSON senders that set instrumentation_library_spans field MAY also set scope_spans to carry the same spans, essentially double-publishing the same data. Such double-publishing MAY be controlled by a user-settable option. If double-publishing is not used then the senders SHOULD set scope_spans and SHOULD NOT set instrumentation_library_spans. JSON receivers SHOULD check if instrumentation_library_spans is set and scope_spans is not set then the value in instrumentation_library_spans SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans. If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
-
getSchemaUrl
String getSchemaUrl()
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;- Returns:
- The schemaUrl.
-
getSchemaUrlBytes
com.google.protobuf.ByteString getSchemaUrlBytes()
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;- Returns:
- The bytes for schemaUrl.
-
-