Uses of Class
io.opentelemetry.sdk.resources.Resource
-
Packages that use Resource Package Description io.opentelemetry.exporter.internal.marshal Marshaling framework for serializing data to protobuf format.io.opentelemetry.exporter.internal.otlp Utilities for working with the OTLP format.io.opentelemetry.exporter.internal.otlp.logs Marshaling of OTLP logs.io.opentelemetry.exporter.internal.otlp.metrics Marshaling of OTLP metrics.io.opentelemetry.exporter.internal.otlp.traces Marshaling of OTLP traces.io.opentelemetry.sdk.autoconfigure io.opentelemetry.sdk.autoconfigure.internal io.opentelemetry.sdk.autoconfigure.spi Java SPI (Service Provider Interface) for implementing extensions to SDK autoconfiguration.io.opentelemetry.sdk.autoconfigure.spi.internal io.opentelemetry.sdk.logs The OpenTelemetry SDK implementation of logging.io.opentelemetry.sdk.logs.data The data format to model logs for export.io.opentelemetry.sdk.metrics The SDK implementation of metrics.io.opentelemetry.sdk.metrics.data Classes which form the in-memory representation of the OpenTelemetry metrics data model.io.opentelemetry.sdk.metrics.export Utilities that facilitate exporting metrics out ofSdkMeterProvider
.io.opentelemetry.sdk.metrics.internal.aggregator Metric aggregators.io.opentelemetry.sdk.metrics.internal.data The data format to model metrics for export.io.opentelemetry.sdk.metrics.internal.state io.opentelemetry.sdk.resources API for resource information population.io.opentelemetry.sdk.trace The OpenTelemetry SDK implementation of tracing.io.opentelemetry.sdk.trace.data The data format to model traces for export. -
-
Uses of Resource in io.opentelemetry.exporter.internal.marshal
Fields in io.opentelemetry.exporter.internal.marshal with type parameters of type Resource Modifier and Type Field Description private java.util.function.Function<T,Resource>
StatelessMarshalerUtil.Grouper. getResource
private java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<T>>>
StatelessMarshalerUtil.Grouper. result
Methods in io.opentelemetry.exporter.internal.marshal that return types with arguments of type Resource Modifier and Type Method Description static <T,U>
java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<U>>>MarshalerUtil. groupByResourceAndScope(java.util.Collection<T> dataList, java.util.function.Function<T,Resource> getResource, java.util.function.Function<T,InstrumentationScopeInfo> getInstrumentationScope, java.util.function.Function<T,U> createMarshaler)
Groups SDK items by resource and instrumentation scope.static <T> java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<T>>>
StatelessMarshalerUtil. groupByResourceAndScope(java.util.Collection<T> dataList, java.util.function.Function<T,Resource> getResource, java.util.function.Function<T,InstrumentationScopeInfo> getInstrumentationScope, MarshalerContext context)
Groups SDK items by resource and instrumentation scope.Method parameters in io.opentelemetry.exporter.internal.marshal with type arguments of type Resource Modifier and Type Method Description static <T,U>
java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<U>>>MarshalerUtil. groupByResourceAndScope(java.util.Collection<T> dataList, java.util.function.Function<T,Resource> getResource, java.util.function.Function<T,InstrumentationScopeInfo> getInstrumentationScope, java.util.function.Function<T,U> createMarshaler)
Groups SDK items by resource and instrumentation scope.static <T> java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<T>>>
StatelessMarshalerUtil. groupByResourceAndScope(java.util.Collection<T> dataList, java.util.function.Function<T,Resource> getResource, java.util.function.Function<T,InstrumentationScopeInfo> getInstrumentationScope, MarshalerContext context)
Groups SDK items by resource and instrumentation scope.(package private) void
StatelessMarshalerUtil.Grouper. initialize(java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<T>>> result, java.util.function.Function<T,Resource> getResource, java.util.function.Function<T,InstrumentationScopeInfo> getInstrumentationScope, MarshalerContext context)
(package private) void
StatelessMarshalerUtil.Grouper. initialize(java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<T>>> result, java.util.function.Function<T,Resource> getResource, java.util.function.Function<T,InstrumentationScopeInfo> getInstrumentationScope, MarshalerContext context)
-
Uses of Resource in io.opentelemetry.exporter.internal.otlp
Fields in io.opentelemetry.exporter.internal.otlp with type parameters of type Resource Modifier and Type Field Description private static WeakConcurrentMap<Resource,ResourceMarshaler>
ResourceMarshaler. RESOURCE_MARSHALER_CACHE
Methods in io.opentelemetry.exporter.internal.otlp with parameters of type Resource Modifier and Type Method Description static ResourceMarshaler
ResourceMarshaler. create(Resource resource)
Returns a Marshaler for Resource. -
Uses of Resource in io.opentelemetry.exporter.internal.otlp.logs
Fields in io.opentelemetry.exporter.internal.otlp.logs with type parameters of type Resource Modifier and Type Field Description private java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<LogRecordData>>>
LowAllocationLogsRequestMarshaler. resourceAndScopeMap
Methods in io.opentelemetry.exporter.internal.otlp.logs that return types with arguments of type Resource Modifier and Type Method Description private static java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<LogRecordData>>>
LowAllocationLogsRequestMarshaler. groupByResourceAndScope(MarshalerContext context, java.util.Collection<LogRecordData> logDataList)
private static java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<Marshaler>>>
ResourceLogsMarshaler. groupByResourceAndScope(java.util.Collection<LogRecordData> logs)
Methods in io.opentelemetry.exporter.internal.otlp.logs with parameters of type Resource Modifier and Type Method Description int
ResourceLogsStatelessMarshaler. getBinarySerializedSize(Resource resource, java.util.Map<InstrumentationScopeInfo,java.util.List<LogRecordData>> scopeMap, MarshalerContext context)
void
ResourceLogsStatelessMarshaler. writeTo(Serializer output, Resource resource, java.util.Map<InstrumentationScopeInfo,java.util.List<LogRecordData>> scopeMap, MarshalerContext context)
Method parameters in io.opentelemetry.exporter.internal.otlp.logs with type arguments of type Resource Modifier and Type Method Description private static int
LowAllocationLogsRequestMarshaler. calculateSize(MarshalerContext context, java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<LogRecordData>>> resourceAndScopeMap)
-
Uses of Resource in io.opentelemetry.exporter.internal.otlp.metrics
Fields in io.opentelemetry.exporter.internal.otlp.metrics with type parameters of type Resource Modifier and Type Field Description private java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<MetricData>>>
LowAllocationMetricsRequestMarshaler. resourceAndScopeMap
Methods in io.opentelemetry.exporter.internal.otlp.metrics that return types with arguments of type Resource Modifier and Type Method Description private static java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<MetricData>>>
LowAllocationMetricsRequestMarshaler. groupByResourceAndScope(MarshalerContext context, java.util.Collection<MetricData> metricDataList)
private static java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<Marshaler>>>
ResourceMetricsMarshaler. groupByResourceAndScope(java.util.Collection<MetricData> metricDataList)
Methods in io.opentelemetry.exporter.internal.otlp.metrics with parameters of type Resource Modifier and Type Method Description int
ResourceMetricsStatelessMarshaler. getBinarySerializedSize(Resource resource, java.util.Map<InstrumentationScopeInfo,java.util.List<MetricData>> scopeMap, MarshalerContext context)
void
ResourceMetricsStatelessMarshaler. writeTo(Serializer output, Resource resource, java.util.Map<InstrumentationScopeInfo,java.util.List<MetricData>> scopeMap, MarshalerContext context)
Method parameters in io.opentelemetry.exporter.internal.otlp.metrics with type arguments of type Resource Modifier and Type Method Description private static int
LowAllocationMetricsRequestMarshaler. calculateSize(MarshalerContext context, java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<MetricData>>> resourceAndScopeMap)
-
Uses of Resource in io.opentelemetry.exporter.internal.otlp.traces
Fields in io.opentelemetry.exporter.internal.otlp.traces with type parameters of type Resource Modifier and Type Field Description private java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<SpanData>>>
LowAllocationTraceRequestMarshaler. resourceAndScopeMap
Methods in io.opentelemetry.exporter.internal.otlp.traces that return types with arguments of type Resource Modifier and Type Method Description private static java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<SpanData>>>
LowAllocationTraceRequestMarshaler. groupByResourceAndScope(MarshalerContext context, java.util.Collection<SpanData> spanDataList)
private static java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<SpanMarshaler>>>
ResourceSpansMarshaler. groupByResourceAndScope(java.util.Collection<SpanData> spanDataList)
Methods in io.opentelemetry.exporter.internal.otlp.traces with parameters of type Resource Modifier and Type Method Description int
ResourceSpansStatelessMarshaler. getBinarySerializedSize(Resource resource, java.util.Map<InstrumentationScopeInfo,java.util.List<SpanData>> scopeMap, MarshalerContext context)
void
ResourceSpansStatelessMarshaler. writeTo(Serializer output, Resource resource, java.util.Map<InstrumentationScopeInfo,java.util.List<SpanData>> scopeMap, MarshalerContext context)
Method parameters in io.opentelemetry.exporter.internal.otlp.traces with type arguments of type Resource Modifier and Type Method Description private static int
LowAllocationTraceRequestMarshaler. calculateSize(MarshalerContext context, java.util.Map<Resource,java.util.Map<InstrumentationScopeInfo,java.util.List<SpanData>>> resourceAndScopeMap)
-
Uses of Resource in io.opentelemetry.sdk.autoconfigure
Fields in io.opentelemetry.sdk.autoconfigure declared as Resource Modifier and Type Field Description private Resource
AutoValue_AutoConfiguredOpenTelemetrySdk. resource
Fields in io.opentelemetry.sdk.autoconfigure with type parameters of type Resource Modifier and Type Field Description private java.util.function.BiFunction<? super Resource,ConfigProperties,? extends Resource>
AutoConfiguredOpenTelemetrySdkBuilder. resourceCustomizer
private java.util.function.BiFunction<? super Resource,ConfigProperties,? extends Resource>
AutoConfiguredOpenTelemetrySdkBuilder. resourceCustomizer
Methods in io.opentelemetry.sdk.autoconfigure that return Resource Modifier and Type Method Description (package private) static Resource
ResourceConfiguration. configureResource(ConfigProperties config, SpiHelper spiHelper, java.util.function.BiFunction<? super Resource,ConfigProperties,? extends Resource> resourceCustomizer)
static Resource
ResourceConfiguration. createEnvironmentResource()
Create aResource
from the environment.static Resource
ResourceConfiguration. createEnvironmentResource(ConfigProperties config)
Create aResource
from the environment.(package private) static Resource
ResourceConfiguration. filterAttributes(Resource resource, ConfigProperties configProperties)
(package private) abstract Resource
AutoConfiguredOpenTelemetrySdk. getResource()
Returns theResource
that was auto-configured.(package private) Resource
AutoValue_AutoConfiguredOpenTelemetrySdk. getResource()
Methods in io.opentelemetry.sdk.autoconfigure with parameters of type Resource Modifier and Type Method Description (package private) static AutoConfiguredOpenTelemetrySdk
AutoConfiguredOpenTelemetrySdk. create(OpenTelemetrySdk sdk, Resource resource, ConfigProperties config, StructuredConfigProperties structuredConfigProperties)
(package private) static Resource
ResourceConfiguration. filterAttributes(Resource resource, ConfigProperties configProperties)
Method parameters in io.opentelemetry.sdk.autoconfigure with type arguments of type Resource Modifier and Type Method Description AutoConfiguredOpenTelemetrySdkBuilder
AutoConfiguredOpenTelemetrySdkBuilder. addResourceCustomizer(java.util.function.BiFunction<? super Resource,ConfigProperties,? extends Resource> resourceCustomizer)
Adds aBiFunction
to invoke with the default autoconfiguredResource
to allow customization.AutoConfiguredOpenTelemetrySdkBuilder
AutoConfiguredOpenTelemetrySdkBuilder. addResourceCustomizer(java.util.function.BiFunction<? super Resource,ConfigProperties,? extends Resource> resourceCustomizer)
Adds aBiFunction
to invoke with the default autoconfiguredResource
to allow customization.(package private) static Resource
ResourceConfiguration. configureResource(ConfigProperties config, SpiHelper spiHelper, java.util.function.BiFunction<? super Resource,ConfigProperties,? extends Resource> resourceCustomizer)
(package private) static Resource
ResourceConfiguration. configureResource(ConfigProperties config, SpiHelper spiHelper, java.util.function.BiFunction<? super Resource,ConfigProperties,? extends Resource> resourceCustomizer)
Constructors in io.opentelemetry.sdk.autoconfigure with parameters of type Resource Constructor Description AutoValue_AutoConfiguredOpenTelemetrySdk(OpenTelemetrySdk openTelemetrySdk, Resource resource, ConfigProperties config, StructuredConfigProperties structuredConfig)
-
Uses of Resource in io.opentelemetry.sdk.autoconfigure.internal
Methods in io.opentelemetry.sdk.autoconfigure.internal that return Resource Modifier and Type Method Description Resource
EnvironmentResourceProvider. createResource(ConfigProperties config)
-
Uses of Resource in io.opentelemetry.sdk.autoconfigure.spi
Methods in io.opentelemetry.sdk.autoconfigure.spi that return Resource Modifier and Type Method Description Resource
ResourceProvider. createResource(ConfigProperties config)
Method parameters in io.opentelemetry.sdk.autoconfigure.spi with type arguments of type Resource Modifier and Type Method Description AutoConfigurationCustomizer
AutoConfigurationCustomizer. addResourceCustomizer(java.util.function.BiFunction<? super Resource,ConfigProperties,? extends Resource> resourceCustomizer)
Adds aBiFunction
to invoke with the default autoconfiguredResource
to allow customization.AutoConfigurationCustomizer
AutoConfigurationCustomizer. addResourceCustomizer(java.util.function.BiFunction<? super Resource,ConfigProperties,? extends Resource> resourceCustomizer)
Adds aBiFunction
to invoke with the default autoconfiguredResource
to allow customization. -
Uses of Resource in io.opentelemetry.sdk.autoconfigure.spi.internal
Methods in io.opentelemetry.sdk.autoconfigure.spi.internal with parameters of type Resource Modifier and Type Method Description boolean
ConditionalResourceProvider. shouldApply(ConfigProperties config, Resource existing)
If an implementation needs to apply only under certain conditions related to the config or the existing state of the Resource being built, they can choose to override this default. -
Uses of Resource in io.opentelemetry.sdk.logs
Fields in io.opentelemetry.sdk.logs declared as Resource Modifier and Type Field Description private Resource
AutoValue_SdkLogRecordData. resource
private Resource
LoggerSharedState. resource
private Resource
SdkLoggerProviderBuilder. resource
private Resource
SdkReadWriteLogRecord. resource
Methods in io.opentelemetry.sdk.logs that return Resource Modifier and Type Method Description Resource
AutoValue_SdkLogRecordData. getResource()
(package private) Resource
LoggerSharedState. getResource()
Methods in io.opentelemetry.sdk.logs with parameters of type Resource Modifier and Type Method Description SdkLoggerProviderBuilder
SdkLoggerProviderBuilder. addResource(Resource resource)
Merge aResource
with the current.(package private) static SdkLogRecordData
SdkLogRecordData. create(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long epochNanos, long observedEpochNanos, SpanContext spanContext, Severity severity, java.lang.String severityText, Value<?> body, Attributes attributes, int totalAttributeCount)
(package private) static SdkReadWriteLogRecord
SdkReadWriteLogRecord. create(LogLimits logLimits, Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long timestampEpochNanos, long observedTimestampEpochNanos, SpanContext spanContext, Severity severity, java.lang.String severityText, Value<?> body, AttributesMap attributes)
Create the log record with the given configuration.SdkLoggerProviderBuilder
SdkLoggerProviderBuilder. setResource(Resource resource)
Assign aResource
to be attached to allLogRecordData
created byLogger
s obtained from theSdkLoggerProvider
.Constructors in io.opentelemetry.sdk.logs with parameters of type Resource Constructor Description AutoValue_SdkLogRecordData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long timestampEpochNanos, long observedTimestampEpochNanos, SpanContext spanContext, Severity severity, java.lang.String severityText, Attributes attributes, int totalAttributeCount, Value<?> bodyValue)
LoggerSharedState(Resource resource, java.util.function.Supplier<LogLimits> logLimitsSupplier, LogRecordProcessor logRecordProcessor, Clock clock)
SdkLoggerProvider(Resource resource, java.util.function.Supplier<LogLimits> logLimitsSupplier, java.util.List<LogRecordProcessor> processors, Clock clock, ScopeConfigurator<LoggerConfig> loggerConfigurator)
SdkReadWriteLogRecord(LogLimits logLimits, Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long timestampEpochNanos, long observedTimestampEpochNanos, SpanContext spanContext, Severity severity, java.lang.String severityText, Value<?> body, AttributesMap attributes)
-
Uses of Resource in io.opentelemetry.sdk.logs.data
Methods in io.opentelemetry.sdk.logs.data that return Resource Modifier and Type Method Description Resource
LogRecordData. getResource()
Returns the resource of this log. -
Uses of Resource in io.opentelemetry.sdk.metrics
Fields in io.opentelemetry.sdk.metrics declared as Resource Modifier and Type Field Description private Resource
SdkMeterProviderBuilder. resource
Methods in io.opentelemetry.sdk.metrics with parameters of type Resource Modifier and Type Method Description SdkMeterProviderBuilder
SdkMeterProviderBuilder. addResource(Resource resource)
Merge aResource
with the current.java.util.Collection<MetricData>
SdkMeterProvider.LeasedMetricProducer. produce(Resource unused)
SdkMeterProviderBuilder
SdkMeterProviderBuilder. setResource(Resource resource)
Assign aResource
to be attached to all metrics.Constructors in io.opentelemetry.sdk.metrics with parameters of type Resource Constructor Description SdkMeterProvider(java.util.List<RegisteredView> registeredViews, java.util.IdentityHashMap<MetricReader,CardinalityLimitSelector> metricReaders, java.util.List<MetricProducer> metricProducers, Clock clock, Resource resource, ExemplarFilter exemplarFilter, ScopeConfigurator<MeterConfig> meterConfigurator)
-
Uses of Resource in io.opentelemetry.sdk.metrics.data
Methods in io.opentelemetry.sdk.metrics.data that return Resource Modifier and Type Method Description Resource
MetricData. getResource()
Returns the metricResource
. -
Uses of Resource in io.opentelemetry.sdk.metrics.export
Methods in io.opentelemetry.sdk.metrics.export with parameters of type Resource Modifier and Type Method Description java.util.Collection<MetricData>
MetricProducer. produce(Resource resource)
Returns a collection of producedMetricData
s to be exported. -
Uses of Resource in io.opentelemetry.sdk.metrics.internal.aggregator
Methods in io.opentelemetry.sdk.metrics.internal.aggregator that return Resource Modifier and Type Method Description Resource
EmptyMetricData. getResource()
Methods in io.opentelemetry.sdk.metrics.internal.aggregator with parameters of type Resource Modifier and Type Method Description MetricData
Aggregator. toMetricData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor metricDescriptor, java.util.Collection<T> points, AggregationTemporality temporality)
Returns theMetricData
that thisAggregation
will produce.MetricData
DoubleBase2ExponentialHistogramAggregator. toMetricData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor metricDescriptor, java.util.Collection<ExponentialHistogramPointData> points, AggregationTemporality temporality)
MetricData
DoubleExplicitBucketHistogramAggregator. toMetricData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor metricDescriptor, java.util.Collection<HistogramPointData> pointData, AggregationTemporality temporality)
MetricData
DoubleLastValueAggregator. toMetricData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor descriptor, java.util.Collection<DoublePointData> points, AggregationTemporality temporality)
MetricData
DoubleSumAggregator. toMetricData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor descriptor, java.util.Collection<DoublePointData> points, AggregationTemporality temporality)
MetricData
DropAggregator. toMetricData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor metricDescriptor, java.util.Collection<PointData> points, AggregationTemporality temporality)
MetricData
LongLastValueAggregator. toMetricData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor descriptor, java.util.Collection<LongPointData> points, AggregationTemporality temporality)
MetricData
LongSumAggregator. toMetricData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor descriptor, java.util.Collection<LongPointData> points, AggregationTemporality temporality)
-
Uses of Resource in io.opentelemetry.sdk.metrics.internal.data
Fields in io.opentelemetry.sdk.metrics.internal.data declared as Resource Modifier and Type Field Description private Resource
AutoValue_ImmutableMetricData. resource
Methods in io.opentelemetry.sdk.metrics.internal.data that return Resource Modifier and Type Method Description Resource
AutoValue_ImmutableMetricData. getResource()
Methods in io.opentelemetry.sdk.metrics.internal.data with parameters of type Resource Modifier and Type Method Description (package private) static ImmutableMetricData
ImmutableMetricData. create(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, java.lang.String name, java.lang.String description, java.lang.String unit, MetricDataType type, Data<?> data)
static MetricData
ImmutableMetricData. createDoubleGauge(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, java.lang.String name, java.lang.String description, java.lang.String unit, GaugeData<DoublePointData> data)
Returns a new MetricData with aMetricDataType.DOUBLE_GAUGE
type.static MetricData
ImmutableMetricData. createDoubleHistogram(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, java.lang.String name, java.lang.String description, java.lang.String unit, HistogramData data)
Returns a new MetricData with aMetricDataType.HISTOGRAM
type.static MetricData
ImmutableMetricData. createDoubleSum(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, java.lang.String name, java.lang.String description, java.lang.String unit, SumData<DoublePointData> data)
Returns a new MetricData with aMetricDataType.DOUBLE_SUM
type.static MetricData
ImmutableMetricData. createDoubleSummary(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, java.lang.String name, java.lang.String description, java.lang.String unit, SummaryData data)
Returns a new MetricData with aMetricDataType.SUMMARY
type.static MetricData
ImmutableMetricData. createExponentialHistogram(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, java.lang.String name, java.lang.String description, java.lang.String unit, ExponentialHistogramData data)
Returns a new MetricData with aMetricDataType.EXPONENTIAL_HISTOGRAM
type.static MetricData
ImmutableMetricData. createLongGauge(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, java.lang.String name, java.lang.String description, java.lang.String unit, GaugeData<LongPointData> data)
Returns a new MetricData with aMetricDataType.LONG_GAUGE
type.static MetricData
ImmutableMetricData. createLongSum(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, java.lang.String name, java.lang.String description, java.lang.String unit, SumData<LongPointData> data)
Returns a new MetricData with aMetricDataType.LONG_SUM
type.Constructors in io.opentelemetry.sdk.metrics.internal.data with parameters of type Resource Constructor Description AutoValue_ImmutableMetricData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, java.lang.String name, java.lang.String description, java.lang.String unit, MetricDataType type, Data<?> data)
-
Uses of Resource in io.opentelemetry.sdk.metrics.internal.state
Fields in io.opentelemetry.sdk.metrics.internal.state declared as Resource Modifier and Type Field Description private Resource
AutoValue_MeterProviderSharedState. resource
Methods in io.opentelemetry.sdk.metrics.internal.state that return Resource Modifier and Type Method Description Resource
AutoValue_MeterProviderSharedState. getResource()
abstract Resource
MeterProviderSharedState. getResource()
Returns theResource
to attach telemetry to.Methods in io.opentelemetry.sdk.metrics.internal.state with parameters of type Resource Modifier and Type Method Description MetricData
AsynchronousMetricStorage. collect(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long startEpochNanos, long epochNanos)
MetricData
DefaultSynchronousMetricStorage. collect(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long startEpochNanos, long epochNanos)
MetricData
EmptyMetricStorage. collect(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long startEpochNanos, long epochNanos)
MetricData
MetricStorage. collect(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long startEpochNanos, long epochNanos)
Collects the metrics from this storage.static MeterProviderSharedState
MeterProviderSharedState. create(Clock clock, Resource resource, ExemplarFilter exemplarFilter, long startEpochNanos)
Constructors in io.opentelemetry.sdk.metrics.internal.state with parameters of type Resource Constructor Description AutoValue_MeterProviderSharedState(Clock clock, Resource resource, long startEpochNanos, ExemplarFilter exemplarFilter)
-
Uses of Resource in io.opentelemetry.sdk.resources
Subclasses of Resource in io.opentelemetry.sdk.resources Modifier and Type Class Description (package private) class
AutoValue_Resource
Fields in io.opentelemetry.sdk.resources declared as Resource Modifier and Type Field Description private static Resource
Resource. DEFAULT
private static Resource
Resource. EMPTY
private static Resource
Resource. MANDATORY
The MANDATORY Resource instance contains the mandatory attributes that must be used if they are not provided by the Resource that is given to an SDK signal provider.private static Resource
Resource. TELEMETRY_SDK
Methods in io.opentelemetry.sdk.resources that return Resource Modifier and Type Method Description Resource
ResourceBuilder. build()
Create theResource
from this.static Resource
Resource. create(Attributes attributes)
Returns aResource
.static Resource
Resource. create(Attributes attributes, java.lang.String schemaUrl)
Returns aResource
.static Resource
Resource. empty()
Returns an emptyResource
.static Resource
Resource. getDefault()
Returns the defaultResource
.Resource
Resource. merge(Resource other)
Methods in io.opentelemetry.sdk.resources with parameters of type Resource Modifier and Type Method Description Resource
Resource. merge(Resource other)
ResourceBuilder
ResourceBuilder. putAll(Resource resource)
Puts all attributes fromResource
into this. -
Uses of Resource in io.opentelemetry.sdk.trace
Fields in io.opentelemetry.sdk.trace declared as Resource Modifier and Type Field Description private Resource
SdkSpan. resource
private Resource
SdkTracerProviderBuilder. resource
private Resource
TracerSharedState. resource
Methods in io.opentelemetry.sdk.trace that return Resource Modifier and Type Method Description (package private) Resource
SdkSpan. getResource()
Resource
SpanWrapper. getResource()
(package private) Resource
TracerSharedState. getResource()
Methods in io.opentelemetry.sdk.trace with parameters of type Resource Modifier and Type Method Description SdkTracerProviderBuilder
SdkTracerProviderBuilder. addResource(Resource resource)
Merge aResource
with the current.SdkTracerProviderBuilder
SdkTracerProviderBuilder. setResource(Resource resource)
Assign aResource
to be attached to all Spans created by Tracers.(package private) static SdkSpan
SdkSpan. startSpan(SpanContext context, java.lang.String name, InstrumentationScopeInfo instrumentationScopeInfo, SpanKind kind, Span parentSpan, Context parentContext, SpanLimits spanLimits, SpanProcessor spanProcessor, Clock tracerClock, Resource resource, AttributesMap attributes, java.util.List<LinkData> links, int totalRecordedLinks, long userStartEpochNanos)
Creates and starts a span with the given configuration.Constructors in io.opentelemetry.sdk.trace with parameters of type Resource Constructor Description SdkSpan(SpanContext context, java.lang.String name, InstrumentationScopeInfo instrumentationScopeInfo, SpanKind kind, SpanContext parentSpanContext, SpanLimits spanLimits, SpanProcessor spanProcessor, AnchoredClock clock, Resource resource, AttributesMap attributes, java.util.List<LinkData> links, int totalRecordedLinks, long startEpochNanos)
SdkTracerProvider(Clock clock, IdGenerator idsGenerator, Resource resource, java.util.function.Supplier<SpanLimits> spanLimitsSupplier, Sampler sampler, java.util.List<SpanProcessor> spanProcessors, ScopeConfigurator<TracerConfig> tracerConfigurator)
TracerSharedState(Clock clock, IdGenerator idGenerator, Resource resource, java.util.function.Supplier<SpanLimits> spanLimitsSupplier, Sampler sampler, java.util.List<SpanProcessor> spanProcessors)
-
Uses of Resource in io.opentelemetry.sdk.trace.data
Methods in io.opentelemetry.sdk.trace.data that return Resource Modifier and Type Method Description Resource
DelegatingSpanData. getResource()
Resource
SpanData. getResource()
Returns the resource of thisSpan
.
-