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
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. -
Uses of Resource in io.opentelemetry.exporter.internal.otlp
Methods in io.opentelemetry.exporter.internal.otlp with parameters of type Resource -
Uses of Resource in io.opentelemetry.exporter.internal.otlp.logs
Classes in io.opentelemetry.exporter.internal.otlp.logs that implement interfaces with type arguments of type ResourceModifier and TypeClassDescriptionfinal classA Marshaler of ResourceLogs.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) -
Uses of Resource in io.opentelemetry.exporter.internal.otlp.metrics
Classes in io.opentelemetry.exporter.internal.otlp.metrics that implement interfaces with type arguments of type ResourceModifier and TypeClassDescriptionfinal classA Marshaler of ResourceMetrics.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) -
Uses of Resource in io.opentelemetry.exporter.internal.otlp.traces
Classes in io.opentelemetry.exporter.internal.otlp.traces that implement interfaces with type arguments of type ResourceModifier and TypeClassDescriptionfinal classA Marshaler of ResourceSpans.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) -
Uses of Resource in io.opentelemetry.sdk.autoconfigure
Methods in io.opentelemetry.sdk.autoconfigure that return ResourceModifier and TypeMethodDescriptionstatic ResourceResourceConfiguration.createEnvironmentResource()Create aResourcefrom the environment.static ResourceResourceConfiguration.createEnvironmentResource(ConfigProperties config) Create aResourcefrom the environment.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. -
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
Methods in io.opentelemetry.sdk.logs with parameters of type ResourceModifier and TypeMethodDescriptionSdkLoggerProviderBuilder.addResource(Resource resource) Merge aResourcewith the current.SdkLoggerProviderBuilder.setResource(Resource resource) Assign aResourceto be attached to allLogRecordDatacreated byLoggers obtained from theSdkLoggerProvider. -
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
Methods 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. -
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
Methods in io.opentelemetry.sdk.metrics.internal.data with parameters of type ResourceModifier and TypeMethodDescriptionstatic 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. -
Uses of Resource in io.opentelemetry.sdk.metrics.internal.state
Methods in io.opentelemetry.sdk.metrics.internal.state that return ResourceModifier and TypeMethodDescriptionabstract 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) 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) -
Uses of Resource in io.opentelemetry.sdk.resources
Methods 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
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. -
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.