-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 Java manual instrumentation with Spring Boot app #3656
Fix Java manual instrumentation with Spring Boot app #3656
Conversation
8c81894
to
ee1828c
Compare
@open-telemetry/java-approvers please take a look |
@PerfectSlayer There are two ways to manage a BOM with Gradle and Spring Boot. Could you please also document the way with the Gradle’s native bom support (as I did on this PR for the Spring Boot page)? |
@PerfectSlayer Could you also please add documentation on how to configure the things with Maven (as I did on #3672 for the Spring Boot page)? |
@open-telemetry/java-approvers PTAL |
@jeanbisutti Sure, I was waiting for #3672 to be reviewed first. |
810ba6d
to
4be920f
Compare
It pushed some changes to reflect BOM documentation from @jeanbisutti |
@PerfectSlayer if you run |
7090629
to
21ba361
Compare
@cartermp I run it and amend the commit it fixed. Oh and sorry for both typos... Pretty exhausted by the end of the year 😫 |
@open-telemetry/java-approvers please take a look! |
Hey there! Happy New Year 🎉 Coming to check up on things. Is there anything I can do on my side to get this PR progress? |
we are good to go from the Java SIG side with @laurit and @jeanbisutti's approvals |
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.
Left a handful of comments that aren't necessarily related to the changes @PerfectSlayer makes, but didn't seem right to let them continue to go unnoticed.
} | ||
``` | ||
|
||
Throughout this documentation you will add dependencies. For a full list of | ||
artifact coordinates, see [releases]. For semantic convention releases, see |
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.
Throughout this documentation you will add dependencies. For a full list of
artifact coordinates, see [releases].
I like this section near the top - maybe even the first line in the dependency management section. Starting with the bom feels strange without first establishing which artifacts the bom aligns.
If you instrument a Java app, install the dependencies for the OpenTelemetry | ||
SDK. | ||
If you instrument a Java app, install the dependencies for the OpenTelemetry SDK | ||
in addition to the dependencies for the OpenTelemetry API. |
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.
The phrasing here is odd. Your change is fine but I wonder if we should correct it.
If you instrument a Java app, install the dependencies for the OpenTelemetry SDK
That's a really poor introduction to the SDK. Maybe something like:
"The OpenTelemetry API provides a set of interfaces for collecting telemetry, but the data is dropped without an implementation. The OpenTelemetry SDK is the implementation of the OpenTelemetry API provided by OpenTelemetry. To use it, begin by installing dependencies:"
implementation("io.opentelemetry:opentelemetry-sdk-metrics:{{% param vers.otel %}}"); | ||
implementation("io.opentelemetry:opentelemetry-exporter-logging:{{% param vers.otel %}}"); | ||
implementation("io.opentelemetry:opentelemetry-semconv:{{% param vers.otel %}}-alpha"); | ||
implementation("io.opentelemetry:opentelemetry-api"); |
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.
implementation("io.opentelemetry:opentelemetry-api"); |
I believe your intent is to omit opentelemetry-api
here since its included above.
@PerfectSlayer can you take a look at the review comments? |
Sure will do this tomorrow or next week 👍 |
what is the intention of the highlights? |
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.
See inline comment.
This will need to be rebased.
509d9c3
to
c86bb8a
Compare
c86bb8a
to
cbdd65b
Compare
cbdd65b
to
a45d5c0
Compare
I rebased the branch and should have taken all the review comments into account. |
LGTM Thanks a lot @PerfectSlayer! It would remain the comment from Gregor: #3656 (comment) @zeitlinger, could you please elaborate a bit your question? |
@PerfectSlayer can you resolve the conflict? |
@svrnm I just did using GH Web UI. |
Hi OpenTelemetry team 👋
Following a dependency management issue using Java Spring Boot app and Gradle build system, I updated the Java Manual Instrumentation documentation page.
This PR proposes a fix to #3613 and the rationale for its content (using OTel BOM import rather than removing Spring dependency management pluging) is explained in my comment: open-telemetry/opentelemetry-java#6018 (comment).
It's my first contribution to this repository so feel free to provide guidance if I miss something.
I have built the site locally and tested it using
npm run test
. It seemed fine 😇Note
In addition, I updated the highlight sections, fix semconv versions and restore a missing semi-column.