Skip to content

Commit ef818d3

Browse files
Fix spotless formatting
1 parent 8cde0e2 commit ef818d3

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/InstrumenterBuilder.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,25 +52,25 @@ public final class InstrumenterBuilder<REQUEST, RESPONSE> {
5252
private static final SpanSuppressionStrategy spanSuppressionStrategy;
5353

5454
static {
55-
// Try new config first
56-
String value = ConfigPropertiesUtil.getString("otel.instrumentation.common.experimental.span-suppression-strategy");
55+
String value =
56+
ConfigPropertiesUtil.getString(
57+
"otel.instrumentation.common.experimental.span-suppression-strategy");
5758

58-
// If new config is not found → fallback to old config
5959
if (value == null) {
60-
value = ConfigPropertiesUtil.getString("otel.instrumentation.experimental.span-suppression-strategy");
60+
value =
61+
ConfigPropertiesUtil.getString(
62+
"otel.instrumentation.experimental.span-suppression-strategy");
6163

6264
if (value != null) {
6365
logger.warning(
6466
"Using deprecated config: otel.instrumentation.experimental.span-suppression-strategy. "
65-
+ "Use otel.instrumentation.common.experimental.span-suppression-strategy instead."
66-
);
67+
+ "Use otel.instrumentation.common.experimental.span-suppression-strategy instead.");
6768
}
6869
}
6970

7071
spanSuppressionStrategy = SpanSuppressionStrategy.fromConfig(value);
7172
}
7273

73-
7474
final OpenTelemetry openTelemetry;
7575
final String instrumentationName;
7676
SpanNameExtractor<? super REQUEST> spanNameExtractor;

javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/AgentInstaller.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ private static void installEarlyInstrumentation(
284284
}
285285

286286
private static void copyNecessaryConfigToSystemProperties(ConfigProperties config) {
287-
for (String property : asList("otel.instrumentation.common.experimental.span-suppression-strategy")) {
287+
for (String property :
288+
asList("otel.instrumentation.common.experimental.span-suppression-strategy")) {
288289
String value = config.getString(property);
289290
if (value != null) {
290291
System.setProperty(property, value);

0 commit comments

Comments
 (0)