Skip to content

Commit 3a684f0

Browse files
authored
Merge pull request #2499 from DataDog/nogorodnikov/fix-flaky-head-based-sampling-test
Fix flaky test in Head-based sampling test suite
2 parents 12724d3 + f1a299c commit 3a684f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reliability/single-fit/okhttp/src/test/kotlin/com/datadog/android/okhttp/HeadBasedSamplingTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,8 @@ class HeadBasedSamplingTest {
470470
)
471471
hasMostSignificant64BitsTraceId(mostSignificantTraceId)
472472
hasSpanId(spanId.toLong().toHexString())
473-
hasParentId(localSpanId)
473+
// OpenTelemetry Span IDs are always padded with 0
474+
hasParentId(localSpanId.dropWhile { it == '0' })
474475
hasVersion(stubSdkCore.getDatadogContext().version)
475476
hasSource(stubSdkCore.getDatadogContext().source)
476477
hasTracerVersion(stubSdkCore.getDatadogContext().sdkVersion)

0 commit comments

Comments
 (0)