Fix new properties
MODIFY
instrumentation/quartz-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/quartz/v2_0/QuartzSingletons.java
instrumentation/quartz-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/quartz/v2_0/QuartzSingletons.java
package io.opentelemetry.javaagent.instrumentation.quartz.v2_0;
import io.opentelemetry.api.GlobalOpenTelemetry;
-import io.opentelemetry.instrumentation.api.internal.ConfigPropertiesUtil;
import io.opentelemetry.instrumentation.quartz.v2_0.QuartzTelemetry;
+import io.opentelemetry.javaagent.bootstrap.internal.InstrumentationConfig;
public final class QuartzSingletons {
public static final QuartzTelemetry TELEMETRY =
QuartzTelemetry.builder(GlobalOpenTelemetry.get())
.setCaptureExperimentalSpanAttributes(
- ConfigPropertiesUtil.getBoolean(
- "otel.instrumentation.quartz.experimental-span-attributes", false))
+ InstrumentationConfig.get()
+ .getBoolean("otel.instrumentation.quartz.experimental-span-attributes", false))
.build();
private QuartzSingletons() {}

MODIFY
instrumentation/spring/spring-batch-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/batch/job/JobSingletons.java
instrumentation/spring/spring-batch-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/batch/job/JobSingletons.java
@@ -12,14 +12,14 @@ import io.opentelemetry.api.common.AttributeKey;
import io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor;
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
import io.opentelemetry.instrumentation.api.instrumenter.InstrumenterBuilder;
-import io.opentelemetry.instrumentation.api.internal.ConfigPropertiesUtil;
+import io.opentelemetry.javaagent.bootstrap.internal.InstrumentationConfig;
import org.springframework.batch.core.JobExecution;
public class JobSingletons {
private static final boolean CAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTES =
- ConfigPropertiesUtil.getBoolean(
- "otel.instrumentation.spring-batch.experimental-span-attributes", false);
+ InstrumentationConfig.get()
+ .getBoolean("otel.instrumentation.spring-batch.experimental-span-attributes", false);
private static final Instrumenter<JobExecution, Void> INSTRUMENTER;

MODIFY
instrumentation/spring/spring-scheduling-3.1/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/scheduling/SpringSchedulingSingletons.java
instrumentation/spring/spring-scheduling-3.1/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/scheduling/SpringSchedulingSingletons.java
@@ -12,13 +12,13 @@ import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
import io.opentelemetry.instrumentation.api.instrumenter.InstrumenterBuilder;
import io.opentelemetry.instrumentation.api.instrumenter.code.CodeAttributesExtractor;
import io.opentelemetry.instrumentation.api.instrumenter.code.CodeSpanNameExtractor;
-import io.opentelemetry.instrumentation.api.internal.ConfigPropertiesUtil;
+import io.opentelemetry.javaagent.bootstrap.internal.InstrumentationConfig;
public final class SpringSchedulingSingletons {
private static final boolean CAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTES =
- ConfigPropertiesUtil.getBoolean(
- "otel.instrumentation.spring-scheduling.experimental-span-attributes", false);
+ InstrumentationConfig.get()
+ .getBoolean("otel.instrumentation.spring-scheduling.experimental-span-attributes", false);
private static final Instrumenter<Runnable, Void> INSTRUMENTER;

Fix new properties (#6633)

Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>