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.getResourceStatelessMarshalerUtil.Grouper.resultMethods 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) voidStatelessMarshalerUtil.Grouper.initialize(Map<Resource, Map<InstrumentationScopeInfo, List<T>>> result, Function<T, Resource> getResource, Function<T, InstrumentationScopeInfo> getInstrumentationScope, MarshalerContext context) (package private) voidStatelessMarshalerUtil.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_CACHEMethods 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.resourceAndScopeMapMethods 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 TypeMethodDescriptionintResourceLogsStatelessMarshaler.getBinarySerializedSize(Resource resource, Map<InstrumentationScopeInfo, List<LogRecordData>> scopeMap, MarshalerContext context) voidResourceLogsStatelessMarshaler.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 intLowAllocationLogsRequestMarshaler.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.resourceAndScopeMapMethods 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 TypeMethodDescriptionintResourceMetricsStatelessMarshaler.getBinarySerializedSize(Resource resource, Map<InstrumentationScopeInfo, List<MetricData>> scopeMap, MarshalerContext context) voidResourceMetricsStatelessMarshaler.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 intLowAllocationMetricsRequestMarshaler.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 TypeMethodDescriptionintResourceSpansStatelessMarshaler.getBinarySerializedSize(Resource resource, Map<InstrumentationScopeInfo, List<SpanData>> scopeMap, MarshalerContext context) voidResourceSpansStatelessMarshaler.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 intLowAllocationTraceRequestMarshaler.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 ResourceAutoValue_AutoConfiguredOpenTelemetrySdk.resourceFields in io.opentelemetry.sdk.autoconfigure with type parameters of type ResourceModifier and TypeFieldDescriptionprivate BiFunction<? super Resource, ConfigProperties, ? extends Resource> AutoConfiguredOpenTelemetrySdkBuilder.resourceCustomizerprivate BiFunction<? super Resource, ConfigProperties, ? extends Resource> AutoConfiguredOpenTelemetrySdkBuilder.resourceCustomizerMethods in io.opentelemetry.sdk.autoconfigure that return ResourceModifier and TypeMethodDescription(package private) static ResourceResourceConfiguration.configureResource(ConfigProperties config, SpiHelper spiHelper, BiFunction<? super Resource, ConfigProperties, ? extends Resource> resourceCustomizer) static ResourceResourceConfiguration.createEnvironmentResource()Create aResourcefrom the environment.static ResourceResourceConfiguration.createEnvironmentResource(ConfigProperties config) Create aResourcefrom the environment.(package private) static ResourceResourceConfiguration.filterAttributes(Resource resource, ConfigProperties configProperties) (package private) abstract ResourceAutoConfiguredOpenTelemetrySdk.getResource()Returns theResourcethat was auto-configured.(package private) ResourceAutoValue_AutoConfiguredOpenTelemetrySdk.getResource()Methods in io.opentelemetry.sdk.autoconfigure with parameters of type ResourceModifier and TypeMethodDescription(package private) static AutoConfiguredOpenTelemetrySdkAutoConfiguredOpenTelemetrySdk.create(OpenTelemetrySdk sdk, Resource resource, ConfigProperties config, StructuredConfigProperties structuredConfigProperties) (package private) static ResourceResourceConfiguration.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 aBiFunctionto invoke with the default autoconfiguredResourceto allow customization.AutoConfiguredOpenTelemetrySdkBuilder.addResourceCustomizer(BiFunction<? super Resource, ConfigProperties, ? extends Resource> resourceCustomizer) Adds aBiFunctionto invoke with the default autoconfiguredResourceto allow customization.(package private) static ResourceResourceConfiguration.configureResource(ConfigProperties config, SpiHelper spiHelper, BiFunction<? super Resource, ConfigProperties, ? extends Resource> resourceCustomizer) (package private) static ResourceResourceConfiguration.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 aBiFunctionto invoke with the default autoconfiguredResourceto allow customization.AutoConfigurationCustomizer.addResourceCustomizer(BiFunction<? super Resource, ConfigProperties, ? extends Resource> resourceCustomizer) Adds aBiFunctionto invoke with the default autoconfiguredResourceto 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 TypeMethodDescriptionbooleanConditionalResourceProvider.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 ResourceAutoValue_SdkLogRecordData.resourceprivate final ResourceLoggerSharedState.resourceprivate ResourceSdkLoggerProviderBuilder.resourceprivate final ResourceSdkReadWriteLogRecord.resourceMethods in io.opentelemetry.sdk.logs that return ResourceModifier and TypeMethodDescriptionAutoValue_SdkLogRecordData.getResource()(package private) ResourceLoggerSharedState.getResource()Methods in io.opentelemetry.sdk.logs with parameters of type ResourceModifier and TypeMethodDescriptionSdkLoggerProviderBuilder.addResource(Resource resource) Merge aResourcewith the current.(package private) static SdkLogRecordDataSdkLogRecordData.create(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long epochNanos, long observedEpochNanos, SpanContext spanContext, Severity severity, String severityText, Value<?> body, Attributes attributes, int totalAttributeCount) (package private) static SdkReadWriteLogRecordSdkReadWriteLogRecord.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 aResourceto be attached to allLogRecordDatacreated byLoggers 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) privateSdkReadWriteLogRecord(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 aResourcewith the current.SdkMeterProviderBuilder.setResource(Resource resource) Assign aResourceto 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 theMetricDatathat thisAggregationwill 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 ImmutableMetricDataImmutableMetricData.create(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, String name, String description, String unit, MetricDataType type, Data<?> data) static MetricDataImmutableMetricData.createDoubleGauge(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, String name, String description, String unit, GaugeData<DoublePointData> data) Returns a new MetricData with aMetricDataType.DOUBLE_GAUGEtype.static MetricDataImmutableMetricData.createDoubleHistogram(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, String name, String description, String unit, HistogramData data) Returns a new MetricData with aMetricDataType.HISTOGRAMtype.static MetricDataImmutableMetricData.createDoubleSum(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, String name, String description, String unit, SumData<DoublePointData> data) Returns a new MetricData with aMetricDataType.DOUBLE_SUMtype.static MetricDataImmutableMetricData.createDoubleSummary(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, String name, String description, String unit, SummaryData data) Returns a new MetricData with aMetricDataType.SUMMARYtype.static MetricDataImmutableMetricData.createExponentialHistogram(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, String name, String description, String unit, ExponentialHistogramData data) Returns a new MetricData with aMetricDataType.EXPONENTIAL_HISTOGRAMtype.static MetricDataImmutableMetricData.createLongGauge(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, String name, String description, String unit, GaugeData<LongPointData> data) Returns a new MetricData with aMetricDataType.LONG_GAUGEtype.static MetricDataImmutableMetricData.createLongSum(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, String name, String description, String unit, SumData<LongPointData> data) Returns a new MetricData with aMetricDataType.LONG_SUMtype.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 ResourceAutoValue_MeterProviderSharedState.resourceMethods in io.opentelemetry.sdk.metrics.internal.state that return ResourceModifier and TypeMethodDescriptionAutoValue_MeterProviderSharedState.getResource()abstract ResourceMeterProviderSharedState.getResource()Returns theResourceto 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 MeterProviderSharedStateMeterProviderSharedState.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 ResourceResource.DEFAULTprivate static final ResourceResource.EMPTYprivate static final ResourceResource.MANDATORYThe 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 ResourceResource.TELEMETRY_SDKMethods in io.opentelemetry.sdk.resources that return ResourceModifier and TypeMethodDescriptionResourceBuilder.build()Create theResourcefrom this.static ResourceResource.create(Attributes attributes) Returns aResource.static ResourceResource.create(Attributes attributes, String schemaUrl) Returns aResource.static ResourceResource.empty()Returns an emptyResource.static ResourceResource.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 ResourceSdkSpan.resourceprivate ResourceSdkTracerProviderBuilder.resourceprivate final ResourceTracerSharedState.resourceMethods in io.opentelemetry.sdk.trace that return ResourceModifier and TypeMethodDescription(package private) ResourceSdkSpan.getResource()SpanWrapper.getResource()(package private) ResourceTracerSharedState.getResource()Methods in io.opentelemetry.sdk.trace with parameters of type ResourceModifier and TypeMethodDescriptionSdkTracerProviderBuilder.addResource(Resource resource) Merge aResourcewith the current.SdkTracerProviderBuilder.setResource(Resource resource) Assign aResourceto be attached to all Spans created by Tracers.(package private) static SdkSpanSdkSpan.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 ResourceModifierConstructorDescriptionprivateSdkSpan(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.