Skip to content

dd-sdk-android-okhttp artifact explicitly mentions io.opentracing.Span in the api, but does not declare the dep in the maven/gradle metadata #2486

Description

@yogurtearl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions