René's URL Explorer Experiment


Title: Java SDK basic OTEL Support · Issue #2327 · getsentry/sentry-java · GitHub

Open Graph Title: Java SDK basic OTEL Support · Issue #2327 · getsentry/sentry-java

X Title: Java SDK basic OTEL Support · Issue #2327 · getsentry/sentry-java

Description: Description More details tbd Our plan is to create a SpanProcessor (for sending spans to Sentry) as well as probably a TextMapPropagator (for dealing with tracing across systems). We'll probably also need to provide an agent JAR for peop...

Open Graph Description: Description More details tbd Our plan is to create a SpanProcessor (for sending spans to Sentry) as well as probably a TextMapPropagator (for dealing with tracing across systems). We'll probably al...

X Description: Description More details tbd Our plan is to create a SpanProcessor (for sending spans to Sentry) as well as probably a TextMapPropagator (for dealing with tracing across systems). We'll probabl...

Opengraph URL: https://github.com/getsentry/sentry-java/issues/2327

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Java SDK basic OTEL Support","articleBody":"### Description\r\n\r\nMore details tbd\r\n\r\nOur plan is to create a `SpanProcessor` (for sending spans to Sentry) as well as probably a `TextMapPropagator` (for dealing with tracing across systems).\r\n\r\nWe'll probably also need to provide an agent `JAR` for people to auto instrument their applications.\r\n\r\nThere may be problems with initializing Sentry in combination with the agent, needs investigation.\r\n\r\nImplementing it should address https://github.com/getsentry/sentry-java/issues/1348 .\r\n\r\nHere's issues on other SDKs implementing OTEL support:\r\n- https://github.com/getsentry/sentry-ruby/issues/1907\r\n- https://github.com/getsentry/sentry-python/issues/1687\r\n- https://github.com/getsentry/sentry-javascript/issues/6000\r\n- https://github.com/getsentry/sentry-go/issues/486\r\n\r\n## Challenges faced\r\n\r\n### Accessing the initialized `Sentry` instance of the target application from the OTEL Java Agent\r\n\r\nAsked on [OTEL GH](https://github.com/open-telemetry/opentelemetry-java-instrumentation/discussions/7042) and got some suggestions:\r\n\r\n#### Use reflection\r\nThis would require us to perform every interaction with Sentry using reflection, not just retrieving the instance but every invocation which would lead to very difficult maintenance and brittle code\r\n\r\n#### Add `Sentry` to the bootstrap classloader\r\nso the same instance can be accessed from the target application and the OTEL Java Agent: This requires us to create our own custom distro of the OTEL Java Agent as shown in [their samples](https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/examples/distro). We first tried producing an agent JAR with `SpanProcessor` added as extension but that didn't allow us to add to the bootstrap classloader.\r\n\r\n## TODOs\r\n\r\n- [x] [Merge feature into `main`](https://github.com/getsentry/sentry-java/pull/2344)\r\n- [x] Release\r\n- [x] [Document](https://github.com/getsentry/sentry-docs/pull/5968)\r\n- [x] [Create new modules for OTEL](https://github.com/getsentry/sentry-java/pull/2345)\r\n- [x] Add new modules to release registry\r\n- [x] [Add `instrumenter` to options and make `startTransaction` and `createChild` no-op if the `instrumenter` performing the operation does not match the configured one.](https://github.com/getsentry/sentry-java/pull/2349)\r\n- [x] Implement [`SpanProcessor`](https://github.com/getsentry/sentry-java/pull/2357)\r\n- [x] [Add otel to context](https://github.com/getsentry/sentry-java/pull/2361)\r\n- [x] [Implement `TextMapPropagator`](https://github.com/getsentry/sentry-java/pull/2380)\r\n- [x] [Allow configuring Sentry when only using the Java Agent so it's not needed in the target application](https://github.com/getsentry/sentry-java/pull/2386)\r\n- [x] [Make sure `null` classloader (i.e. bootstrap classloader) doesn't cause issues](https://github.com/getsentry/sentry-java/pull/2386)\r\n- [x] https://github.com/getsentry/sentry-java/issues/2376\r\n- [x] [Add logging to `SentrySpanProcessor`, `SentryPropagator` etc.](https://github.com/getsentry/sentry-java/pull/2425)\r\n- [x] [Add Sentry OTEL Java Agent](https://github.com/getsentry/opentelemetry-demo/pull/15) to OTEL demo\r\n- [x] [Upgrade to latest OTEL release(s)](https://github.com/getsentry/sentry-java/pull/2420)\r\n- [x] [Add automated tests for OTEL](https://github.com/getsentry/sentry-java/pull/2401)\r\n- [x] Add README to `sentry-opentelemetry` modules\r\n- [x] Use `HubAdapter` instead of `Sentry`\r\n- [x] [Do not override default exporter config but rather document how to get rid of log spam if only using Sentry without OTEL exporter](https://github.com/getsentry/sentry-java/pull/2408)\r\n- [x] [Link errors to transactions created via OTEL](https://github.com/getsentry/sentry-java/pull/2418)\r\n- [x] [Make it possible to disable auto init in Java Agent so the target application can still use ENV vars and properties file for init without triggering auto init](https://github.com/getsentry/sentry-java/pull/2410)\r\n","author":{"url":"https://github.com/adinauer","@type":"Person","name":"adinauer"},"datePublished":"2022-11-02T13:46:18Z","url":"https://github.com/getsentry/sentry-java/issues/2327"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ed479181-59fe-1898-1181-ae644057fae2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE35E:20A7C6:47C501:5F2FCF:6B04D9D3
html-safe-noncefec965db459d4cb908746f060772b1405e804e4c669ddd4543eb30ad2994cccb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzVFOjIwQTdDNjo0N0M1MDE6NUYyRkNGOjZCMDREOUQzIiwidmlzaXRvcl9pZCI6IjgyNjc4Njg1OTg0Mjk4NjY0NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd3d2b17d76b5928c360055f939f8c8b3b41f960b8c51687908d64e8a1a6b7251
hovercard-subject-tagissue:1433176281
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/2327/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7a7b20d82d5c7763351b0f414c0f1b5b0e8337694b7177304b1ef22a259f910f/getsentry/sentry-java/issues/2327
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7a7b20d82d5c7763351b0f414c0f1b5b0e8337694b7177304b1ef22a259f910f/getsentry/sentry-java/issues/2327
og:image:altDescription More details tbd Our plan is to create a SpanProcessor (for sending spans to Sentry) as well as probably a TextMapPropagator (for dealing with tracing across systems). We'll probably al...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameadinauer
hostnamegithub.com
expected-hostnamegithub.com
None194dacb8acfd3e4d3ffb2704e0b1f10327f0dad690a7142acc7b0e0a2d073965
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3368190
octolytics-dimension-repository_nwogetsentry/sentry-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3368190
octolytics-dimension-repository_network_root_nwogetsentry/sentry-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6c35540a0a2991ee20bd053ba2601cce33f72cb1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-java/issues/2327#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F2327
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F2327
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-java
Reloadhttps://github.com/getsentry/sentry-java/issues/2327
Reloadhttps://github.com/getsentry/sentry-java/issues/2327
Reloadhttps://github.com/getsentry/sentry-java/issues/2327
getsentryhttps://github.com/getsentry
sentry-javahttps://github.com/getsentry/sentry-java
Codehttps://github.com/getsentry/sentry-java
Issues266 (266)https://github.com/getsentry/sentry-java/issues
Pull requests56 (56)https://github.com/getsentry/sentry-java/pulls
Discussionshttps://github.com/getsentry/sentry-java/discussions
Actionshttps://github.com/getsentry/sentry-java/actions
Projectshttps://github.com/getsentry/sentry-java/projects
Security and quality2 (2)https://github.com/getsentry/sentry-java/security
Insightshttps://github.com/getsentry/sentry-java/insights
https://github.com/getsentry/sentry-java
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/2327
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/2327
Java SDK basic OTEL Supporthttps://github.com/getsentry/sentry-java/issues/2327#top
https://github.com/adinauer
https://github.com/adinauer
adinauerhttps://github.com/adinauer
on Nov 2, 2022https://github.com/getsentry/sentry-java/issues/2327#issue-1433176281
#1348https://github.com/getsentry/sentry-java/issues/1348
Ruby SDK basic OTEL Support sentry-ruby#1907https://github.com/getsentry/sentry-ruby/issues/1907
Basic OpenTelemetry (OTEL) Support sentry-python#1687https://github.com/getsentry/sentry-python/issues/1687
Add OpenTelemetry Node Package sentry-javascript#6000https://github.com/getsentry/sentry-javascript/issues/6000
[GO] Add basic OpenTelemetry support sentry-go#486https://github.com/getsentry/sentry-go/issues/486
OTEL GHhttps://github.com/open-telemetry/opentelemetry-java-instrumentation/discussions/7042
their sampleshttps://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/examples/distro
Merge feature into mainhttps://github.com/getsentry/sentry-java/pull/2344
Documenthttps://github.com/getsentry/sentry-docs/pull/5968
Create new modules for OTELhttps://github.com/getsentry/sentry-java/pull/2345
Add instrumenter to options and make startTransaction and createChild no-op if the instrumenter performing the operation does not match the configured one.https://github.com/getsentry/sentry-java/pull/2349
SpanProcessorhttps://github.com/getsentry/sentry-java/pull/2357
Add otel to contexthttps://github.com/getsentry/sentry-java/pull/2361
Implement TextMapPropagatorhttps://github.com/getsentry/sentry-java/pull/2380
Allow configuring Sentry when only using the Java Agent so it's not needed in the target applicationhttps://github.com/getsentry/sentry-java/pull/2386
Make sure null classloader (i.e. bootstrap classloader) doesn't cause issueshttps://github.com/getsentry/sentry-java/pull/2386
NoOpTransaction attaches Empty sentry-trace and baggage headers. #2376https://github.com/getsentry/sentry-java/issues/2376
Add logging to SentrySpanProcessor, SentryPropagator etc.https://github.com/getsentry/sentry-java/pull/2425
Add Sentry OTEL Java Agenthttps://github.com/getsentry/opentelemetry-demo/pull/15
Upgrade to latest OTEL release(s)https://github.com/getsentry/sentry-java/pull/2420
Add automated tests for OTELhttps://github.com/getsentry/sentry-java/pull/2401
Do not override default exporter config but rather document how to get rid of log spam if only using Sentry without OTEL exporterhttps://github.com/getsentry/sentry-java/pull/2408
Link errors to transactions created via OTELhttps://github.com/getsentry/sentry-java/pull/2418
Make it possible to disable auto init in Java Agent so the target application can still use ENV vars and properties file for init without triggering auto inithttps://github.com/getsentry/sentry-java/pull/2410
adinauerhttps://github.com/adinauer
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
on Nov 2, 2022https://github.com/getsentry/sentry-java/issues/2327#event-7723557420
adinauerhttps://github.com/adinauer
on Nov 2, 2022https://github.com/getsentry/sentry-java/issues/2327#event-7723557503
AbhiPrasadhttps://github.com/AbhiPrasad
Sentry <3s OpenTelemetryhttps://github.com/orgs/getsentry/projects/39
on Nov 22, 2022https://github.com/getsentry/sentry-java/issues/2327#event-15230477939
AbhiPrasadhttps://github.com/AbhiPrasad
Sentry <3s OpenTelemetryhttps://github.com/orgs/getsentry/projects/39
on Nov 22, 2022https://github.com/getsentry/sentry-java/issues/2327
AbhiPrasadhttps://github.com/AbhiPrasad
Sentry <3s OpenTelemetryhttps://github.com/orgs/getsentry/projects/39
on Nov 24, 2022https://github.com/getsentry/sentry-java/issues/2327
smeubankhttps://github.com/smeubank
completedhttps://github.com/getsentry/sentry-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 4, 2023https://github.com/getsentry/sentry-java/issues/2327#event-8149459819
github-project-automationhttps://github.com/apps/github-project-automation
Sentry <3s OpenTelemetryhttps://github.com/orgs/getsentry/projects/39
on Jan 4, 2023https://github.com/getsentry/sentry-java/issues/2327
https://github.com/dalbani
dalbanihttps://github.com/dalbani
on Mar 14, 2023https://github.com/getsentry/sentry-java/issues/2327#issuecomment-1468166658
https://github.com/adinauer
adinauerhttps://github.com/adinauer
on Mar 14, 2023https://github.com/getsentry/sentry-java/issues/2327#issuecomment-1468308167
@dalbanihttps://github.com/dalbani
https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentationhttps://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation
https://github.com/adinauer
adinauerhttps://github.com/adinauer
on Mar 14, 2023https://github.com/getsentry/sentry-java/issues/2327#issuecomment-1468315897
https://github.com/dalbani
dalbanihttps://github.com/dalbani
on Mar 14, 2023https://github.com/getsentry/sentry-java/issues/2327#issuecomment-1468928549
@adinauerhttps://github.com/adinauer
https://github.com/adinauer
adinauerhttps://github.com/adinauer
on Mar 15, 2023https://github.com/getsentry/sentry-java/issues/2327#issuecomment-1469358402
#2480https://github.com/getsentry/sentry-java/issues/2480
https://github.com/dalbani
dalbanihttps://github.com/dalbani
on Mar 16, 2023https://github.com/getsentry/sentry-java/issues/2327#issuecomment-1472130194
https://github.com/quarkiverse/quarkus-logging-sentryhttps://github.com/quarkiverse/quarkus-logging-sentry
https://github.com/adinauer
adinauerhttps://github.com/adinauer
on Mar 16, 2023https://github.com/getsentry/sentry-java/issues/2327#issuecomment-1472199568
@dalbanihttps://github.com/dalbani
#2254https://github.com/getsentry/sentry-java/issues/2254
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-java/issues/2327
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/2327
adinauerhttps://github.com/adinauer
Sentry <3s OpenTelemetryClosedhttps://github.com/orgs/getsentry/projects/39
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.