Skip to content

Commit 72f8dfb

Browse files
authored
Updated spotless klint and ran spotless (#507)
1 parent 9652f01 commit 72f8dfb

File tree

13 files changed

+23
-19
lines changed

13 files changed

+23
-19
lines changed

awsagentprovider/src/test/java/software/amazon/opentelemetry/javaagent/providers/AwsTracerConfigurerTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ private AutoConfiguredOpenTelemetrySdkBuilder createSdkBuilder() {
4343
.addPropertiesSupplier(() -> singletonMap("otel.traces.exporter", "none"))
4444
.addPropertiesSupplier(() -> singletonMap("otel.logs.exporter", "none"));
4545
}
46+
4647
// The probability of this passing once without correct IDs is low, 20 times is inconceivable.
4748
@RepeatedTest(20)
4849
void providerGeneratesXrayIds() {

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ allprojects {
6868

6969
spotless {
7070
kotlinGradle {
71-
ktlint("0.40.0").userData(mapOf("indent_size" to "2", "continuation_indent_size" to "2"))
71+
ktlint("0.48.0").userData(mapOf("indent_size" to "2", "continuation_indent_size" to "2"))
7272

7373
// Doesn't support pluginManagement block
7474
targetExclude("settings.gradle.kts")
@@ -184,7 +184,7 @@ allprojects {
184184
relocate("io.opentelemetry.extension.aws", "io.opentelemetry.javaagent.shaded.io.opentelemetry.extension.aws")
185185
relocate(
186186
"io.opentelemetry.extension.kotlin",
187-
"io.opentelemetry.javaagent.shaded.io.opentelemetry.extension.kotlin"
187+
"io.opentelemetry.javaagent.shaded.io.opentelemetry.extension.kotlin",
188188
)
189189
}
190190
}
@@ -224,7 +224,7 @@ allprojects {
224224
pom {
225225
name.set("AWS Distro for OpenTelemetry Java Agent")
226226
description.set(
227-
"The Amazon Web Services distribution of the OpenTelemetry Java Instrumentation."
227+
"The Amazon Web Services distribution of the OpenTelemetry Java Instrumentation.",
228228
)
229229
url.set("https:/github.com/aws-observability/aws-otel-java-instrumentation")
230230

dependencyManagement/build.gradle.kts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,28 +45,28 @@ val DEPENDENCY_BOMS = listOf(
4545
"org.junit:junit-bom:5.10.0",
4646
"org.springframework.boot:spring-boot-dependencies:2.7.14",
4747
"org.testcontainers:testcontainers-bom:1.18.3",
48-
"software.amazon.awssdk:bom:2.20.122"
48+
"software.amazon.awssdk:bom:2.20.122",
4949
)
5050

5151
val DEPENDENCY_SETS = listOf(
5252
DependencySet(
5353
"org.assertj",
5454
"3.24.2",
55-
listOf("assertj-core")
55+
listOf("assertj-core"),
5656
),
5757
DependencySet(
5858
"org.curioswitch.curiostack",
5959
"2.2.0",
60-
listOf("protobuf-jackson")
60+
listOf("protobuf-jackson"),
6161
),
6262
DependencySet(
6363
"org.slf4j",
6464
"1.7.36",
6565
listOf(
6666
"slf4j-api",
67-
"slf4j-simple"
68-
)
69-
)
67+
"slf4j-simple",
68+
),
69+
),
7070
)
7171

7272
val DEPENDENCIES = listOf(
@@ -77,7 +77,7 @@ val DEPENDENCIES = listOf(
7777
"io.opentelemetry.contrib:opentelemetry-aws-resources:1.28.0-alpha",
7878
"io.opentelemetry.proto:opentelemetry-proto:1.0.0-alpha",
7979
"io.opentelemetry.javaagent:opentelemetry-javaagent:$otelJavaAgentVersion",
80-
"net.bytebuddy:byte-buddy:1.14.6"
80+
"net.bytebuddy:byte-buddy:1.14.6",
8181
)
8282

8383
javaPlatform {

otelagent/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,14 @@ jib {
136136
"gcr.io/distroless/java17-debian11:debug",
137137
"public.ecr.aws/aws-otel-test/aws-opentelemetry-java-base:alpha",
138138
localDocker = false,
139-
multiPlatform = !rootProject.property("localDocker")!!.equals("true")
139+
multiPlatform = !rootProject.property("localDocker")!!.equals("true"),
140140
)
141141

142142
container {
143143
appRoot = "/aws-observability"
144144
setEntrypoint("INHERIT")
145145
environment = mapOf(
146-
"JAVA_TOOL_OPTIONS" to "-javaagent:/aws-observability/classpath/aws-opentelemetry-agent-$version.jar"
146+
"JAVA_TOOL_OPTIONS" to "-javaagent:/aws-observability/classpath/aws-opentelemetry-agent-$version.jar",
147147
)
148148
}
149149
containerizingMode = "packaged"

sample-apps/spark-awssdkv1/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jib {
2626
"public.ecr.aws/aws-otel-test/aws-otel-java-spark-awssdkv1",
2727
localDocker = rootProject.property("localDocker")!!.equals("true"),
2828
multiPlatform = !rootProject.property("localDocker")!!.equals("true"),
29-
tags = setOf("latest", "${System.getenv("COMMIT_HASH")}")
29+
tags = setOf("latest", "${System.getenv("COMMIT_HASH")}"),
3030
)
3131
}
3232

sample-apps/spark-awssdkv1/src/main/java/com/amazon/sampleapp/MetricEmitter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ public void updateLastLatencyMetric(Long returnTime, String apiName, String stat
185185
apiNameValue = apiName;
186186
statusCodeValue = statusCode;
187187
}
188+
188189
/**
189190
* update actual queue size, it will be collected by UpDownSumObserver
190191
*

sample-apps/spark/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jib {
3131
"public.ecr.aws/aws-otel-test/aws-otel-java-spark",
3232
localDocker = rootProject.property("localDocker")!!.equals("true"),
3333
multiPlatform = !rootProject.property("localDocker")!!.equals("true"),
34-
tags = setOf("latest", "${System.getenv("COMMIT_HASH")}")
34+
tags = setOf("latest", "${System.getenv("COMMIT_HASH")}"),
3535
)
3636
}
3737

@@ -49,7 +49,7 @@ tasks {
4949
"public.ecr.aws/aws-otel-test/aws-otel-java-spark-without-auto-instrumentation-agent",
5050
localDocker = false,
5151
multiPlatform = !rootProject.property("localDocker")!!.equals("true"),
52-
tags = setOf("latest", "${System.getenv("COMMIT_HASH")}")
52+
tags = setOf("latest", "${System.getenv("COMMIT_HASH")}"),
5353
)
5454
setJibExtension(j)
5555
}

sample-apps/spark/src/main/java/com/amazon/sampleapp/MetricEmitter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ public void updateLastLatencyMetric(Long returnTime, String apiName, String stat
185185
apiNameValue = apiName;
186186
statusCodeValue = statusCode;
187187
}
188+
188189
/**
189190
* update actual queue size, it will be collected by UpDownSumObserver
190191
*

sample-apps/springboot/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jib {
2121
"public.ecr.aws/aws-otel-test/aws-otel-java-springboot",
2222
rootProject.property("localDocker")!!.equals("true"),
2323
!rootProject.property("localDocker")!!.equals("true"),
24-
tags = setOf("latest", "${System.getenv("COMMIT_HASH")}")
24+
tags = setOf("latest", "${System.getenv("COMMIT_HASH")}"),
2525
)
2626
}
2727

sample-apps/springboot/src/main/java/com/amazon/sampleapp/MetricEmitter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ public void updateLastLatencyMetric(Long returnTime, String apiName, String stat
185185
apiNameValue = apiName;
186186
statusCodeValue = statusCode;
187187
}
188+
188189
/**
189190
* update actual queue size, it will be collected by UpDownSumObserver
190191
*

0 commit comments

Comments
 (0)