Skip to content

Commit

Permalink
Update to xray sampler 1.5 (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga authored and Anuraag Agrawal committed Sep 6, 2021
1 parent 277ed8c commit 6e586d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dependencyManagement/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ val DEPENDENCIES = listOf(
"commons-logging:commons-logging:1.2",
"com.sparkjava:spark-core:2.9.3",
"com.squareup.okhttp3:okhttp:4.9.1",
"io.opentelemetry.contrib:opentelemetry-aws-xray:1.4.0",
"io.opentelemetry.contrib:opentelemetry-aws-xray:1.5.0-SNAPSHOT",
"io.opentelemetry.javaagent:opentelemetry-javaagent:${if (!TEST_SNAPSHOTS) "1.5.2" else "$otelSnapshotVersion-SNAPSHOT"}",
"net.bytebuddy:byte-buddy:1.11.13"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ void remoteSamplingRate() {
var exported = getExported();
// 5 spans per request (1 CLIENT, 2 SERVER, 2 INTERNAL) if sampled. The default sampler is
// around 5%, we do a very rough check that there are no more than 10% sampled.
assertThat(exported).hasSizeLessThanOrEqualTo(numRequests * 5 / 10);
assertThat(exported).isNotEmpty().hasSizeLessThanOrEqualTo(numRequests * 5 / 10);
}

private List<Span> getExported() {
Expand Down

0 comments on commit 6e586d4

Please sign in to comment.