Uses of Interface
io.opentelemetry.api.common.Attributes
Packages that use Attributes
Package
Description
This package contains code common across the OpenTelemetry APIs, including
Attributes
and classes/utilities for interacting with them.API for writing log appenders.
This package describes the Metrics API that can be used to record application Metrics.
API for distributed tracing.
Internal utilities for exporters.
Marshaling framework for serializing data to protobuf format.
Utilities for working with the OTLP format.
Common utilities used by all SDK components.
Interfaces and implementations that are internal to OpenTelemetry.
The OpenTelemetry SDK implementation of logging.
The data format to model logs for export.
Log exporters.
The SDK implementation of metrics.
Classes which form the in-memory representation of the OpenTelemetry metrics data model.
Metric aggregators.
The data format to model metrics for export.
Metric exemplar extension points.
View related internal classes.
API for resource information population.
The OpenTelemetry SDK implementation of tracing.
The data format to model traces for export.
Utilities that allow tracing services to export data for sampled spans, as well as providing
in-process span processing APIs.
This package contains
Sampler
s for selecting traces
that are recorded and exported.-
Uses of Attributes in io.opentelemetry.api.common
Classes in io.opentelemetry.api.common that implement AttributesFields in io.opentelemetry.api.common declared as AttributesModifier and TypeFieldDescription(package private) static final Attributes
ArrayBackedAttributes.EMPTY
Methods in io.opentelemetry.api.common that return AttributesModifier and TypeMethodDescriptionArrayBackedAttributesBuilder.build()
AttributesBuilder.build()
Create theAttributes
from this.static Attributes
Attributes.empty()
Returns aAttributes
instance with no attributes.static <T> Attributes
Attributes.of
(AttributeKey<T> key, T value) Returns aAttributes
instance with a single key-value pair.static <T,
U> Attributes Attributes.of
(AttributeKey<T> key1, T value1, AttributeKey<U> key2, U value2) Returns aAttributes
instance with two key-value pairs.static <T,
U, V> Attributes Attributes.of
(AttributeKey<T> key1, T value1, AttributeKey<U> key2, U value2, AttributeKey<V> key3, V value3) Returns aAttributes
instance with three key-value pairs.static <T,
U, V, W>
AttributesAttributes.of
(AttributeKey<T> key1, T value1, AttributeKey<U> key2, U value2, AttributeKey<V> key3, V value3, AttributeKey<W> key4, W value4) Returns aAttributes
instance with four key-value pairs.static <T,
U, V, W, X>
AttributesAttributes.of
(AttributeKey<T> key1, T value1, AttributeKey<U> key2, U value2, AttributeKey<V> key3, V value3, AttributeKey<W> key4, W value4, AttributeKey<X> key5, X value5) Returns aAttributes
instance with five key-value pairs.static <T,
U, V, W, X, Y>
AttributesAttributes.of
(AttributeKey<T> key1, T value1, AttributeKey<U> key2, U value2, AttributeKey<V> key3, V value3, AttributeKey<W> key4, W value4, AttributeKey<X> key5, X value5, AttributeKey<Y> key6, Y value6) Returns aAttributes
instance with the given key-value pairs.(package private) static Attributes
ArrayBackedAttributes.sortAndFilterToAttributes
(Object... data) Methods in io.opentelemetry.api.common with parameters of type AttributesModifier and TypeMethodDescriptionArrayBackedAttributesBuilder.putAll
(Attributes attributes) AttributesBuilder.putAll
(Attributes attributes) Puts all the provided attributes into this Builder. -
Uses of Attributes in io.opentelemetry.api.incubator.events
Methods in io.opentelemetry.api.incubator.events with parameters of type AttributesModifier and TypeMethodDescriptionDefaultEventLogger.NoOpEventBuilder.setAttributes
(Attributes attributes) EventBuilder.setAttributes
(Attributes attributes) Set the attributes. -
Uses of Attributes in io.opentelemetry.api.incubator.metrics
Methods in io.opentelemetry.api.incubator.metrics with parameters of type AttributesModifier and TypeMethodDescriptionvoid
ExtendedDefaultMeter.NoopDoubleCounter.add
(double value, Attributes attributes) void
ExtendedDefaultMeter.NoopDoubleCounter.add
(double value, Attributes attributes, Context context) void
ExtendedDefaultMeter.NoopDoubleUpDownCounter.add
(double value, Attributes attributes) void
ExtendedDefaultMeter.NoopDoubleUpDownCounter.add
(double value, Attributes attributes, Context context) void
ExtendedDefaultMeter.NoopLongCounter.add
(long value, Attributes attributes) void
ExtendedDefaultMeter.NoopLongCounter.add
(long value, Attributes attributes, Context context) void
ExtendedDefaultMeter.NoopLongUpDownCounter.add
(long value, Attributes attributes) void
ExtendedDefaultMeter.NoopLongUpDownCounter.add
(long value, Attributes attributes, Context context) void
ExtendedDefaultMeter.NoopDoubleHistogram.record
(double value, Attributes attributes) void
ExtendedDefaultMeter.NoopDoubleHistogram.record
(double value, Attributes attributes, Context context) void
ExtendedDefaultMeter.NoopLongHistogram.record
(long value, Attributes attributes) void
ExtendedDefaultMeter.NoopLongHistogram.record
(long value, Attributes attributes, Context context) void
ExtendedDefaultMeter.NoopObservableDoubleMeasurement.record
(double value, Attributes attributes) void
ExtendedDefaultMeter.NoopObservableLongMeasurement.record
(long value, Attributes attributes) void
ExtendedDefaultMeter.NoopDoubleGauge.set
(double value, Attributes attributes) void
ExtendedDefaultMeter.NoopDoubleGauge.set
(double value, Attributes attributes, Context context) void
ExtendedDefaultMeter.NoopLongGauge.set
(long value, Attributes attributes) void
ExtendedDefaultMeter.NoopLongGauge.set
(long value, Attributes attributes, Context context) -
Uses of Attributes in io.opentelemetry.api.incubator.trace
Methods in io.opentelemetry.api.incubator.trace with parameters of type AttributesModifier and TypeMethodDescriptionExtendedDefaultTracer.NoopSpanBuilder.addLink
(SpanContext spanContext, Attributes attributes) ExtendedSpanBuilder.addLink
(SpanContext spanContext, Attributes attributes) Adds a link to the newly createdSpan
.ExtendedDefaultTracer.NoopSpanBuilder.setAllAttributes
(Attributes attributes) default ExtendedSpanBuilder
ExtendedSpanBuilder.setAllAttributes
(Attributes attributes) Sets attributes to theSpanBuilder
. -
Uses of Attributes in io.opentelemetry.api.logs
Methods in io.opentelemetry.api.logs with parameters of type AttributesModifier and TypeMethodDescriptiondefault LogRecordBuilder
LogRecordBuilder.setAllAttributes
(Attributes attributes) Sets attributes. -
Uses of Attributes in io.opentelemetry.api.metrics
Methods in io.opentelemetry.api.metrics with parameters of type AttributesModifier and TypeMethodDescriptionvoid
DefaultMeter.NoopDoubleCounter.add
(double value, Attributes attributes) void
DefaultMeter.NoopDoubleCounter.add
(double value, Attributes attributes, Context context) void
DefaultMeter.NoopDoubleUpDownCounter.add
(double value, Attributes attributes) void
DefaultMeter.NoopDoubleUpDownCounter.add
(double value, Attributes attributes, Context context) void
DefaultMeter.NoopLongCounter.add
(long value, Attributes attributes) void
DefaultMeter.NoopLongCounter.add
(long value, Attributes attributes, Context context) void
DefaultMeter.NoopLongUpDownCounter.add
(long value, Attributes attributes) void
DefaultMeter.NoopLongUpDownCounter.add
(long value, Attributes attributes, Context context) void
DoubleCounter.add
(double value, Attributes attributes) Records a value with a set of attributes.void
DoubleCounter.add
(double value, Attributes attributes, Context context) Records a value with a set of attributes.void
DoubleUpDownCounter.add
(double value, Attributes attributes) Records a value with a set of attributes.void
DoubleUpDownCounter.add
(double value, Attributes attributes, Context context) Records a value with a set of attributes.void
LongCounter.add
(long value, Attributes attributes) Records a value with a set of attributes.void
LongCounter.add
(long value, Attributes attributes, Context context) Records a value with a set of attributes.void
LongUpDownCounter.add
(long value, Attributes attributes) Record a value with a set of attributes.void
LongUpDownCounter.add
(long value, Attributes attributes, Context context) Records a value with a set of attributes.void
DefaultMeter.NoopDoubleHistogram.record
(double value, Attributes attributes) void
DefaultMeter.NoopDoubleHistogram.record
(double value, Attributes attributes, Context context) void
DefaultMeter.NoopLongHistogram.record
(long value, Attributes attributes) void
DefaultMeter.NoopLongHistogram.record
(long value, Attributes attributes, Context context) void
DefaultMeter.NoopObservableDoubleMeasurement.record
(double value, Attributes attributes) void
DefaultMeter.NoopObservableLongMeasurement.record
(long value, Attributes attributes) void
DoubleHistogram.record
(double value, Attributes attributes) Records a value with a set of attributes.void
DoubleHistogram.record
(double value, Attributes attributes, Context context) Records a value with a set of attributes.void
LongHistogram.record
(long value, Attributes attributes) Records a value with a set of attributes.void
LongHistogram.record
(long value, Attributes attributes, Context context) Records a value with a set of attributes.void
ObservableDoubleMeasurement.record
(double value, Attributes attributes) Records a measurement with a set of attributes.void
ObservableLongMeasurement.record
(long value, Attributes attributes) Records a measurement with a set of attributes.void
DefaultMeter.NoopDoubleGauge.set
(double value, Attributes attributes) void
DefaultMeter.NoopDoubleGauge.set
(double value, Attributes attributes, Context context) void
DefaultMeter.NoopLongGauge.set
(long value, Attributes attributes) void
DefaultMeter.NoopLongGauge.set
(long value, Attributes attributes, Context context) void
DoubleGauge.set
(double value, Attributes attributes) Records a value with a set of attributes.void
DoubleGauge.set
(double value, Attributes attributes, Context context) Records a value with a set of attributes.void
LongGauge.set
(long value, Attributes attributes) Records a value with a set of attributes.void
LongGauge.set
(long value, Attributes attributes, Context context) Records a value with a set of attributes. -
Uses of Attributes in io.opentelemetry.api.trace
Methods in io.opentelemetry.api.trace with parameters of type AttributesModifier and TypeMethodDescriptionPropagatedSpan.addEvent
(String name, Attributes attributes) PropagatedSpan.addEvent
(String name, Attributes attributes, long timestamp, TimeUnit unit) Span.addEvent
(String name, Attributes attributes) Adds an event to theSpan
with the givenAttributes
.Span.addEvent
(String name, Attributes attributes, long timestamp, TimeUnit unit) default Span
Span.addEvent
(String name, Attributes attributes, Instant timestamp) DefaultTracer.NoopSpanBuilder.addLink
(SpanContext spanContext, Attributes attributes) default Span
Span.addLink
(SpanContext spanContext, Attributes attributes) Adds a link to thisSpan
.SpanBuilder.addLink
(SpanContext spanContext, Attributes attributes) Adds a link to the newly createdSpan
.PropagatedSpan.recordException
(Throwable exception, Attributes additionalAttributes) Span.recordException
(Throwable exception, Attributes additionalAttributes) DefaultTracer.NoopSpanBuilder.setAllAttributes
(Attributes attributes) PropagatedSpan.setAllAttributes
(Attributes attributes) default Span
Span.setAllAttributes
(Attributes attributes) Sets attributes to theSpan
.default SpanBuilder
SpanBuilder.setAllAttributes
(Attributes attributes) Sets attributes to theSpanBuilder
. -
Uses of Attributes in io.opentelemetry.exporter.internal
Fields in io.opentelemetry.exporter.internal declared as AttributesModifier and TypeFieldDescriptionprivate final Attributes
ExporterMetrics.failedAttrs
private final Attributes
ExporterMetrics.seenAttrs
private final Attributes
ExporterMetrics.successAttrs
-
Uses of Attributes in io.opentelemetry.exporter.internal.marshal
Methods in io.opentelemetry.exporter.internal.marshal with parameters of type AttributesModifier and TypeMethodDescriptionvoid
Serializer.serializeRepeatedMessageWithContext
(ProtoFieldInfo field, Attributes attributes, StatelessMarshaler2<AttributeKey<?>, Object> marshaler, MarshalerContext context) Serializesrepeated message
field.static int
StatelessMarshalerUtil.sizeRepeatedMessageWithContext
(ProtoFieldInfo field, Attributes attributes, StatelessMarshaler2<AttributeKey<?>, Object> marshaler, MarshalerContext context) Returns the size of a repeated message field. -
Uses of Attributes in io.opentelemetry.exporter.internal.otlp
Methods in io.opentelemetry.exporter.internal.otlp with parameters of type AttributesModifier and TypeMethodDescriptionstatic KeyValueMarshaler[]
KeyValueMarshaler.createForAttributes
(Attributes attributes) Returns Marshalers for the given Attributes. -
Uses of Attributes in io.opentelemetry.sdk.common
Fields in io.opentelemetry.sdk.common declared as AttributesModifier and TypeFieldDescriptionprivate final Attributes
AutoValue_InstrumentationScopeInfo.attributes
private Attributes
InstrumentationScopeInfoBuilder.attributes
Methods in io.opentelemetry.sdk.common that return AttributesModifier and TypeMethodDescriptionAutoValue_InstrumentationScopeInfo.getAttributes()
abstract Attributes
InstrumentationScopeInfo.getAttributes()
Returns the attributes of this instrumentation scope.Methods in io.opentelemetry.sdk.common with parameters of type AttributesModifier and TypeMethodDescription(package private) static InstrumentationScopeInfo
InstrumentationScopeInfo.create
(String name, String version, String schemaUrl, Attributes attributes) InstrumentationScopeInfoBuilder.setAttributes
(Attributes attributes) Set the attributes.Constructors in io.opentelemetry.sdk.common with parameters of type AttributesModifierConstructorDescription(package private)
AutoValue_InstrumentationScopeInfo
(String name, String version, String schemaUrl, Attributes attributes) -
Uses of Attributes in io.opentelemetry.sdk.internal
Classes in io.opentelemetry.sdk.internal that implement AttributesModifier and TypeClassDescriptionfinal class
A map with a fixed capacity that drops attributes when the map gets full, and which truncates string and array string attribute values to theAttributesMap.lengthLimit
.Methods in io.opentelemetry.sdk.internal that return AttributesModifier and TypeMethodDescriptionstatic Attributes
AttributeUtil.applyAttributesLimit
(Attributes attributes, int countLimit, int lengthLimit) Apply thecountLimit
andlengthLimit
to the attributes.AttributesMap.immutableCopy()
Create an immutable copy of the attributes in this map.Methods in io.opentelemetry.sdk.internal with parameters of type AttributesModifier and TypeMethodDescriptionstatic Attributes
AttributeUtil.applyAttributesLimit
(Attributes attributes, int countLimit, int lengthLimit) Apply thecountLimit
andlengthLimit
to the attributes.ComponentRegistry.get
(String name, String version, String schemaUrl, Attributes attributes) Returns the component associated with thename
,version
, andschemaUrl
. -
Uses of Attributes in io.opentelemetry.sdk.logs
Fields in io.opentelemetry.sdk.logs declared as AttributesMethods in io.opentelemetry.sdk.logs that return AttributesModifier and TypeMethodDescriptionAutoValue_SdkLogRecordData.getAttributes()
private Attributes
SdkReadWriteLogRecord.getImmutableAttributes()
Methods in io.opentelemetry.sdk.logs with parameters of type AttributesModifier and TypeMethodDescription(package private) static SdkLogRecordData
SdkLogRecordData.create
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long epochNanos, long observedEpochNanos, SpanContext spanContext, Severity severity, String severityText, Value<?> body, Attributes attributes, int totalAttributeCount) default ReadWriteLogRecord
ReadWriteLogRecord.setAllAttributes
(Attributes attributes) Sets attributes to theReadWriteLogRecord
.Constructors in io.opentelemetry.sdk.logs with parameters of type AttributesModifierConstructorDescription(package private)
AutoValue_SdkLogRecordData
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long timestampEpochNanos, long observedTimestampEpochNanos, SpanContext spanContext, Severity severity, String severityText, Attributes attributes, int totalAttributeCount, Value<?> bodyValue) -
Uses of Attributes in io.opentelemetry.sdk.logs.data
Methods in io.opentelemetry.sdk.logs.data that return AttributesModifier and TypeMethodDescriptionLogRecordData.getAttributes()
Returns the attributes for this log, orempty()
if unset. -
Uses of Attributes in io.opentelemetry.sdk.logs.export
Fields in io.opentelemetry.sdk.logs.export declared as AttributesModifier and TypeFieldDescriptionprivate final Attributes
BatchLogRecordProcessor.Worker.droppedAttrs
private final Attributes
BatchLogRecordProcessor.Worker.exportedAttrs
-
Uses of Attributes in io.opentelemetry.sdk.logs.internal
Methods in io.opentelemetry.sdk.logs.internal with parameters of type Attributes -
Uses of Attributes in io.opentelemetry.sdk.metrics
Methods in io.opentelemetry.sdk.metrics with parameters of type AttributesModifier and TypeMethodDescriptionvoid
SdkDoubleCounter.add
(double increment, Attributes attributes) void
SdkDoubleCounter.add
(double increment, Attributes attributes, Context context) void
SdkDoubleUpDownCounter.add
(double increment, Attributes attributes) void
SdkDoubleUpDownCounter.add
(double increment, Attributes attributes, Context context) void
SdkLongCounter.add
(long increment, Attributes attributes) void
SdkLongCounter.add
(long increment, Attributes attributes, Context context) void
SdkLongUpDownCounter.add
(long increment, Attributes attributes) void
SdkLongUpDownCounter.add
(long increment, Attributes attributes, Context context) void
SdkDoubleHistogram.record
(double value, Attributes attributes) void
SdkDoubleHistogram.record
(double value, Attributes attributes, Context context) void
SdkLongHistogram.record
(long value, Attributes attributes) void
SdkLongHistogram.record
(long value, Attributes attributes, Context context) void
SdkMeter.MultiWritableMetricStorage.recordDouble
(double value, Attributes attributes, Context context) void
SdkMeter.MultiWritableMetricStorage.recordLong
(long value, Attributes attributes, Context context) void
SdkDoubleGauge.set
(double value, Attributes attributes) void
SdkDoubleGauge.set
(double value, Attributes attributes, Context context) void
SdkLongGauge.set
(long value, Attributes attributes) void
SdkLongGauge.set
(long value, Attributes attributes, Context context) -
Uses of Attributes in io.opentelemetry.sdk.metrics.data
Methods in io.opentelemetry.sdk.metrics.data that return AttributesModifier and TypeMethodDescriptionPointData.getAttributes()
Returns the attributes of the aggregation.ExemplarData.getFilteredAttributes()
Returns the attributes that were recorded alongside the original measurement but filtered out by the aggregator. -
Uses of Attributes in io.opentelemetry.sdk.metrics.internal.aggregator
Methods in io.opentelemetry.sdk.metrics.internal.aggregator with parameters of type AttributesModifier and TypeMethodDescriptionfinal T
AggregatorHandle.aggregateThenMaybeReset
(long startEpochNanos, long epochNanos, Attributes attributes, boolean reset) Returns the current value into asAggregatorHandle
.protected abstract T
AggregatorHandle.doAggregateThenMaybeReset
(long startEpochNanos, long epochNanos, Attributes attributes, List<U> exemplars, boolean reset) Implementation of theAggregatorHandle.aggregateThenMaybeReset(long, long, Attributes, boolean)
.protected ExponentialHistogramPointData
DoubleBase2ExponentialHistogramAggregator.Handle.doAggregateThenMaybeReset
(long startEpochNanos, long epochNanos, Attributes attributes, List<DoubleExemplarData> exemplars, boolean reset) protected HistogramPointData
DoubleExplicitBucketHistogramAggregator.Handle.doAggregateThenMaybeReset
(long startEpochNanos, long epochNanos, Attributes attributes, List<DoubleExemplarData> exemplars, boolean reset) protected DoublePointData
DoubleLastValueAggregator.Handle.doAggregateThenMaybeReset
(long startEpochNanos, long epochNanos, Attributes attributes, List<DoubleExemplarData> exemplars, boolean reset) protected DoublePointData
DoubleSumAggregator.Handle.doAggregateThenMaybeReset
(long startEpochNanos, long epochNanos, Attributes attributes, List<DoubleExemplarData> exemplars, boolean reset) protected LongPointData
LongLastValueAggregator.Handle.doAggregateThenMaybeReset
(long startEpochNanos, long epochNanos, Attributes attributes, List<LongExemplarData> exemplars, boolean reset) protected LongPointData
LongSumAggregator.Handle.doAggregateThenMaybeReset
(long startEpochNanos, long epochNanos, Attributes attributes, List<LongExemplarData> exemplars, boolean reset) final void
AggregatorHandle.recordDouble
(double value, Attributes attributes, Context context) final void
AggregatorHandle.recordLong
(long value, Attributes attributes, Context context) -
Uses of Attributes in io.opentelemetry.sdk.metrics.internal.data
Fields in io.opentelemetry.sdk.metrics.internal.data declared as AttributesModifier and TypeFieldDescriptionprivate final Attributes
AutoValue_ImmutableDoublePointData.attributes
private final Attributes
AutoValue_ImmutableLongPointData.attributes
private final Attributes
AutoValue_ImmutableSummaryPointData.attributes
private Attributes
MutableDoublePointData.attributes
private Attributes
MutableExponentialHistogramPointData.attributes
private Attributes
MutableHistogramPointData.attributes
private Attributes
MutableLongPointData.attributes
private final Attributes
AutoValue_ImmutableDoubleExemplarData.filteredAttributes
private final Attributes
AutoValue_ImmutableLongExemplarData.filteredAttributes
private final Attributes
AutoValue_ImmutableExponentialHistogramPointData.getAttributes
private final Attributes
AutoValue_ImmutableHistogramPointData.getAttributes
Methods in io.opentelemetry.sdk.metrics.internal.data that return AttributesModifier and TypeMethodDescriptionAutoValue_ImmutableDoublePointData.getAttributes()
AutoValue_ImmutableExponentialHistogramPointData.getAttributes()
AutoValue_ImmutableHistogramPointData.getAttributes()
AutoValue_ImmutableLongPointData.getAttributes()
AutoValue_ImmutableSummaryPointData.getAttributes()
MutableDoublePointData.getAttributes()
MutableExponentialHistogramPointData.getAttributes()
MutableHistogramPointData.getAttributes()
MutableLongPointData.getAttributes()
AutoValue_ImmutableDoubleExemplarData.getFilteredAttributes()
AutoValue_ImmutableLongExemplarData.getFilteredAttributes()
Methods in io.opentelemetry.sdk.metrics.internal.data with parameters of type AttributesModifier and TypeMethodDescriptionstatic DoubleExemplarData
ImmutableDoubleExemplarData.create
(Attributes filteredAttributes, long recordTimeNanos, SpanContext spanContext, double value) Construct a new exemplar.static DoublePointData
ImmutableDoublePointData.create
(long startEpochNanos, long epochNanos, Attributes attributes, double value) Creates aImmutableDoublePointData
.static DoublePointData
ImmutableDoublePointData.create
(long startEpochNanos, long epochNanos, Attributes attributes, double value, List<DoubleExemplarData> exemplars) Creates aImmutableDoublePointData
.ImmutableExponentialHistogramPointData.create
(int scale, double sum, long zeroCount, boolean hasMin, double min, boolean hasMax, double max, ExponentialHistogramBuckets positiveBuckets, ExponentialHistogramBuckets negativeBuckets, long startEpochNanos, long epochNanos, Attributes attributes, List<DoubleExemplarData> exemplars) Create a DoubleExponentialHistogramPointData.static ImmutableHistogramPointData
ImmutableHistogramPointData.create
(long startEpochNanos, long epochNanos, Attributes attributes, double sum, boolean hasMin, double min, boolean hasMax, double max, List<Double> boundaries, List<Long> counts) Creates a HistogramPointData.static ImmutableHistogramPointData
ImmutableHistogramPointData.create
(long startEpochNanos, long epochNanos, Attributes attributes, double sum, boolean hasMin, double min, boolean hasMax, double max, List<Double> boundaries, List<Long> counts, List<DoubleExemplarData> exemplars) Creates a HistogramPointData.static LongExemplarData
ImmutableLongExemplarData.create
(Attributes filteredAttributes, long recordTimeNanos, SpanContext spanContext, long value) Construct a new exemplar.static LongPointData
ImmutableLongPointData.create
(long startEpochNanos, long epochNanos, Attributes attributes, long value) Creates aImmutableLongPointData
.static LongPointData
ImmutableLongPointData.create
(long startEpochNanos, long epochNanos, Attributes attributes, long value, List<LongExemplarData> exemplars) Creates aImmutableLongPointData
.static ImmutableSummaryPointData
ImmutableSummaryPointData.create
(long startEpochNanos, long epochNanos, Attributes attributes, long count, double sum, List<ValueAtQuantile> percentileValues) Creates aSummaryPointData
.void
MutableDoublePointData.set
(long startEpochNanos, long epochNanos, Attributes attributes, double value) Sets allMutableDoublePointData
values , besides exemplars which are set to empty.void
MutableDoublePointData.set
(long startEpochNanos, long epochNanos, Attributes attributes, double value, List<DoubleExemplarData> exemplars) Sets allMutableDoublePointData
values.MutableExponentialHistogramPointData.set
(int scale, double sum, long zeroCount, boolean hasMin, double min, boolean hasMax, double max, ExponentialHistogramBuckets positiveBuckets, ExponentialHistogramBuckets negativeBuckets, long startEpochNanos, long epochNanos, Attributes attributes, List<DoubleExemplarData> exemplars) MutableHistogramPointData.set
(long startEpochNanos, long epochNanos, Attributes attributes, double sum, boolean hasMin, double min, boolean hasMax, double max, List<Double> boundaries, long[] counts, List<DoubleExemplarData> exemplars) void
MutableLongPointData.set
(long startEpochNanos, long epochNanos, Attributes attributes, long value) Sets allMutableDoublePointData
values besides exemplars which are set to be empty.void
MutableLongPointData.set
(long startEpochNanos, long epochNanos, Attributes attributes, long value, List<LongExemplarData> exemplars) Sets allMutableDoublePointData
values.Constructors in io.opentelemetry.sdk.metrics.internal.data with parameters of type AttributesModifierConstructorDescription(package private)
AutoValue_ImmutableDoubleExemplarData
(Attributes filteredAttributes, long epochNanos, SpanContext spanContext, double value) (package private)
AutoValue_ImmutableDoublePointData
(long startEpochNanos, long epochNanos, Attributes attributes, double value, List<DoubleExemplarData> exemplars) (package private)
AutoValue_ImmutableExponentialHistogramPointData
(long getStartEpochNanos, long getEpochNanos, Attributes getAttributes, int getScale, double getSum, long getCount, long getZeroCount, boolean hasMin, double getMin, boolean hasMax, double getMax, ExponentialHistogramBuckets getPositiveBuckets, ExponentialHistogramBuckets getNegativeBuckets, List<DoubleExemplarData> getExemplars) (package private)
AutoValue_ImmutableHistogramPointData
(long getStartEpochNanos, long getEpochNanos, Attributes getAttributes, double getSum, long getCount, boolean hasMin, double getMin, boolean hasMax, double getMax, List<Double> getBoundaries, List<Long> getCounts, List<DoubleExemplarData> getExemplars) (package private)
AutoValue_ImmutableLongExemplarData
(Attributes filteredAttributes, long epochNanos, SpanContext spanContext, long value) (package private)
AutoValue_ImmutableLongPointData
(long startEpochNanos, long epochNanos, Attributes attributes, long value, List<LongExemplarData> exemplars) (package private)
AutoValue_ImmutableSummaryPointData
(long startEpochNanos, long epochNanos, Attributes attributes, List<? extends ExemplarData> exemplars, long count, double sum, List<ValueAtQuantile> values) -
Uses of Attributes in io.opentelemetry.sdk.metrics.internal.exemplar
Fields in io.opentelemetry.sdk.metrics.internal.exemplar declared as AttributesFields in io.opentelemetry.sdk.metrics.internal.exemplar with type parameters of type AttributesModifier and TypeFieldDescriptionprivate final BiFunction
<ReservoirCell, Attributes, T> FixedSizeExemplarReservoir.mapAndResetCell
Methods in io.opentelemetry.sdk.metrics.internal.exemplar that return AttributesModifier and TypeMethodDescriptionprivate static Attributes
ReservoirCell.filtered
(Attributes original, Attributes metricPoint) Returns filtered attributes for exemplars.Methods in io.opentelemetry.sdk.metrics.internal.exemplar with parameters of type AttributesModifier and TypeMethodDescriptionExemplarReservoir.collectAndReset
(Attributes pointAttributes) Returns an immutable list of Exemplars for exporting from the current reservoir.FilteredExemplarReservoir.collectAndReset
(Attributes pointAttributes) FixedSizeExemplarReservoir.collectAndReset
(Attributes pointAttributes) LongToDoubleExemplarReservoir.collectAndReset
(Attributes pointAttributes) NoopExemplarReservoir.collectAndReset
(Attributes pointAttributes) private static Attributes
ReservoirCell.filtered
(Attributes original, Attributes metricPoint) Returns filtered attributes for exemplars.(package private) DoubleExemplarData
ReservoirCell.getAndResetDouble
(Attributes pointAttributes) Retrieve the cell'sExemplarData
.(package private) LongExemplarData
ReservoirCell.getAndResetLong
(Attributes pointAttributes) Retrieve the cell'sExemplarData
.void
ExemplarReservoir.offerDoubleMeasurement
(double value, Attributes attributes, Context context) Offers adouble
measurement to be sampled.void
FilteredExemplarReservoir.offerDoubleMeasurement
(double value, Attributes attributes, Context context) void
FixedSizeExemplarReservoir.offerDoubleMeasurement
(double value, Attributes attributes, Context context) void
LongToDoubleExemplarReservoir.offerDoubleMeasurement
(double value, Attributes attributes, Context context) void
NoopExemplarReservoir.offerDoubleMeasurement
(double value, Attributes attributes, Context context) void
ExemplarReservoir.offerLongMeasurement
(long value, Attributes attributes, Context context) Offers along
measurement to be sampled.void
FilteredExemplarReservoir.offerLongMeasurement
(long value, Attributes attributes, Context context) void
FixedSizeExemplarReservoir.offerLongMeasurement
(long value, Attributes attributes, Context context) void
HistogramExemplarReservoir.offerLongMeasurement
(long value, Attributes attributes, Context context) void
LongToDoubleExemplarReservoir.offerLongMeasurement
(long value, Attributes attributes, Context context) void
NoopExemplarReservoir.offerLongMeasurement
(long value, Attributes attributes, Context context) private void
ReservoirCell.offerMeasurement
(Attributes attributes, Context context) (package private) void
ReservoirCell.recordDoubleMeasurement
(double value, Attributes attributes, Context context) Record the long measurement to the cell.(package private) void
ReservoirCell.recordLongMeasurement
(long value, Attributes attributes, Context context) Record the long measurement to the cell.int
HistogramExemplarReservoir.HistogramCellSelector.reservoirCellIndexFor
(ReservoirCell[] cells, double value, Attributes attributes, Context context) int
HistogramExemplarReservoir.HistogramCellSelector.reservoirCellIndexFor
(ReservoirCell[] cells, long value, Attributes attributes, Context context) int
RandomFixedSizeExemplarReservoir.RandomCellSelector.reservoirCellIndexFor
(ReservoirCell[] cells, double value, Attributes attributes, Context context) int
RandomFixedSizeExemplarReservoir.RandomCellSelector.reservoirCellIndexFor
(ReservoirCell[] cells, long value, Attributes attributes, Context context) int
ReservoirCellSelector.reservoirCellIndexFor
(ReservoirCell[] cells, double value, Attributes attributes, Context context) Determine the index of thecells
to record the measurement to.int
ReservoirCellSelector.reservoirCellIndexFor
(ReservoirCell[] cells, long value, Attributes attributes, Context context) Determine the index of thecells
to record the measurement to.boolean
AlwaysOffFilter.shouldSampleMeasurement
(double value, Attributes attributes, Context context) boolean
AlwaysOffFilter.shouldSampleMeasurement
(long value, Attributes attributes, Context context) boolean
AlwaysOnFilter.shouldSampleMeasurement
(double value, Attributes attributes, Context context) boolean
AlwaysOnFilter.shouldSampleMeasurement
(long value, Attributes attributes, Context context) boolean
ExemplarFilter.shouldSampleMeasurement
(double value, Attributes attributes, Context context) Returns whether or not a reservoir should attempt to filter a measurement.boolean
ExemplarFilter.shouldSampleMeasurement
(long value, Attributes attributes, Context context) Returns whether or not a reservoir should attempt to filter a measurement.boolean
TraceBasedExemplarFilter.shouldSampleMeasurement
(double value, Attributes attributes, Context context) boolean
TraceBasedExemplarFilter.shouldSampleMeasurement
(long value, Attributes attributes, Context context) Constructor parameters in io.opentelemetry.sdk.metrics.internal.exemplar with type arguments of type AttributesModifierConstructorDescription(package private)
FixedSizeExemplarReservoir
(Clock clock, int size, ReservoirCellSelector reservoirCellSelector, BiFunction<ReservoirCell, Attributes, T> mapAndResetCell) Instantiates an exemplar reservoir of fixed size.private
RandomFixedSizeExemplarReservoir
(Clock clock, int size, Supplier<Random> randomSupplier, BiFunction<ReservoirCell, Attributes, T> mapAndResetCell) -
Uses of Attributes in io.opentelemetry.sdk.metrics.internal.state
Fields in io.opentelemetry.sdk.metrics.internal.state declared as AttributesModifier and TypeFieldDescriptionprivate final Attributes
AutoValue_ImmutableMeasurement.attributes
private Attributes
MutableMeasurement.attributes
static final Attributes
MetricStorage.CARDINALITY_OVERFLOW
Attributes capturing overflow measurements recorded when cardinality limit is exceeded.Fields in io.opentelemetry.sdk.metrics.internal.state with type parameters of type AttributesModifier and TypeFieldDescriptionprivate final ConcurrentHashMap
<Attributes, AggregatorHandle<T, U>> DefaultSynchronousMetricStorage.AggregatorHolder.aggregatorHandles
private Map
<Attributes, T> AsynchronousMetricStorage.lastPoints
private Map
<Attributes, T> AsynchronousMetricStorage.points
private ConcurrentHashMap
<Attributes, AggregatorHandle<T, U>> DefaultSynchronousMetricStorage.previousCollectionAggregatorHandles
Methods in io.opentelemetry.sdk.metrics.internal.state that return AttributesModifier and TypeMethodDescriptionAutoValue_ImmutableMeasurement.attributes()
Measurement.attributes()
MutableMeasurement.attributes()
Methods in io.opentelemetry.sdk.metrics.internal.state with parameters of type AttributesModifier and TypeMethodDescription(package private) static ImmutableMeasurement
ImmutableMeasurement.createDouble
(long startEpochNanos, long epochNanos, double value, Attributes attributes) (package private) static ImmutableMeasurement
ImmutableMeasurement.createLong
(long startEpochNanos, long epochNanos, long value, Attributes attributes) private AggregatorHandle
<T, U> DefaultSynchronousMetricStorage.getAggregatorHandle
(ConcurrentHashMap<Attributes, AggregatorHandle<T, U>> aggregatorHandles, Attributes attributes, Context context) void
SdkObservableMeasurement.record
(double value, Attributes attributes) void
SdkObservableMeasurement.record
(long value, Attributes attributes) void
DefaultSynchronousMetricStorage.recordDouble
(double value, Attributes attributes, Context context) void
EmptyMetricStorage.recordDouble
(double value, Attributes attributes, Context context) void
WriteableMetricStorage.recordDouble
(double value, Attributes attributes, Context context) Records a measurement.void
DefaultSynchronousMetricStorage.recordLong
(long value, Attributes attributes, Context context) void
EmptyMetricStorage.recordLong
(long value, Attributes attributes, Context context) void
WriteableMetricStorage.recordLong
(long value, Attributes attributes, Context context) Records a measurement.private void
AsynchronousMetricStorage.recordPoint
(Attributes attributes, Measurement measurement) private void
MutableMeasurement.set
(long startEpochNanos, long epochNanos, boolean hasLongValue, long longValue, boolean hasDoubleValue, double doubleValue, Attributes attributes) Sets the values.(package private) static void
MutableMeasurement.setDoubleMeasurement
(MutableMeasurement mutableMeasurement, long startEpochNanos, long epochNanos, double value, Attributes attributes) (package private) static void
MutableMeasurement.setLongMeasurement
(MutableMeasurement mutableMeasurement, long startEpochNanos, long epochNanos, long value, Attributes attributes) ImmutableMeasurement.withAttributes
(Attributes attributes) Measurement.withAttributes
(Attributes attributes) Updates the attributes.MutableMeasurement.withAttributes
(Attributes attributes) Method parameters in io.opentelemetry.sdk.metrics.internal.state with type arguments of type AttributesModifier and TypeMethodDescriptionprivate AggregatorHandle
<T, U> DefaultSynchronousMetricStorage.getAggregatorHandle
(ConcurrentHashMap<Attributes, AggregatorHandle<T, U>> aggregatorHandles, Attributes attributes, Context context) Constructors in io.opentelemetry.sdk.metrics.internal.state with parameters of type AttributesModifierConstructorDescription(package private)
AutoValue_ImmutableMeasurement
(long startEpochNanos, long epochNanos, boolean hasLongValue, long longValue, boolean hasDoubleValue, double doubleValue, Attributes attributes) Constructor parameters in io.opentelemetry.sdk.metrics.internal.state with type arguments of type AttributesModifierConstructorDescriptionprivate
AggregatorHolder
(ConcurrentHashMap<Attributes, AggregatorHandle<T, U>> aggregatorHandles) -
Uses of Attributes in io.opentelemetry.sdk.metrics.internal.view
Classes in io.opentelemetry.sdk.metrics.internal.view that implement AttributesModifier and TypeClassDescription(package private) class
Filtered attributes is a filtered view of aImmutableKeyValuePairs
backedAttributes
instance.private static class
Implementation that can handle attributes of arbitrary size by storing filter status in aBitSet
.private static class
Implementation that relies on the source having less thanFilteredAttributes.SmallFilteredAttributes.BITS_PER_INTEGER
attributes, and storing entry filter status in the bits of an integer.Fields in io.opentelemetry.sdk.metrics.internal.view declared as AttributesModifier and TypeFieldDescriptionprivate final Attributes
AttributesProcessor.AppendingAttributesProcessor.additionalAttributes
Methods in io.opentelemetry.sdk.metrics.internal.view that return AttributesModifier and TypeMethodDescriptionprivate static Attributes
FilteredAttributes.convertToStandardImplementation
(Attributes source) (package private) static Attributes
FilteredAttributes.create
(Attributes source, Set<AttributeKey<?>> includedKeys) Create aFilteredAttributes
instance.AdviceAttributesProcessor.process
(Attributes incoming, Context context) AttributesProcessor.AppendingAttributesProcessor.process
(Attributes incoming, Context context) AttributesProcessor.AttributeKeyFilteringProcessor.process
(Attributes incoming, Context context) AttributesProcessor.BaggageAppendingAttributesProcessor.process
(Attributes incoming, Context context) AttributesProcessor.JoinedAttributesProcessor.process
(Attributes incoming, Context context) abstract Attributes
AttributesProcessor.process
(Attributes incoming, Context context) Manipulates a set of attributes, returning the desired set.NoopAttributesProcessor.process
(Attributes incoming, Context context) Methods in io.opentelemetry.sdk.metrics.internal.view with parameters of type AttributesModifier and TypeMethodDescriptionstatic AttributesProcessor
AttributesProcessor.append
(Attributes attributes) Creates a processor which appends (exactly) the given attributes.private static Attributes
FilteredAttributes.convertToStandardImplementation
(Attributes source) (package private) static Attributes
FilteredAttributes.create
(Attributes source, Set<AttributeKey<?>> includedKeys) Create aFilteredAttributes
instance.AdviceAttributesProcessor.process
(Attributes incoming, Context context) AttributesProcessor.AppendingAttributesProcessor.process
(Attributes incoming, Context context) AttributesProcessor.AttributeKeyFilteringProcessor.process
(Attributes incoming, Context context) AttributesProcessor.BaggageAppendingAttributesProcessor.process
(Attributes incoming, Context context) AttributesProcessor.JoinedAttributesProcessor.process
(Attributes incoming, Context context) abstract Attributes
AttributesProcessor.process
(Attributes incoming, Context context) Manipulates a set of attributes, returning the desired set.NoopAttributesProcessor.process
(Attributes incoming, Context context) Constructors in io.opentelemetry.sdk.metrics.internal.view with parameters of type AttributesModifierConstructorDescriptionprivate
AppendingAttributesProcessor
(Attributes additionalAttributes) -
Uses of Attributes in io.opentelemetry.sdk.resources
Fields in io.opentelemetry.sdk.resources declared as AttributesMethods in io.opentelemetry.sdk.resources that return AttributesModifier and TypeMethodDescriptionAutoValue_Resource.getAttributes()
abstract Attributes
Resource.getAttributes()
Returns a map of attributes that describe the resource.Methods in io.opentelemetry.sdk.resources with parameters of type AttributesModifier and TypeMethodDescriptionprivate static void
Resource.checkAttributes
(Attributes attributes) static Resource
Resource.create
(Attributes attributes) Returns aResource
.static Resource
Resource.create
(Attributes attributes, String schemaUrl) Returns aResource
.ResourceBuilder.putAll
(Attributes attributes) Puts allAttributes
into this.Constructors in io.opentelemetry.sdk.resources with parameters of type AttributesModifierConstructorDescription(package private)
AutoValue_Resource
(String schemaUrl, Attributes attributes) -
Uses of Attributes in io.opentelemetry.sdk.trace
Fields in io.opentelemetry.sdk.trace declared as AttributesMethods in io.opentelemetry.sdk.trace that return AttributesModifier and TypeMethodDescription(package private) Attributes
AutoValue_SpanWrapper.attributes()
(package private) abstract Attributes
SpanWrapper.attributes()
default Attributes
ReadableSpan.getAttributes()
Returns the Span attributes.SdkSpan.getAttributes()
SpanWrapper.getAttributes()
private Attributes
SdkSpan.getImmutableAttributes()
Methods in io.opentelemetry.sdk.trace with parameters of type AttributesModifier and TypeMethodDescriptionSdkSpan.addEvent
(String name, Attributes attributes) SdkSpan.addEvent
(String name, Attributes attributes, long timestamp, TimeUnit unit) SdkSpan.addLink
(SpanContext spanContext, Attributes attributes) SdkSpanBuilder.addLink
(SpanContext spanContext, Attributes attributes) (package private) static SpanWrapper
SpanWrapper.create
(SdkSpan delegate, List<LinkData> links, List<EventData> events, Attributes attributes, int totalAttributeCount, int totalRecordedEvents, int totalRecordedLinks, StatusData status, String name, long endEpochNanos, boolean hasEnded) Note: the collections that are passed into this creator method are assumed to be immutable to preserve the overall immutability of the class.SdkSpan.recordException
(Throwable exception, Attributes additionalAttributes) Constructors in io.opentelemetry.sdk.trace with parameters of type AttributesModifierConstructorDescription(package private)
AutoValue_SpanWrapper
(SdkSpan delegate, List<LinkData> resolvedLinks, List<EventData> resolvedEvents, Attributes attributes, int totalAttributeCount, int totalRecordedEvents, int totalRecordedLinks, StatusData status, String name, long endEpochNanos, boolean internalHasEnded) -
Uses of Attributes in io.opentelemetry.sdk.trace.data
Fields in io.opentelemetry.sdk.trace.data declared as AttributesModifier and TypeFieldDescriptionprivate final Attributes
AutoValue_ImmutableEventData.attributes
private final Attributes
AutoValue_ImmutableExceptionEventData.attributes
private final Attributes
AutoValue_ImmutableLinkData.attributes
private static final Attributes
ImmutableLinkData.DEFAULT_ATTRIBUTE_COLLECTION
Methods in io.opentelemetry.sdk.trace.data that return AttributesModifier and TypeMethodDescriptionAutoValue_ImmutableEventData.getAttributes()
AutoValue_ImmutableExceptionEventData.getAttributes()
AutoValue_ImmutableLinkData.getAttributes()
DelegatingSpanData.getAttributes()
EventData.getAttributes()
Return the attributes of theEventData
.LinkData.getAttributes()
Returns the set of attributes.SpanData.getAttributes()
Returns the attributes recorded for thisSpan
.Methods in io.opentelemetry.sdk.trace.data with parameters of type AttributesModifier and TypeMethodDescriptionstatic EventData
EventData.create
(long epochNanos, String name, Attributes attributes) Returns a new immutableEventData
.static EventData
EventData.create
(long epochNanos, String name, Attributes attributes, int totalAttributeCount) Returns a new immutableEventData
.static ExceptionEventData
ExceptionEventData.create
(long epochNanos, Throwable exception, Attributes attributes, int totalAttributeCount) Returns a new immutableExceptionEventData
.(package private) static EventData
ImmutableEventData.create
(long epochNanos, String name, Attributes attributes) Returns a new immutableEvent
.(package private) static EventData
ImmutableEventData.create
(long epochNanos, String name, Attributes attributes, int totalAttributeCount) Returns a new immutableEvent
.(package private) static ExceptionEventData
ImmutableExceptionEventData.create
(long epochNanos, Throwable exception, Attributes attributes, int totalAttributeCount) Returns a new immutableEvent
.(package private) static LinkData
ImmutableLinkData.create
(SpanContext spanContext, Attributes attributes) (package private) static LinkData
ImmutableLinkData.create
(SpanContext spanContext, Attributes attributes, int totalAttributeCount) static LinkData
LinkData.create
(SpanContext spanContext, Attributes attributes) Returns a new immutableLinkData
.static LinkData
LinkData.create
(SpanContext spanContext, Attributes attributes, int totalAttributeCount) Returns a new immutableLinkData
.Constructors in io.opentelemetry.sdk.trace.data with parameters of type AttributesModifierConstructorDescription(package private)
AutoValue_ImmutableEventData
(String name, Attributes attributes, long epochNanos, int totalAttributeCount) (package private)
AutoValue_ImmutableExceptionEventData
(Attributes attributes, long epochNanos, int totalAttributeCount, Throwable exception) (package private)
AutoValue_ImmutableLinkData
(SpanContext spanContext, Attributes attributes, int totalAttributeCount) -
Uses of Attributes in io.opentelemetry.sdk.trace.export
Fields in io.opentelemetry.sdk.trace.export declared as AttributesModifier and TypeFieldDescriptionprivate final Attributes
BatchSpanProcessor.Worker.droppedAttrs
private final Attributes
BatchSpanProcessor.Worker.exportedAttrs
-
Uses of Attributes in io.opentelemetry.sdk.trace.samplers
Fields in io.opentelemetry.sdk.trace.samplers declared as AttributesModifier and TypeFieldDescriptionprivate final Attributes
AutoValue_ImmutableSamplingResult.attributes
Methods in io.opentelemetry.sdk.trace.samplers that return AttributesModifier and TypeMethodDescriptionAutoValue_ImmutableSamplingResult.getAttributes()
abstract Attributes
ImmutableSamplingResult.getAttributes()
SamplingResult.getAttributes()
Return tags which will be attached to the span.Methods in io.opentelemetry.sdk.trace.samplers with parameters of type AttributesModifier and TypeMethodDescriptionstatic SamplingResult
SamplingResult.create
(SamplingDecision decision, Attributes attributes) Returns aSamplingResult
with the givenattributes
andSamplingResult.getDecision()
returningdecision
.(package private) static SamplingResult
ImmutableSamplingResult.createSamplingResult
(SamplingDecision decision, Attributes attributes) AlwaysOffSampler.shouldSample
(Context parentContext, String traceId, String name, SpanKind spanKind, Attributes attributes, List<LinkData> parentLinks) AlwaysOnSampler.shouldSample
(Context parentContext, String traceId, String name, SpanKind spanKind, Attributes attributes, List<LinkData> parentLinks) ParentBasedSampler.shouldSample
(Context parentContext, String traceId, String name, SpanKind spanKind, Attributes attributes, List<LinkData> parentLinks) Sampler.shouldSample
(Context parentContext, String traceId, String name, SpanKind spanKind, Attributes attributes, List<LinkData> parentLinks) Called duringSpan
creation to make a sampling samplingResult.TraceIdRatioBasedSampler.shouldSample
(Context parentContext, String traceId, String name, SpanKind spanKind, Attributes attributes, List<LinkData> parentLinks) Constructors in io.opentelemetry.sdk.trace.samplers with parameters of type AttributesModifierConstructorDescription(package private)
AutoValue_ImmutableSamplingResult
(SamplingDecision decision, Attributes attributes)