Skip to content

Fix missing transitive dependencies when using universal profiling integration#423

Merged
JonasKunz merged 1 commit into
elastic:mainfrom
JonasKunz:profiling-dependency-scope
Oct 7, 2024
Merged

Fix missing transitive dependencies when using universal profiling integration#423
JonasKunz merged 1 commit into
elastic:mainfrom
JonasKunz:profiling-dependency-scope

Conversation

@JonasKunz

Copy link
Copy Markdown
Contributor

There is currently a problem when using the universal-profling-integration with manual SDK setup:

The type UniversalProfilingProcessor cannot be used because it's supertype AbstractChainingSpanProcessor is missing. The latter comes from our common project as a transitive dependency which is only pulled in with runtime scope.

This PR fixes this ensuring that the type is available at compile time too.

A workaround for now is to add an explicit dependency on the elastic-otel-java:common project in client code.

@JonasKunz
JonasKunz requested a review from a team October 4, 2024 12:18
@JonasKunz
JonasKunz merged commit 8b65bc5 into elastic:main Oct 7, 2024
@JonasKunz
JonasKunz deleted the profiling-dependency-scope branch October 7, 2024 12:07
@SylvainJuge SylvainJuge added the bug Something isn't working label Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-java bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants