@@ -10,6 +10,7 @@ import com.datadog.android.api.InternalLogger
10
10
import com.datadog.android.api.SdkCore
11
11
import com.datadog.android.api.feature.Feature
12
12
import com.datadog.android.okhttp.internal.rum.NoOpRumResourceAttributesProvider
13
+ import com.datadog.android.okhttp.internal.utils.traceIdAsHexString
13
14
import com.datadog.android.okhttp.trace.DeterministicTraceSampler
14
15
import com.datadog.android.okhttp.trace.NoOpTracedRequestListener
15
16
import com.datadog.android.okhttp.trace.Tracer
@@ -190,7 +191,7 @@ internal class DatadogInterceptorTest : TracingInterceptorNotSendingSpanTest() {
190
191
val expectedStartAttrs = emptyMap<String , Any ?>()
191
192
val expectedStopAttrs = mapOf (
192
193
RumAttributes .TRACE_ID to fakeTraceIdAsString,
193
- RumAttributes .SPAN_ID to fakeSpanId,
194
+ RumAttributes .SPAN_ID to fakeSpanId.toString() ,
194
195
RumAttributes .RULE_PSR to fakeTracingSampleRate / 100
195
196
) + fakeAttributes
196
197
val mimeType = fakeMediaType?.type
@@ -278,7 +279,7 @@ internal class DatadogInterceptorTest : TracingInterceptorNotSendingSpanTest() {
278
279
val expectedStartAttrs = emptyMap<String , Any ?>()
279
280
val expectedStopAttrs = mapOf (
280
281
RumAttributes .TRACE_ID to fakeTraceIdAsString,
281
- RumAttributes .SPAN_ID to fakeSpanId,
282
+ RumAttributes .SPAN_ID to fakeSpanId.toString() ,
282
283
RumAttributes .RULE_PSR to fakeTracingSampleRate / 100
283
284
) + fakeAttributes
284
285
val kind = RumResourceKind .NATIVE
@@ -319,7 +320,7 @@ internal class DatadogInterceptorTest : TracingInterceptorNotSendingSpanTest() {
319
320
val expectedStartAttrs = emptyMap<String , Any ?>()
320
321
val expectedStopAttrs = mapOf (
321
322
RumAttributes .TRACE_ID to fakeTraceIdAsString,
322
- RumAttributes .SPAN_ID to fakeSpanId,
323
+ RumAttributes .SPAN_ID to fakeSpanId.toString() ,
323
324
RumAttributes .RULE_PSR to fakeTracingSampleRate / 100
324
325
) + fakeAttributes
325
326
val mimeType = fakeMediaType?.type
@@ -366,7 +367,7 @@ internal class DatadogInterceptorTest : TracingInterceptorNotSendingSpanTest() {
366
367
val expectedStartAttrs = emptyMap<String , Any ?>()
367
368
val expectedStopAttrs = mapOf (
368
369
RumAttributes .TRACE_ID to fakeTraceIdAsString,
369
- RumAttributes .SPAN_ID to fakeSpanId,
370
+ RumAttributes .SPAN_ID to fakeSpanId.toString() ,
370
371
RumAttributes .RULE_PSR to fakeTracingSampleRate / 100
371
372
) + fakeAttributes
372
373
val mimeType = fakeMediaType?.type
@@ -462,7 +463,7 @@ internal class DatadogInterceptorTest : TracingInterceptorNotSendingSpanTest() {
462
463
}
463
464
val expectedStopAttrs = mapOf (
464
465
RumAttributes .TRACE_ID to fakeTraceIdAsString,
465
- RumAttributes .SPAN_ID to fakeSpanId,
466
+ RumAttributes .SPAN_ID to fakeSpanId.toString() ,
466
467
RumAttributes .RULE_PSR to fakeTracingSampleRate / 100
467
468
) + fakeAttributes
468
469
val mimeType = fakeMediaType?.type
@@ -511,7 +512,7 @@ internal class DatadogInterceptorTest : TracingInterceptorNotSendingSpanTest() {
511
512
}
512
513
val expectedStopAttrs = mapOf (
513
514
RumAttributes .TRACE_ID to fakeTraceIdAsString,
514
- RumAttributes .SPAN_ID to fakeSpanId,
515
+ RumAttributes .SPAN_ID to fakeSpanId.toString() ,
515
516
RumAttributes .RULE_PSR to fakeTracingSampleRate / 100
516
517
) + fakeAttributes
517
518
val mimeType = fakeMediaType?.type
@@ -668,7 +669,7 @@ internal class DatadogInterceptorTest : TracingInterceptorNotSendingSpanTest() {
668
669
val expectedStartAttrs = emptyMap<String , Any ?>()
669
670
val expectedStopAttrs = mapOf (
670
671
RumAttributes .TRACE_ID to fakeTraceIdAsString,
671
- RumAttributes .SPAN_ID to fakeSpanId,
672
+ RumAttributes .SPAN_ID to fakeSpanId.toString() ,
672
673
RumAttributes .RULE_PSR to fakeTracingSampleRate / 100
673
674
) + fakeAttributes
674
675
val mimeType = fakeMediaType?.type
@@ -770,7 +771,7 @@ internal class DatadogInterceptorTest : TracingInterceptorNotSendingSpanTest() {
770
771
val expectedStartAttrs = emptyMap<String , Any ?>()
771
772
val expectedStopAttrs = mapOf (
772
773
RumAttributes .TRACE_ID to fakeTraceIdAsString,
773
- RumAttributes .SPAN_ID to fakeSpanId,
774
+ RumAttributes .SPAN_ID to fakeSpanId.toString() ,
774
775
RumAttributes .RULE_PSR to fakeTracingSampleRate / 100
775
776
) + fakeAttributes
776
777
val mimeType = fakeMediaType?.type
0 commit comments