Skip to content

Commit

Permalink
Fix new properties (open-telemetry#6633)
Browse files Browse the repository at this point in the history
Co-authored-by: Lauri Tulmin <[email protected]>
  • Loading branch information
2 people authored and LironKS committed Dec 4, 2022
1 parent c24a6ed commit d496f3a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
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() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
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;

Expand Down

0 comments on commit d496f3a

Please sign in to comment.