Skip to content

Commit 6e586d4

Browse files
anuraagaAnuraag Agrawal
authored andcommitted
Update to xray sampler 1.5 (#79)
1 parent 277ed8c commit 6e586d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dependencyManagement/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ val DEPENDENCIES = listOf(
6969
"commons-logging:commons-logging:1.2",
7070
"com.sparkjava:spark-core:2.9.3",
7171
"com.squareup.okhttp3:okhttp:4.9.1",
72-
"io.opentelemetry.contrib:opentelemetry-aws-xray:1.4.0",
72+
"io.opentelemetry.contrib:opentelemetry-aws-xray:1.5.0-SNAPSHOT",
7373
"io.opentelemetry.javaagent:opentelemetry-javaagent:${if (!TEST_SNAPSHOTS) "1.5.2" else "$otelSnapshotVersion-SNAPSHOT"}",
7474
"net.bytebuddy:byte-buddy:1.11.13"
7575
)

smoke-tests/runner/src/test/java/io/awsobservability/instrumentation/smoketests/runner/SpringBootSmokeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ void remoteSamplingRate() {
227227
var exported = getExported();
228228
// 5 spans per request (1 CLIENT, 2 SERVER, 2 INTERNAL) if sampled. The default sampler is
229229
// around 5%, we do a very rough check that there are no more than 10% sampled.
230-
assertThat(exported).hasSizeLessThanOrEqualTo(numRequests * 5 / 10);
230+
assertThat(exported).isNotEmpty().hasSizeLessThanOrEqualTo(numRequests * 5 / 10);
231231
}
232232

233233
private List<Span> getExported() {

0 commit comments

Comments
 (0)