-
Notifications
You must be signed in to change notification settings - Fork 36
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
add Java Elastic distribution for Ad and Fraud services #16
Conversation
491b27a
to
2fefde5
Compare
df64111
to
81f0ea1
Compare
c41e903
to
1a4f4c0
Compare
7684417
to
05ad940
Compare
1a4f4c0
to
48e4547
Compare
💚 CLA has been signed |
fd46d86
to
23d74cd
Compare
c86cdc0
to
af6fa16
Compare
23d74cd
to
719b57a
Compare
ARG version=0.3.2 | ||
WORKDIR /usr/src/app/ | ||
|
||
COPY --from=builder /usr/src/app/ ./ | ||
ADD --chmod=644 https://repo1.maven.org/maven2/co/elastic/otel/elastic-otel-javaagent/$version/elastic-otel-javaagent-$version.jar /usr/src/app/opentelemetry-javaagent.jar | ||
ENV JAVA_TOOL_OPTIONS=-javaagent:/usr/src/app/opentelemetry-javaagent.jar | ||
ENV ELASTIC_OTEL_INFERRED_SPANS_ENABLED=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gathers and includes the Java Agent distribution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the future we might have a docker image you could just copy from, which makes the update process even easier as dependabot can handle it.
ARG version=0.3.2 | ||
WORKDIR /usr/src/app/ | ||
|
||
COPY --from=builder /usr/src/app/ ./ | ||
ADD --chmod=644 https://repo1.maven.org/maven2/co/elastic/otel/elastic-otel-javaagent/$version/elastic-otel-javaagent-$version.jar /usr/src/app/opentelemetry-javaagent.jar | ||
ENV JAVA_TOOL_OPTIONS=-javaagent:/usr/src/app/opentelemetry-javaagent.jar | ||
ENV ELASTIC_OTEL_INFERRED_SPANS_ENABLED=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the future we might have a docker image you could just copy from, which makes the update process even easier as dependabot can handle it.
719b57a
to
816c758
Compare
Changes
Add Elastic Dockerfiles (Dockerfile.elastic) that uses the Elastic's Java agent distribution for the Ad and Fraud detection services. Those Dockerfiles are a copy of the upstream version but replacing the Java agent.
The idea is to later parametrize the
Dockerfile
file used in thedocker-compose.yml
to point to our custom Dockerfile using the new .env.override file.Alternatives
Merge Requirements
For new features contributions please make sure you have completed the following
essential items:
CHANGELOG.md
updated to document new feature additionsMaintainers will not merge until the above have been completed. If you're unsure
which docs need to be changed ping the
@open-telemetry/demo-approvers.