Skip to content

Commit afc8869

Browse files
committed
RUM-9899: suppressing InvalidStringFormat for now
1 parent 426398b commit afc8869

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

integrations/dd-sdk-android-okhttp/src/main/kotlin/com/datadog/android/okhttp/trace/TracingInterceptor.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,14 +485,16 @@ internal constructor(
485485
val spanId = span.context().spanId.toString()
486486
requestBuilder.addHeader(
487487
W3C_TRACEPARENT_KEY,
488-
@Suppress("UnsafeThirdPartyFunctionCall") // Format string is static
488+
// TODO RUM-11445 InvalidStringFormat false alarm
489+
@Suppress("UnsafeThirdPartyFunctionCall", "InvalidStringFormat") // Format string is static
489490
W3C_TRACEPARENT_DROP_SAMPLING_DECISION.format(
490491
traceId.padStart(length = W3C_TRACE_ID_LENGTH, padChar = '0'),
491492
spanId.padStart(length = W3C_PARENT_ID_LENGTH, padChar = '0')
492493
)
493494
)
494495
// TODO RUM-2121 3rd party vendor information will be erased
495-
@Suppress("UnsafeThirdPartyFunctionCall") // Format string is static
496+
// TODO RUM-11445 InvalidStringFormat false alarm
497+
@Suppress("UnsafeThirdPartyFunctionCall", "InvalidStringFormat") // Format string is static
496498
var traceStateHeader = W3C_TRACESTATE_DROP_SAMPLING_DECISION
497499
.format(spanId.padStart(length = W3C_PARENT_ID_LENGTH, padChar = '0'))
498500
if (traceOrigin != null) {

0 commit comments

Comments
 (0)