René's URL Explorer Experiment


Title: Performance powered by OpenTelemetry (POTel) · Issue #3436 · getsentry/sentry-java · GitHub

Open Graph Title: Performance powered by OpenTelemetry (POTel) · Issue #3436 · getsentry/sentry-java

X Title: Performance powered by OpenTelemetry (POTel) · Issue #3436 · getsentry/sentry-java

Description: We want to use OpenTelemetry for the Sentry Java SDK. It should be possible to use OpenTelemetry API as well as Sentry API and still have both end up in Sentry. Research Issue More details H: Restore instrumenter code in Scopes #3697 Tes...

Open Graph Description: We want to use OpenTelemetry for the Sentry Java SDK. It should be possible to use OpenTelemetry API as well as Sentry API and still have both end up in Sentry. Research Issue More details H: Resto...

X Description: We want to use OpenTelemetry for the Sentry Java SDK. It should be possible to use OpenTelemetry API as well as Sentry API and still have both end up in Sentry. Research Issue More details H: Resto...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Performance powered by OpenTelemetry (POTel)","articleBody":"We want to use OpenTelemetry for the Sentry Java SDK. It should be possible to use OpenTelemetry API as well as Sentry API and still have both end up in Sentry.\n\n- [Research Issue](https://github.com/getsentry/sentry-java/issues/3232)\n- [More details](https://github.com/getsentry/team-sdks/issues/4)\n\nH:\n- [x] Restore instrumenter code in `Scopes` https://github.com/getsentry/sentry-java/pull/3697\n- [x] Test updating op / description (op and description might have been overriden in SentrySpanExporter:204)\n- [x] More testing for the \"no agent\" scenario\n\nM:\n- [ ] Offer `createSpan` in Sentry API\n- [ ] Offer `createInactiveSpan` in Sentry API\n- [ ] Make `SentryTracer.makeCurrent` work\n- [ ] Implement `createSpan` for default span factory\n- [x] Implement some magic to enable OTel span factory automatically when OTel is available (+ opt out of magic?)\n- [ ] Add a more complex service using Spring Boot to https://github.com/getsentry/opentelemetry-demo and showcase errors and other features Sentry has to offer (copied from #2419)\n- [x] End2End Tests on Running application (copied from #2419)\n\nFigure out whether to include these in v8:\n- [ ] Add `setAttribute` methods and deprecate old API (maybe deprecate in v8, remove in v9 likely)\n\t- [ ] tbd when we actually want to do this\n- [ ] Make old API write to span attributes, tbd if we actually want to do this and how this should work in detail\n- [ ] should we clear out old finished spans after a while in `SentrySpanExporter`?\n\nL:\n- [ ] is detecting a version mismatch between application and agent possible to warn the user\n- [ ] Create transaction in DefaultSpanFactory.createSpan\n- [ ] Fix classloader for `sentry-opentelemetry-bootstrap` module to actually be bootstrap classloader\n\t- [ ] This is currently loaded via the agent classloader due to `implementation(projects.sentryOpentelemetry.sentryOpentelemetryBootstrap)` in `sentry-opentelemetry-agentcustomization/build.gradle`\n\t- [ ] Fixing this causes `ClassNotFound` exception in `OtelSpanWrapper` due to `ReadWriteSpan` not being available in the bootstrap classloader. We have to figure out how to handle this. OTel probably already has a workaround for this. Likely using shading and proxy objects. needs investigation\n- [ ] Maybe optimize context forking happening too often when already wrapped but rewrapped by OTel `ArrayBaseContext`\n- [ ] ~~Make measurements work~~\n- [ ] ~~Make metrics work~~\n- [ ] Check if we want to support span `Contexts` by writing to root span or mark it internal as it currently wouldn't work for non root spans\n- [ ] What should `transaction.finish` do for OTel? Finish all child spans? Root span could hold a list of children (weakly)\n- [ ] Make `scheduleFinish` work\n- [ ] Make finish callback work\n- [ ] Make finish options work (dropIfNoChildren, Hint)\n- [ ] Make forceFinish work\n- [ ] Make getSpans work\n- [ ] Implement `getEventId` on OTel transaction wrapper\n  - [ ] In theory we shouldn't be using `getEventId()` as only the `SentryTracer` instance created by `SentrySpanExporter` should be queried for its event id. In theory a customer could call `getEventId` on the `OtelTransactionSpanForwarder` returned by `startTransaction`. This ID wouldn't match the real event ID. We'd have to force the ID used by `SentryTracer`, e.g. via `SpanOptions` or similar or simply use span ID (+ maybe trace ID concatenated).\n- [ ] Once the more complex demo has been merged, revert the adservice close to original state and showcase how easy it is to use Sentry for OTEL even without changing the target application\n\nSubtasks:\n- [x] Tracing #3445 and #3455\n  - [x] Continue an incoming trace\n  - [x] Attach trace to outgoing requests\n  - [x] Make Sentry API for retrieving baggage etc. work\n  - [x] Make Sentry API for continuing a trace work\n- [x] Sentry Span `op` and OTel span `name` can be updated independent of each other and diverge, fix #3468\n- [x] ~~Configurable POTel vs legacy OTel mode (e.g. by having a separate JAR)~~\n- [x] Sentry status should use OTel status #3439\n- [x] Make tracesSamplingDecision work #3462\n- [x] Figure out what to do with `instrumenter` - it is no longer needed\n- [x] How do we want to deal with multi init and OTel [#3674], [#3675], [#3676]\n- [x] Make startTimestamp on SpanOptions work for non OTel as well, maybe get rid of startChild overloads with startTimestamp and suggest using SpanOptions instead #3498\n- [x] Record dropped spans in `SentrySampler` via client reports #3552\n- [x] Set instrumenter (e.g. using an Aspect) to OTEL from the Java Agent so users don't have to manually do it (now obsolete, due to the agent now taking precedence)\n- [ ] ~~Detect sentry-opentelemetry-agent and set instrumenter automatically even when not using auto config (very similar to above)~~\n\n\u003cdetails>\n  \u003csummary>For DACI\u003c/summary>\n\n- [ ] Clarify how OTel can be used directly\n\t- [ ] e.g. to set an attribute:  `Span.current().setAttribute(...)` should work for 99% of cases (only if the span isn't made current / bound to scope customers would have to access it differently)\n\t- [ ] describe a way to retrieve the OTel span if it's not the current one\n\t\t- [ ] maybe expose a `getOtelSpan()` on Sentry span but that would drag OTel dependency into Android and hybrid SDKs\n\t\t- [ ] while implementing OTels `Span` interface would be possible we'd be dragging OTel into Android and hybrid SDKs, which we likely don't want\n\t\t- [ ] best approach is likely to simply add `setAttribute` methods that forward to the OTel span\n\t\t\t- [ ] where do these go to for non OTel mode (i.e. `SentryTracer`, `Span`)?\n\n\u003c/details>","author":{"url":"https://github.com/adinauer","@type":"Person","name":"adinauer"},"datePublished":"2024-05-21T08:50:52Z","url":"https://github.com/getsentry/sentry-java/issues/3436"}

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:f1328a40-b556-4cda-6b9e-c81e3c80ece0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id95C8:271798:A773CA:E3C22C:6B048354
html-safe-nonce8eaa941b324c8ae3c794664f554b1c9cbccc59dc4f602d38e58028aa476f78f5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUM4OjI3MTc5ODpBNzczQ0E6RTNDMjJDOjZCMDQ4MzU0IiwidmlzaXRvcl9pZCI6IjQ5MzI0MDgyNjIwNTU0NjE3MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9eed34dc8a9646ac4862099f582d8642c5e65fb085f2b0e1377fa3cc851afb84
hovercard-subject-tagissue:2307739545
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/3436/issue_layout
twitter:imagehttps://opengraph.githubassets.com/003fac41212ed253bf41dd236bdd3c2f81f22e3b529cda074ed96b522b4aed82/getsentry/sentry-java/issues/3436
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/003fac41212ed253bf41dd236bdd3c2f81f22e3b529cda074ed96b522b4aed82/getsentry/sentry-java/issues/3436
og:image:altWe want to use OpenTelemetry for the Sentry Java SDK. It should be possible to use OpenTelemetry API as well as Sentry API and still have both end up in Sentry. Research Issue More details H: Resto...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameadinauer
hostnamegithub.com
expected-hostnamegithub.com
None1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70
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
releasef5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-java/issues/3436#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F3436
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%2F3436
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/3436
Reloadhttps://github.com/getsentry/sentry-java/issues/3436
Reloadhttps://github.com/getsentry/sentry-java/issues/3436
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 requests57 (57)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/3436
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/3436
Performance powered by OpenTelemetry (POTel)https://github.com/getsentry/sentry-java/issues/3436#top
https://github.com/adinauer
Projecthttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Project%22
https://github.com/adinauer
adinauerhttps://github.com/adinauer
on May 21, 2024https://github.com/getsentry/sentry-java/issues/3436#issue-2307739545
Research Issuehttps://github.com/getsentry/sentry-java/issues/3232
More detailshttps://github.com/getsentry/team-sdks/issues/4
POTEL 43 - No longer set Instrumenter to OTEL for the new Java Agent #3697https://github.com/getsentry/sentry-java/pull/3697
https://github.com/getsentry/opentelemetry-demohttps://github.com/getsentry/opentelemetry-demo
OpenTelemetry Support Follow-Ups after Basic Support #2419https://github.com/getsentry/sentry-java/issues/2419
OpenTelemetry Support Follow-Ups after Basic Support #2419https://github.com/getsentry/sentry-java/issues/2419
POTEL 7 - Tracing #3445https://github.com/getsentry/sentry-java/pull/3445
POTEL 9 - Tracing Fixes and Baggage #3455https://github.com/getsentry/sentry-java/pull/3455
POTEL 14 - Keep Sentry span op and OTel span name in sync #3468https://github.com/getsentry/sentry-java/pull/3468
POTEL 6 - Use OpenTelemetry span status for Sentry span API #3439https://github.com/getsentry/sentry-java/pull/3439
POTEL 11 - Move sampling logic into OTel Sampler #3462https://github.com/getsentry/sentry-java/pull/3462
POTEL 40 - Init Priority settings #3674https://github.com/getsentry/sentry-java/pull/3674
POTEL 41 - Set InitPriority for Android, Manifest option for forceInit #3675https://github.com/getsentry/sentry-java/pull/3675
POTEL 42 - Set init priority for backend integrations #3676https://github.com/getsentry/sentry-java/pull/3676
POTEL 20 - Use SpanOptions.startTimestamp in Span constructor #3498https://github.com/getsentry/sentry-java/pull/3498
POTEL 33 - Record dropped spans when sampling OpenTelemetry spans #3552https://github.com/getsentry/sentry-java/pull/3552
adinauerhttps://github.com/adinauer
on May 21, 2024https://github.com/getsentry/sentry-java/issues/3436#event-12876467582
github-actionshttps://github.com/apps/github-actions
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
on May 21, 2024https://github.com/getsentry/sentry-java/issues/3436#event-12876470862
adinauerhttps://github.com/adinauer
on May 21, 2024https://github.com/getsentry/sentry-java/issues/3436#event-12876472489
https://github.com/lbloder
lbloderhttps://github.com/lbloder
on Sep 30, 2024https://github.com/getsentry/sentry-java/issues/3436#issuecomment-2383071657
https://github.com/adinauer
adinauerhttps://github.com/adinauer
on Feb 5, 2025https://github.com/getsentry/sentry-java/issues/3436#issuecomment-2636828131
adinauerhttps://github.com/adinauer
completedhttps://github.com/getsentry/sentry-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 5, 2025https://github.com/getsentry/sentry-java/issues/3436#event-16194576595
Projecthttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Project%22
on Aug 12, 2025https://github.com/getsentry/sentry-java/issues/3436#event-19124433877
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-java/issues/3436
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/3436
adinauerhttps://github.com/adinauer
Projecthttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Project%22
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.