Describe the bug
io.opentracing.Span is in the API of dd-sdk-android-okhttp, see here:
|
public static final fun parentSpan (Lokhttp3/Request$Builder;Lio/opentracing/Span;)Lokhttp3/Request$Builder; |
but the pom/module file doesn't mention io.opentracing:opentracing-api:
see https://repo1.maven.org/maven2/com/datadoghq/dd-sdk-android-okhttp/2.17.0/dd-sdk-android-okhttp-2.17.0.pom
and
see https://repo1.maven.org/maven2/com/datadoghq/dd-sdk-android-okhttp/2.17.0/dd-sdk-android-okhttp-2.17.0.module
Kotlin 2.1.0 is more picky about missing deps.
Reproduction steps
Use Kotlin 2.1.0, and use dd-sdk-android-okhttp
You will get an error like this:
Cannot access class 'io.opentracing.Span'. Check your module classpath for missing or conflicting dependencies.
Logcat logs
No response
Expected behavior
You should add api(libs.openTracingApi) here:
|
implementation(libs.kotlin) |
|
implementation(libs.okHttp) |
|
implementation(libs.androidXAnnotation) |
Affected SDK versions
2.17.0
Latest working SDK version
🤷♂️
Did you confirm if the latest SDK version fixes the bug?
Yes
Kotlin / Java version
2.1.0
Gradle / AGP version
8.11, 8.7.3
Other dependencies versions
No response
Device Information
No response
Other relevant information
No response
Describe the bug
io.opentracing.Spanis in the API ofdd-sdk-android-okhttp, see here:dd-sdk-android/integrations/dd-sdk-android-okhttp/api/dd-sdk-android-okhttp.api
Line 85 in 58f27a4
but the pom/module file doesn't mention
io.opentracing:opentracing-api:see https://repo1.maven.org/maven2/com/datadoghq/dd-sdk-android-okhttp/2.17.0/dd-sdk-android-okhttp-2.17.0.pom
and
see https://repo1.maven.org/maven2/com/datadoghq/dd-sdk-android-okhttp/2.17.0/dd-sdk-android-okhttp-2.17.0.module
Kotlin 2.1.0 is more picky about missing deps.
Reproduction steps
Use Kotlin 2.1.0, and use
dd-sdk-android-okhttpYou will get an error like this:
Logcat logs
No response
Expected behavior
You should add
api(libs.openTracingApi)here:dd-sdk-android/integrations/dd-sdk-android-okhttp/build.gradle.kts
Lines 49 to 51 in 58f27a4
Affected SDK versions
2.17.0
Latest working SDK version
🤷♂️
Did you confirm if the latest SDK version fixes the bug?
Yes
Kotlin / Java version
2.1.0
Gradle / AGP version
8.11, 8.7.3
Other dependencies versions
No response
Device Information
No response
Other relevant information
No response