diff --git a/sdk/logs/src/main/java/io/opentelemetry/sdk/logs/SdkLoggerProviderBuilder.java b/sdk/logs/src/main/java/io/opentelemetry/sdk/logs/SdkLoggerProviderBuilder.java index 87fec0c8d84..94d990c8a4b 100644 --- a/sdk/logs/src/main/java/io/opentelemetry/sdk/logs/SdkLoggerProviderBuilder.java +++ b/sdk/logs/src/main/java/io/opentelemetry/sdk/logs/SdkLoggerProviderBuilder.java @@ -16,6 +16,7 @@ import io.opentelemetry.sdk.internal.ScopeConfiguratorBuilder; import io.opentelemetry.sdk.logs.data.LogRecordData; import io.opentelemetry.sdk.logs.internal.LoggerConfig; +import io.opentelemetry.sdk.logs.internal.SdkLoggerProviderUtil; import io.opentelemetry.sdk.resources.Resource; import java.util.ArrayList; import java.util.List; @@ -111,6 +112,9 @@ public SdkLoggerProviderBuilder setClock(Clock clock) { * Set the logger configurator, which computes {@link LoggerConfig} for each {@link * InstrumentationScopeInfo}. * + *
This method is experimental so not public. You may reflectively call it using {@link + * SdkLoggerProviderUtil#setLoggerConfigurator(SdkLoggerProviderBuilder, ScopeConfigurator)}. + * *
Overrides any matchers added via {@link #addLoggerConfiguratorCondition(Predicate, * LoggerConfig)}. * @@ -126,6 +130,10 @@ SdkLoggerProviderBuilder setLoggerConfigurator( * Adds a condition to the logger configurator, which computes {@link LoggerConfig} for each * {@link InstrumentationScopeInfo}. * + *
This method is experimental so not public. You may reflectively call it using {@link + * SdkLoggerProviderUtil#addLoggerConfiguratorCondition(SdkLoggerProviderBuilder, Predicate, + * LoggerConfig)}. + * *
Applies after any previously added conditions. * *
If {@link #setLoggerConfigurator(ScopeConfigurator)} was previously called, this condition diff --git a/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/SdkMeterProviderBuilder.java b/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/SdkMeterProviderBuilder.java index 9317c26e6c9..57895d45035 100644 --- a/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/SdkMeterProviderBuilder.java +++ b/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/SdkMeterProviderBuilder.java @@ -83,7 +83,7 @@ public SdkMeterProviderBuilder addResource(Resource resource) { /** * Assign an {@link ExemplarFilter} for all metrics created by Meters. * - *
Note: not currently stable but available for experimental use via {@link + *
This method is experimental so not public. You may reflectively call it using {@link * SdkMeterProviderUtil#setExemplarFilter(SdkMeterProviderBuilder, ExemplarFilter)}. */ SdkMeterProviderBuilder setExemplarFilter(ExemplarFilter filter) { @@ -137,6 +137,10 @@ public SdkMeterProviderBuilder registerMetricReader(MetricReader reader) { /** * Registers a {@link MetricReader} with a {@link CardinalityLimitSelector}. * + *
This method is experimental so not public. You may reflectively call it using {@link + * SdkMeterProviderUtil#registerMetricReaderWithCardinalitySelector(SdkMeterProviderBuilder, + * MetricReader, CardinalityLimitSelector)} + * *
Note: not currently stable but available for experimental use via {@link * SdkMeterProviderUtil#registerMetricReaderWithCardinalitySelector(SdkMeterProviderBuilder, * MetricReader, CardinalityLimitSelector)}. @@ -161,6 +165,9 @@ public SdkMeterProviderBuilder registerMetricProducer(MetricProducer metricProdu * Set the meter configurator, which computes {@link MeterConfig} for each {@link * InstrumentationScopeInfo}. * + *
This method is experimental so not public. You may reflectively call it using {@link + * SdkMeterProviderUtil#setMeterConfigurator(SdkMeterProviderBuilder, ScopeConfigurator)}. + * *
Overrides any matchers added via {@link #addMeterConfiguratorCondition(Predicate,
* MeterConfig)}.
*
@@ -175,6 +182,10 @@ SdkMeterProviderBuilder setMeterConfigurator(ScopeConfigurator This method is experimental so not public. You may reflectively call it using {@link
+ * SdkMeterProviderUtil#addMeterConfiguratorCondition(SdkMeterProviderBuilder, Predicate,
+ * MeterConfig)}.
+ *
* Applies after any previously added conditions.
*
* If {@link #setMeterConfigurator(ScopeConfigurator)} was previously called, this condition
diff --git a/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/ViewBuilder.java b/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/ViewBuilder.java
index 26996df4bdf..8172abce8ca 100644
--- a/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/ViewBuilder.java
+++ b/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/ViewBuilder.java
@@ -94,6 +94,10 @@ public ViewBuilder setAttributeFilter(Predicate This method is experimental so not public. You may reflectively call it using {@link
+ * SdkMeterProviderUtil#appendFilteredBaggageAttributes(ViewBuilder, Predicate)}, {@link
+ * SdkMeterProviderUtil#appendAllBaggageAttributes(ViewBuilder)}.
+ *
* Note: not currently stable but additional attribute processors can be configured via {@link
* SdkMeterProviderUtil#appendAllBaggageAttributes(ViewBuilder)}.
*/
@@ -106,6 +110,9 @@ ViewBuilder addAttributesProcessor(AttributesProcessor attributesProcessor) {
/**
* Set the cardinality limit.
*
+ * This method is experimental so not public. You may reflectively call it using {@link
+ * SdkMeterProviderUtil#setCardinalityLimit(ViewBuilder, int)}
+ *
* Note: not currently stable but cardinality limit can be configured via
* SdkMeterProviderUtil#setCardinalityLimit(ViewBuilder, int).
*
diff --git a/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/SdkTracerProviderBuilder.java b/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/SdkTracerProviderBuilder.java
index f84c7f79855..531cd1a6384 100644
--- a/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/SdkTracerProviderBuilder.java
+++ b/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/SdkTracerProviderBuilder.java
@@ -12,6 +12,7 @@
import io.opentelemetry.sdk.internal.ScopeConfigurator;
import io.opentelemetry.sdk.internal.ScopeConfiguratorBuilder;
import io.opentelemetry.sdk.resources.Resource;
+import io.opentelemetry.sdk.trace.internal.SdkTracerProviderUtil;
import io.opentelemetry.sdk.trace.internal.TracerConfig;
import io.opentelemetry.sdk.trace.samplers.Sampler;
import java.util.ArrayList;
@@ -158,6 +159,9 @@ public SdkTracerProviderBuilder addSpanProcessor(SpanProcessor spanProcessor) {
* Set the tracer configurator, which computes {@link TracerConfig} for each {@link
* InstrumentationScopeInfo}.
*
+ * This method is experimental so not public. You may reflectively call it using {@link
+ * SdkTracerProviderUtil#setTracerConfigurator(SdkTracerProviderBuilder, ScopeConfigurator)}.
+ *
* Overrides any matchers added via {@link #addTracerConfiguratorCondition(Predicate,
* TracerConfig)}.
*
@@ -173,6 +177,10 @@ SdkTracerProviderBuilder setTracerConfigurator(
* Adds a condition to the tracer configurator, which computes {@link TracerConfig} for each
* {@link InstrumentationScopeInfo}.
*
+ * This method is experimental so not public. You may reflectively call it using {@link
+ * SdkTracerProviderUtil#addTracerConfiguratorCondition(SdkTracerProviderBuilder, Predicate,
+ * TracerConfig)}.
+ *
* Applies after any previously added conditions.
*
* If {@link #setTracerConfigurator(ScopeConfigurator)} was previously called, this condition