elastic / elastic-otel-java

Apache License 2.0
8 stars 7 forks source link

Fix agentextension publishing and LocalRootSpan bug in agentextension #218

Closed JonasKunz closed 2 months ago

JonasKunz commented 2 months ago

The release currently failed due to a gradle cautionary check, which is a false-positive in this case:

* What went wrong:
Execution failed for task ':agentextension:publishMavenPublicationToSonatypeRepository'.
> Failed to publish publication 'maven' to repository 'sonatype'
   > Artifact elastic-otel-agentextension-0.1.0.jar wasn't produced by this build.

I've fixed the issue by reusing the same logic for publishing a shadow-jar we use for publishing our distro agent.

Also this PR includes two bug-fixes I forgot about which are also included in #215 . Without those, the agent-extension will not work properly.