Skip to content

Commit 1dd6f0e

Browse files
committed
RUM-9899: fix test compilation(1 fallen)
1 parent 7afa8e5 commit 1dd6f0e

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

integrations/dd-sdk-android-okhttp/src/test/kotlin/com/datadog/android/okhttp/DatadogInterceptorTest.kt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import com.datadog.android.api.InternalLogger
1010
import com.datadog.android.api.SdkCore
1111
import com.datadog.android.api.feature.Feature
1212
import com.datadog.android.okhttp.internal.rum.NoOpRumResourceAttributesProvider
13+
import com.datadog.android.okhttp.internal.utils.traceIdAsHexString
1314
import com.datadog.android.okhttp.trace.DeterministicTraceSampler
1415
import com.datadog.android.okhttp.trace.NoOpTracedRequestListener
1516
import com.datadog.android.okhttp.trace.Tracer
@@ -190,7 +191,7 @@ internal class DatadogInterceptorTest : TracingInterceptorNotSendingSpanTest() {
190191
val expectedStartAttrs = emptyMap<String, Any?>()
191192
val expectedStopAttrs = mapOf(
192193
RumAttributes.TRACE_ID to fakeTraceIdAsString,
193-
RumAttributes.SPAN_ID to fakeSpanId,
194+
RumAttributes.SPAN_ID to fakeSpanId.toString(),
194195
RumAttributes.RULE_PSR to fakeTracingSampleRate / 100
195196
) + fakeAttributes
196197
val mimeType = fakeMediaType?.type
@@ -278,7 +279,7 @@ internal class DatadogInterceptorTest : TracingInterceptorNotSendingSpanTest() {
278279
val expectedStartAttrs = emptyMap<String, Any?>()
279280
val expectedStopAttrs = mapOf(
280281
RumAttributes.TRACE_ID to fakeTraceIdAsString,
281-
RumAttributes.SPAN_ID to fakeSpanId,
282+
RumAttributes.SPAN_ID to fakeSpanId.toString(),
282283
RumAttributes.RULE_PSR to fakeTracingSampleRate / 100
283284
) + fakeAttributes
284285
val kind = RumResourceKind.NATIVE
@@ -319,7 +320,7 @@ internal class DatadogInterceptorTest : TracingInterceptorNotSendingSpanTest() {
319320
val expectedStartAttrs = emptyMap<String, Any?>()
320321
val expectedStopAttrs = mapOf(
321322
RumAttributes.TRACE_ID to fakeTraceIdAsString,
322-
RumAttributes.SPAN_ID to fakeSpanId,
323+
RumAttributes.SPAN_ID to fakeSpanId.toString(),
323324
RumAttributes.RULE_PSR to fakeTracingSampleRate / 100
324325
) + fakeAttributes
325326
val mimeType = fakeMediaType?.type
@@ -366,7 +367,7 @@ internal class DatadogInterceptorTest : TracingInterceptorNotSendingSpanTest() {
366367
val expectedStartAttrs = emptyMap<String, Any?>()
367368
val expectedStopAttrs = mapOf(
368369
RumAttributes.TRACE_ID to fakeTraceIdAsString,
369-
RumAttributes.SPAN_ID to fakeSpanId,
370+
RumAttributes.SPAN_ID to fakeSpanId.toString(),
370371
RumAttributes.RULE_PSR to fakeTracingSampleRate / 100
371372
) + fakeAttributes
372373
val mimeType = fakeMediaType?.type
@@ -462,7 +463,7 @@ internal class DatadogInterceptorTest : TracingInterceptorNotSendingSpanTest() {
462463
}
463464
val expectedStopAttrs = mapOf(
464465
RumAttributes.TRACE_ID to fakeTraceIdAsString,
465-
RumAttributes.SPAN_ID to fakeSpanId,
466+
RumAttributes.SPAN_ID to fakeSpanId.toString(),
466467
RumAttributes.RULE_PSR to fakeTracingSampleRate / 100
467468
) + fakeAttributes
468469
val mimeType = fakeMediaType?.type
@@ -511,7 +512,7 @@ internal class DatadogInterceptorTest : TracingInterceptorNotSendingSpanTest() {
511512
}
512513
val expectedStopAttrs = mapOf(
513514
RumAttributes.TRACE_ID to fakeTraceIdAsString,
514-
RumAttributes.SPAN_ID to fakeSpanId,
515+
RumAttributes.SPAN_ID to fakeSpanId.toString(),
515516
RumAttributes.RULE_PSR to fakeTracingSampleRate / 100
516517
) + fakeAttributes
517518
val mimeType = fakeMediaType?.type
@@ -668,7 +669,7 @@ internal class DatadogInterceptorTest : TracingInterceptorNotSendingSpanTest() {
668669
val expectedStartAttrs = emptyMap<String, Any?>()
669670
val expectedStopAttrs = mapOf(
670671
RumAttributes.TRACE_ID to fakeTraceIdAsString,
671-
RumAttributes.SPAN_ID to fakeSpanId,
672+
RumAttributes.SPAN_ID to fakeSpanId.toString(),
672673
RumAttributes.RULE_PSR to fakeTracingSampleRate / 100
673674
) + fakeAttributes
674675
val mimeType = fakeMediaType?.type
@@ -770,7 +771,7 @@ internal class DatadogInterceptorTest : TracingInterceptorNotSendingSpanTest() {
770771
val expectedStartAttrs = emptyMap<String, Any?>()
771772
val expectedStopAttrs = mapOf(
772773
RumAttributes.TRACE_ID to fakeTraceIdAsString,
773-
RumAttributes.SPAN_ID to fakeSpanId,
774+
RumAttributes.SPAN_ID to fakeSpanId.toString(),
774775
RumAttributes.RULE_PSR to fakeTracingSampleRate / 100
775776
) + fakeAttributes
776777
val mimeType = fakeMediaType?.type

0 commit comments

Comments
 (0)