Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix declarative configuration in javaagent example #509

Closed

Conversation

jaydeluca
Copy link
Member

No description provided.

@jaydeluca jaydeluca requested review from a team as code owners October 18, 2024 22:08
@@ -3,4 +3,4 @@ FROM eclipse-temurin:11-jre
ADD build/libs/app.jar /app.jar
ADD build/agent/opentelemetry-javaagent.jar /opentelemetry-javaagent.jar

ENTRYPOINT java -jar -javaagent:/opentelemetry-javaagent.jar /app.jar
ENTRYPOINT java -javaagent:/opentelemetry-javaagent.jar -jar /app.jar
Copy link
Member Author

Choose a reason for hiding this comment

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

the -jar -javaagent ordering was causing a manifest error trying to load the jar

@jaydeluca jaydeluca force-pushed the fix-declarative-config branch from 447c64c to 579ab02 Compare October 18, 2024 22:11
@@ -8,14 +8,14 @@ services:
# Logs are disabled by default
OTEL_LOGS_EXPORTER: "otlp"
# Optional specify file configuration instead of using environment variable scheme
# To use, call "export OTEL_CONFIG_FILE=/sdk-config.yaml" before calling docker compose up
OTEL_CONFIG_FILE:
OTEL_EXPERIMENTAL_CONFIG_FILE: /sdk-config.yaml
Copy link
Member Author

Choose a reason for hiding this comment

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

i figured this behavior could be the default in the example, but I can return it to being optional if we want

@jaydeluca
Copy link
Member Author

oops i dont know how i didnt notice the other PR 🤦

@jaydeluca jaydeluca closed this Oct 18, 2024
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.

1 participant