Uses of Class
io.opentelemetry.sdk.resources.Resource
Packages that use Resource
Package
Description
Marshaling framework for serializing data to protobuf format.
Utilities for working with the OTLP format.
Marshaling of OTLP logs.
Marshaling of OTLP metrics.
Marshaling of OTLP traces.
Java SPI (Service Provider Interface) for implementing extensions to SDK autoconfiguration.
The OpenTelemetry SDK implementation of logging.
The data format to model logs for export.
The SDK implementation of metrics.
Classes which form the in-memory representation of the OpenTelemetry metrics data model.
Utilities that facilitate exporting metrics out of
SdkMeterProvider
.Metric aggregators.
The data format to model metrics for export.
API for resource information population.
The OpenTelemetry SDK implementation of tracing.
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 ResourceModifier and TypeFieldDescriptionStatelessMarshalerUtil.Grouper.getResource
StatelessMarshalerUtil.Grouper.result
Methods in io.opentelemetry.exporter.internal.marshal that return types with arguments of type ResourceModifier and TypeMethodDescriptionstatic <T,
U> Map <Resource, Map<InstrumentationScopeInfo, List<U>>> MarshalerUtil.groupByResourceAndScope
(Collection<T> dataList, Function<T, Resource> getResource, Function<T, InstrumentationScopeInfo> getInstrumentationScope, Function<T, U> createMarshaler) Groups SDK items by resource and instrumentation scope.static <T> Map
<Resource, Map<InstrumentationScopeInfo, List<T>>> StatelessMarshalerUtil.groupByResourceAndScope
(Collection<T> dataList, Function<T, Resource> getResource, 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 ResourceModifier and TypeMethodDescriptionstatic <T,
U> Map <Resource, Map<InstrumentationScopeInfo, List<U>>> MarshalerUtil.groupByResourceAndScope
(Collection<T> dataList, Function<T, Resource> getResource, Function<T, InstrumentationScopeInfo> getInstrumentationScope, Function<T, U> createMarshaler) Groups SDK items by resource and instrumentation scope.static <T> Map
<Resource, Map<InstrumentationScopeInfo, List<T>>> StatelessMarshalerUtil.groupByResourceAndScope
(Collection<T> dataList, Function<T, Resource> getResource, Function<T, InstrumentationScopeInfo> getInstrumentationScope, MarshalerContext context) Groups SDK items by resource and instrumentation scope.(package private) void
StatelessMarshalerUtil.Grouper.initialize
(Map<Resource, Map<InstrumentationScopeInfo, List<T>>> result, Function<T, Resource> getResource, Function<T, InstrumentationScopeInfo> getInstrumentationScope, MarshalerContext context) (package private) void
StatelessMarshalerUtil.Grouper.initialize
(Map<Resource, Map<InstrumentationScopeInfo, List<T>>> result, Function<T, Resource> getResource, 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 ResourceModifier and TypeFieldDescriptionprivate static final WeakConcurrentMap
<Resource, ResourceMarshaler> ResourceMarshaler.RESOURCE_MARSHALER_CACHE
Methods in io.opentelemetry.exporter.internal.otlp with parameters of type Resource -
Uses of Resource in io.opentelemetry.exporter.internal.otlp.logs
Fields in io.opentelemetry.exporter.internal.otlp.logs with type parameters of type ResourceModifier and TypeFieldDescriptionprivate Map
<Resource, Map<InstrumentationScopeInfo, List<LogRecordData>>> LowAllocationLogsRequestMarshaler.resourceAndScopeMap
Methods in io.opentelemetry.exporter.internal.otlp.logs that return types with arguments of type ResourceModifier and TypeMethodDescriptionprivate static Map
<Resource, Map<InstrumentationScopeInfo, List<LogRecordData>>> LowAllocationLogsRequestMarshaler.groupByResourceAndScope
(MarshalerContext context, Collection<LogRecordData> logDataList) ResourceLogsMarshaler.groupByResourceAndScope
(Collection<LogRecordData> logs) Methods in io.opentelemetry.exporter.internal.otlp.logs with parameters of type ResourceModifier and TypeMethodDescriptionint
ResourceLogsStatelessMarshaler.getBinarySerializedSize
(Resource resource, Map<InstrumentationScopeInfo, List<LogRecordData>> scopeMap, MarshalerContext context) void
ResourceLogsStatelessMarshaler.writeTo
(Serializer output, Resource resource, Map<InstrumentationScopeInfo, List<LogRecordData>> scopeMap, MarshalerContext context) Method parameters in io.opentelemetry.exporter.internal.otlp.logs with type arguments of type ResourceModifier and TypeMethodDescriptionprivate static int
LowAllocationLogsRequestMarshaler.calculateSize
(MarshalerContext context, Map<Resource, Map<InstrumentationScopeInfo, 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 ResourceModifier and TypeFieldDescriptionprivate Map
<Resource, Map<InstrumentationScopeInfo, List<MetricData>>> LowAllocationMetricsRequestMarshaler.resourceAndScopeMap
Methods in io.opentelemetry.exporter.internal.otlp.metrics that return types with arguments of type ResourceModifier and TypeMethodDescriptionprivate static Map
<Resource, Map<InstrumentationScopeInfo, List<MetricData>>> LowAllocationMetricsRequestMarshaler.groupByResourceAndScope
(MarshalerContext context, Collection<MetricData> metricDataList) ResourceMetricsMarshaler.groupByResourceAndScope
(Collection<MetricData> metricDataList) Methods in io.opentelemetry.exporter.internal.otlp.metrics with parameters of type ResourceModifier and TypeMethodDescriptionint
ResourceMetricsStatelessMarshaler.getBinarySerializedSize
(Resource resource, Map<InstrumentationScopeInfo, List<MetricData>> scopeMap, MarshalerContext context) void
ResourceMetricsStatelessMarshaler.writeTo
(Serializer output, Resource resource, Map<InstrumentationScopeInfo, List<MetricData>> scopeMap, MarshalerContext context) Method parameters in io.opentelemetry.exporter.internal.otlp.metrics with type arguments of type ResourceModifier and TypeMethodDescriptionprivate static int
LowAllocationMetricsRequestMarshaler.calculateSize
(MarshalerContext context, Map<Resource, Map<InstrumentationScopeInfo, 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 ResourceMethods in io.opentelemetry.exporter.internal.otlp.traces that return types with arguments of type ResourceModifier and TypeMethodDescriptionLowAllocationTraceRequestMarshaler.groupByResourceAndScope
(MarshalerContext context, Collection<SpanData> spanDataList) private static Map
<Resource, Map<InstrumentationScopeInfo, List<SpanMarshaler>>> ResourceSpansMarshaler.groupByResourceAndScope
(Collection<SpanData> spanDataList) Methods in io.opentelemetry.exporter.internal.otlp.traces with parameters of type ResourceModifier and TypeMethodDescriptionint
ResourceSpansStatelessMarshaler.getBinarySerializedSize
(Resource resource, Map<InstrumentationScopeInfo, List<SpanData>> scopeMap, MarshalerContext context) void
ResourceSpansStatelessMarshaler.writeTo
(Serializer output, Resource resource, Map<InstrumentationScopeInfo, List<SpanData>> scopeMap, MarshalerContext context) Method parameters in io.opentelemetry.exporter.internal.otlp.traces with type arguments of type ResourceModifier and TypeMethodDescriptionprivate static int
LowAllocationTraceRequestMarshaler.calculateSize
(MarshalerContext context, Map<Resource, Map<InstrumentationScopeInfo, List<SpanData>>> resourceAndScopeMap) -
Uses of Resource in io.opentelemetry.sdk.autoconfigure
Fields in io.opentelemetry.sdk.autoconfigure declared as ResourceModifier and TypeFieldDescriptionprivate final Resource
AutoValue_AutoConfiguredOpenTelemetrySdk.resource
Fields in io.opentelemetry.sdk.autoconfigure with type parameters of type ResourceModifier and TypeFieldDescriptionprivate BiFunction
<? super Resource, ConfigProperties, ? extends Resource> AutoConfiguredOpenTelemetrySdkBuilder.resourceCustomizer
private BiFunction
<? super Resource, ConfigProperties, ? extends Resource> AutoConfiguredOpenTelemetrySdkBuilder.resourceCustomizer
Methods in io.opentelemetry.sdk.autoconfigure that return ResourceModifier and TypeMethodDescription(package private) static Resource
ResourceConfiguration.configureResource
(ConfigProperties config, SpiHelper spiHelper, 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 ResourceModifier and TypeMethodDescription(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 ResourceModifier and TypeMethodDescriptionAutoConfiguredOpenTelemetrySdkBuilder.addResourceCustomizer
(BiFunction<? super Resource, ConfigProperties, ? extends Resource> resourceCustomizer) Adds aBiFunction
to invoke with the default autoconfiguredResource
to allow customization.AutoConfiguredOpenTelemetrySdkBuilder.addResourceCustomizer
(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, BiFunction<? super Resource, ConfigProperties, ? extends Resource> resourceCustomizer) (package private) static Resource
ResourceConfiguration.configureResource
(ConfigProperties config, SpiHelper spiHelper, BiFunction<? super Resource, ConfigProperties, ? extends Resource> resourceCustomizer) Constructors in io.opentelemetry.sdk.autoconfigure with parameters of type ResourceModifierConstructorDescription(package private)
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 ResourceModifier and TypeMethodDescriptionEnvironmentResourceProvider.createResource
(ConfigProperties config) -
Uses of Resource in io.opentelemetry.sdk.autoconfigure.spi
Methods in io.opentelemetry.sdk.autoconfigure.spi that return ResourceMethod parameters in io.opentelemetry.sdk.autoconfigure.spi with type arguments of type ResourceModifier and TypeMethodDescriptionAutoConfigurationCustomizer.addResourceCustomizer
(BiFunction<? super Resource, ConfigProperties, ? extends Resource> resourceCustomizer) Adds aBiFunction
to invoke with the default autoconfiguredResource
to allow customization.AutoConfigurationCustomizer.addResourceCustomizer
(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 ResourceModifier and TypeMethodDescriptionboolean
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 ResourceModifier and TypeFieldDescriptionprivate final Resource
AutoValue_SdkLogRecordData.resource
private final Resource
LoggerSharedState.resource
private Resource
SdkLoggerProviderBuilder.resource
private final Resource
SdkReadWriteLogRecord.resource
Methods in io.opentelemetry.sdk.logs that return ResourceModifier and TypeMethodDescriptionAutoValue_SdkLogRecordData.getResource()
(package private) Resource
LoggerSharedState.getResource()
Methods in io.opentelemetry.sdk.logs with parameters of type ResourceModifier and TypeMethodDescriptionSdkLoggerProviderBuilder.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, 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, String severityText, Value<?> body, AttributesMap attributes) Create the log record with the given configuration.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 ResourceModifierConstructorDescription(package private)
AutoValue_SdkLogRecordData
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long timestampEpochNanos, long observedTimestampEpochNanos, SpanContext spanContext, Severity severity, String severityText, Attributes attributes, int totalAttributeCount, Value<?> bodyValue) (package private)
LoggerSharedState
(Resource resource, Supplier<LogLimits> logLimitsSupplier, LogRecordProcessor logRecordProcessor, Clock clock) (package private)
SdkLoggerProvider
(Resource resource, Supplier<LogLimits> logLimitsSupplier, List<LogRecordProcessor> processors, Clock clock, ScopeConfigurator<LoggerConfig> loggerConfigurator) private
SdkReadWriteLogRecord
(LogLimits logLimits, Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long timestampEpochNanos, long observedTimestampEpochNanos, SpanContext spanContext, Severity severity, 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 -
Uses of Resource in io.opentelemetry.sdk.metrics
Fields in io.opentelemetry.sdk.metrics declared as ResourceMethods in io.opentelemetry.sdk.metrics with parameters of type ResourceModifier and TypeMethodDescriptionSdkMeterProviderBuilder.addResource
(Resource resource) Merge aResource
with the current.SdkMeterProviderBuilder.setResource
(Resource resource) Assign aResource
to be attached to all metrics.Constructors in io.opentelemetry.sdk.metrics with parameters of type ResourceModifierConstructorDescription(package private)
SdkMeterProvider
(List<RegisteredView> registeredViews, IdentityHashMap<MetricReader, CardinalityLimitSelector> metricReaders, 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 -
Uses of Resource in io.opentelemetry.sdk.metrics.export
Methods in io.opentelemetry.sdk.metrics.export with parameters of type Resource -
Uses of Resource in io.opentelemetry.sdk.metrics.internal.aggregator
Methods in io.opentelemetry.sdk.metrics.internal.aggregator that return ResourceMethods in io.opentelemetry.sdk.metrics.internal.aggregator with parameters of type ResourceModifier and TypeMethodDescriptionAggregator.toMetricData
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor metricDescriptor, Collection<T> points, AggregationTemporality temporality) Returns theMetricData
that thisAggregation
will produce.DoubleBase2ExponentialHistogramAggregator.toMetricData
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor metricDescriptor, Collection<ExponentialHistogramPointData> points, AggregationTemporality temporality) DoubleExplicitBucketHistogramAggregator.toMetricData
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor metricDescriptor, Collection<HistogramPointData> pointData, AggregationTemporality temporality) DoubleLastValueAggregator.toMetricData
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor descriptor, Collection<DoublePointData> points, AggregationTemporality temporality) DoubleSumAggregator.toMetricData
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor descriptor, Collection<DoublePointData> points, AggregationTemporality temporality) DropAggregator.toMetricData
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor metricDescriptor, Collection<PointData> points, AggregationTemporality temporality) LongLastValueAggregator.toMetricData
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor descriptor, Collection<LongPointData> points, AggregationTemporality temporality) LongSumAggregator.toMetricData
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, MetricDescriptor descriptor, 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 ResourceMethods in io.opentelemetry.sdk.metrics.internal.data that return ResourceMethods in io.opentelemetry.sdk.metrics.internal.data with parameters of type ResourceModifier and TypeMethodDescription(package private) static ImmutableMetricData
ImmutableMetricData.create
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, String name, String description, String unit, MetricDataType type, Data<?> data) static MetricData
ImmutableMetricData.createDoubleGauge
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, String name, String description, String unit, GaugeData<DoublePointData> data) Returns a new MetricData with aMetricDataType.DOUBLE_GAUGE
type.static MetricData
ImmutableMetricData.createDoubleHistogram
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, String name, String description, String unit, HistogramData data) Returns a new MetricData with aMetricDataType.HISTOGRAM
type.static MetricData
ImmutableMetricData.createDoubleSum
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, String name, String description, String unit, SumData<DoublePointData> data) Returns a new MetricData with aMetricDataType.DOUBLE_SUM
type.static MetricData
ImmutableMetricData.createDoubleSummary
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, String name, String description, String unit, SummaryData data) Returns a new MetricData with aMetricDataType.SUMMARY
type.static MetricData
ImmutableMetricData.createExponentialHistogram
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, String name, String description, String unit, ExponentialHistogramData data) Returns a new MetricData with aMetricDataType.EXPONENTIAL_HISTOGRAM
type.static MetricData
ImmutableMetricData.createLongGauge
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, String name, String description, String unit, GaugeData<LongPointData> data) Returns a new MetricData with aMetricDataType.LONG_GAUGE
type.static MetricData
ImmutableMetricData.createLongSum
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, String name, String description, 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 ResourceModifierConstructorDescription(package private)
AutoValue_ImmutableMetricData
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, String name, String description, 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 ResourceModifier and TypeFieldDescriptionprivate final Resource
AutoValue_MeterProviderSharedState.resource
Methods in io.opentelemetry.sdk.metrics.internal.state that return ResourceModifier and TypeMethodDescriptionAutoValue_MeterProviderSharedState.getResource()
abstract Resource
MeterProviderSharedState.getResource()
Returns theResource
to attach telemetry to.Methods in io.opentelemetry.sdk.metrics.internal.state with parameters of type ResourceModifier and TypeMethodDescriptionAsynchronousMetricStorage.collect
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long startEpochNanos, long epochNanos) DefaultSynchronousMetricStorage.collect
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long startEpochNanos, long epochNanos) EmptyMetricStorage.collect
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long startEpochNanos, long epochNanos) 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 ResourceModifierConstructorDescription(package private)
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.resourcesFields in io.opentelemetry.sdk.resources declared as ResourceModifier and TypeFieldDescriptionprivate static final Resource
Resource.DEFAULT
private static final Resource
Resource.EMPTY
private static final 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 final Resource
Resource.TELEMETRY_SDK
Methods in io.opentelemetry.sdk.resources that return ResourceModifier and TypeMethodDescriptionResourceBuilder.build()
Create theResource
from this.static Resource
Resource.create
(Attributes attributes) Returns aResource
.static Resource
Resource.create
(Attributes attributes, String schemaUrl) Returns aResource
.static Resource
Resource.empty()
Returns an emptyResource
.static Resource
Resource.getDefault()
Returns the defaultResource
.Methods in io.opentelemetry.sdk.resources with parameters of type Resource -
Uses of Resource in io.opentelemetry.sdk.trace
Fields in io.opentelemetry.sdk.trace declared as ResourceModifier and TypeFieldDescriptionprivate final Resource
SdkSpan.resource
private Resource
SdkTracerProviderBuilder.resource
private final Resource
TracerSharedState.resource
Methods in io.opentelemetry.sdk.trace that return ResourceModifier and TypeMethodDescription(package private) Resource
SdkSpan.getResource()
SpanWrapper.getResource()
(package private) Resource
TracerSharedState.getResource()
Methods in io.opentelemetry.sdk.trace with parameters of type ResourceModifier and TypeMethodDescriptionSdkTracerProviderBuilder.addResource
(Resource resource) Merge aResource
with the current.SdkTracerProviderBuilder.setResource
(Resource resource) Assign aResource
to be attached to all Spans created by Tracers.(package private) static SdkSpan
SdkSpan.startSpan
(SpanContext context, String name, InstrumentationScopeInfo instrumentationScopeInfo, SpanKind kind, Span parentSpan, Context parentContext, SpanLimits spanLimits, SpanProcessor spanProcessor, Clock tracerClock, Resource resource, AttributesMap attributes, 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 ResourceModifierConstructorDescriptionprivate
SdkSpan
(SpanContext context, String name, InstrumentationScopeInfo instrumentationScopeInfo, SpanKind kind, SpanContext parentSpanContext, SpanLimits spanLimits, SpanProcessor spanProcessor, AnchoredClock clock, Resource resource, AttributesMap attributes, List<LinkData> links, int totalRecordedLinks, long startEpochNanos) (package private)
SdkTracerProvider
(Clock clock, IdGenerator idsGenerator, Resource resource, Supplier<SpanLimits> spanLimitsSupplier, Sampler sampler, List<SpanProcessor> spanProcessors, ScopeConfigurator<TracerConfig> tracerConfigurator) (package private)
TracerSharedState
(Clock clock, IdGenerator idGenerator, Resource resource, Supplier<SpanLimits> spanLimitsSupplier, Sampler sampler, List<SpanProcessor> spanProcessors) -
Uses of Resource in io.opentelemetry.sdk.trace.data
Methods in io.opentelemetry.sdk.trace.data that return ResourceModifier and TypeMethodDescriptionDelegatingSpanData.getResource()
SpanData.getResource()
Returns the resource of thisSpan
.