Skip to content

v1.47.0 Introduces a missing link on dependencies #7119

@nihalmirpuri

Description

@nihalmirpuri

Describe the bug
We are now getting this failure in our (sbt) build during a routine missingLinkDependency check:

[error] Category: Class being called not found
[error]   In artifact: opentelemetry-sdk-trace-1.47.0.jar
[error]     In class: io.opentelemetry.sdk.trace.ExtendedSdkSpanBuilder
[error]       In method:  setParentFrom(io.opentelemetry.context.propagation.ContextPropagators, java.util.Map):107
[error]       Call to: io.opentelemetry.api.incubator.propagation.ExtendedContextPropagators.extractTextMapPropagationContext(java.util.Map, io.opentelemetry.context.propagation.ContextPropagators)
[error]       Problem: Class not found: io.opentelemetry.api.incubator.propagation.ExtendedContextPropagators
[error]       --------
[error]       In method:  lambda$startAndRun$0(io.opentelemetry.api.incubator.trace.SpanRunnable):143
[error]       Call to: io.opentelemetry.api.incubator.trace.SpanRunnable.runInSpan()
[error]       Problem: Class not found: io.opentelemetry.api.incubator.trace.SpanRunnable
[error]       --------
[error]       In method:  startAndCall(io.opentelemetry.api.incubator.trace.SpanCallable, java.util.function.BiConsumer):123
[error]       Call to: io.opentelemetry.api.incubator.trace.SpanCallable.callInSpan()
[error]       Problem: Class not found: io.opentelemetry.api.incubator.trace.SpanCallable
[error]       --------

From a quick investigation, looks like #6944 removes the incubator dependency from the classpath, but I see it's still being referenced in places like ExtendedSdkSpanBuilder

Steps to reproduce

  • Use v1.47.0 and review the classpath

What version and what artifacts are you using?
Artifacts: opentelemetry-trace
Version: 1.47.0

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