Update platform docs for v8 and use OpenTelemetry#12232
Update platform docs for v8 and use OpenTelemetry#12232adinauer merged 5 commits intofeat/java-v8-changesfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
Bundle ReportChanges will decrease total bundle size by 253.87kB (-1.25%) ⬇️. This is within the configured threshold ✅ Detailed changes
View changes by path for bundle: sentry-docs-server-cjs
|
coolguyzone
left a comment
There was a problem hiding this comment.
Thanks for the updates! LGTM 🥳
lbloder
left a comment
There was a problem hiding this comment.
Looks like java.jul, java.log4j2 and java.servlet are missing the Onboarding buttons to toggle tracing and opentelemetry.
| When running your application, please add our `sentry-opentelemetry-agent` to the `java` command. You can download the latest version of the `sentry-opentelemetry-agent-{{@inject packages.version('sentry.java.opentelemetry-agent') }}.jar` from [MavenCentral](https://search.maven.org/artifact/io.sentry/sentry-opentelemetry-agent). It's also available as a `ZIP` containing the `JAR` used on this page on [GitHub](https://github.com/getsentry/sentry-java/releases/). | ||
|
|
||
| ```bash | ||
| SENTRY_AUTO_INIT=false java -javaagent:sentry-opentelemetry-agent-{{@inject packages.version('sentry.java.opentelemetry-agent') }}.jar -jar your-application.jar |
There was a problem hiding this comment.
Is there a particular reason to default to SENTRY_AUTO_INIT=false, instead of letting OTEL do the auto config?
| When running your application, please add our `sentry-opentelemetry-agent` to the `java` command. You can download the latest version of the `sentry-opentelemetry-agent-{{@inject packages.version('sentry.java.opentelemetry-agent') }}.jar` from [MavenCentral](https://search.maven.org/artifact/io.sentry/sentry-opentelemetry-agent). It's also available as a `ZIP` containing the `JAR` used on this page on [GitHub](https://github.com/getsentry/sentry-java/releases/). | ||
|
|
||
| ```bash | ||
| SENTRY_AUTO_INIT=false java -javaagent:sentry-opentelemetry-agent-{{@inject packages.version('sentry.java.opentelemetry-agent') }}.jar -jar your-application.jar |
There was a problem hiding this comment.
Is there a particular reason to default to SENTRY_AUTO_INIT=false, instead of letting OTEL do the auto config?
There was a problem hiding this comment.
Configuring the SDK (especially for Spring Boot) is more convenient using application.properties and spring beans vs. configuring the agent directly.
* Update Java SDK v8 deprecation removals (#11820) * Update Java SDK v8 deprecation removals * Update docs/platforms/android/configuration/options.mdx Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> --------- Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> * Add documentation on how to check-in to an environment with CheckInUtils (#11826) * Remove `enableTracing` option from Java SDK as it has been removed in v8 (#11575) * Update OpenTelemetry docs for Java v8 (#12209) * Update OTel docs for Java v8 * Apply suggestions from code review Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> --------- Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> * Document `forceInit` for Java SDK (#12260) * document forceInit option * Apply suggestions from code review Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> --------- Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> * Improve `bindToScope` docs for Java (#12263) * Improve bindToScope docs * Apply suggestions from code review Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> --------- Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> * Docs for `sentry-graphql-22` (#12259) * Duplicate docs for graphql-java v22 * link between graphql docs versions * Apply suggestions from code review Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> --------- Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> * Update platform docs for v8 and use OpenTelemetry (#12232) * Update OTel docs for Java v8 * Change platform docs for v8 and use OTel * move includes to index file * CR changes * [getsentry/action-github-commit] Auto commit * close ConfigKey tag * replace link * fix link * Update Android SDK "Using Sentry within an SDK" section for Java SDK v8 (#12325) * Update Using Sentry within an SDK for v8 * Update docs/platforms/android/configuration/shared-environments.mdx Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> --------- Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> * Add documentation on setting SpanKind and capture HttpHeaders with OTEL (#12328) * wip add docs for capturing http headers as well as manual instrumentation using opentelemetry * Update docs/platforms/java/common/tracing/instrumentation/opentelemetry.mdx Co-authored-by: Alexander Dinauer <adinauer@users.noreply.github.com> --------- Co-authored-by: Alexander Dinauer <adinauer@users.noreply.github.com> * Replace `Hub` docs with `Scopes` (#12377) * Replace hub docs with scopes docs * Apply suggestions from code review Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> * Apply suggestions from code review Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> * Update docs/platforms/android/enriching-events/scopes/index.mdx * duplicate java into android * Update docs/platforms/android/enriching-events/scopes/index.mdx --------- Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> --------- Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> Co-authored-by: Max Hovens <14804474+maxhov@users.noreply.github.com> Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
* Update Java SDK v8 deprecation removals (#11820) * Update Java SDK v8 deprecation removals * Update docs/platforms/android/configuration/options.mdx Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> --------- Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> * Add documentation on how to check-in to an environment with CheckInUtils (#11826) * Remove `enableTracing` option from Java SDK as it has been removed in v8 (#11575) * Update OpenTelemetry docs for Java v8 (#12209) * Update OTel docs for Java v8 * Apply suggestions from code review Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> --------- Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> * Document `forceInit` for Java SDK (#12260) * document forceInit option * Apply suggestions from code review Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> --------- Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> * Improve `bindToScope` docs for Java (#12263) * Improve bindToScope docs * Apply suggestions from code review Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> --------- Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> * Docs for `sentry-graphql-22` (#12259) * Duplicate docs for graphql-java v22 * link between graphql docs versions * Apply suggestions from code review Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> --------- Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> * Update platform docs for v8 and use OpenTelemetry (#12232) * Update OTel docs for Java v8 * Change platform docs for v8 and use OTel * move includes to index file * CR changes * [getsentry/action-github-commit] Auto commit * close ConfigKey tag * replace link * fix link * Update Android SDK "Using Sentry within an SDK" section for Java SDK v8 (#12325) * Update Using Sentry within an SDK for v8 * Update docs/platforms/android/configuration/shared-environments.mdx Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> --------- Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> * Add documentation on setting SpanKind and capture HttpHeaders with OTEL (#12328) * wip add docs for capturing http headers as well as manual instrumentation using opentelemetry * Update docs/platforms/java/common/tracing/instrumentation/opentelemetry.mdx Co-authored-by: Alexander Dinauer <adinauer@users.noreply.github.com> --------- Co-authored-by: Alexander Dinauer <adinauer@users.noreply.github.com> * Replace `Hub` docs with `Scopes` (#12377) * Replace hub docs with scopes docs * Apply suggestions from code review Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> * Apply suggestions from code review Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> * Update docs/platforms/android/enriching-events/scopes/index.mdx * duplicate java into android * Update docs/platforms/android/enriching-events/scopes/index.mdx --------- Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> * Restore Hub docs as versioned docs for v7 and prior --------- Co-authored-by: Lukas Bloder <lukas.bloder@gmail.com> Co-authored-by: Max Hovens <14804474+maxhov@users.noreply.github.com> Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io> Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
DESCRIBE YOUR PR
Tell us what you're changing and why. If your PR resolves an issue, please link it so it closes automatically.
IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes:
LEGAL BOILERPLATE
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
EXTRA RESOURCES