Skip to content

Conversation

@Msksgm
Copy link
Member

@Msksgm Msksgm commented Dec 16, 2025

Description

docker compose up --build fails due to a Dockerfile containing a non-existent file reference.

Problem

The Dockerfile in the java agent example tries to add opentelemetry-javaagent-extension.jar with the ADD command:

ADD opentelemetry-javaagent-extension.jar

However, this file does not exist in the build context, causing the build to fail.

Solution

Remove the non-existent ADD opentelemetry-javaagent-extension.jar line from the Dockerfile.

Related Issues

Fixes #965

@Msksgm Msksgm requested review from a team as code owners December 16, 2025 00:07
@Msksgm Msksgm changed the title fix: remove ADD javaagent-extension because it does not exist. fix: remove ADD opentelemetry-javaagent-extension.jar because it does not exist. Dec 16, 2025
@laurit
Copy link
Contributor

laurit commented Dec 16, 2025

@jaydeluca as far as I can tell you removed the extension in #833

Copy link
Member

@jaydeluca jaydeluca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jaydeluca as far as I can tell you removed the extension in #833

Yea looks like i missed removing this piece, this LGTM since we now have a dedicated module for the extension example

@laurit laurit merged commit 4b73435 into open-telemetry:main Dec 16, 2025
13 checks passed
@Msksgm Msksgm deleted the fix-#965 branch December 16, 2025 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

java agent example does not work due to "/build/agent/opentelemetry-javaagent-extension.jar": not found

4 participants