Title: Classes like "SentryEnvelope" and plenty of other things are marked as Internal, even though ITransport relies on them · Issue #4722 · getsentry/sentry-java · GitHub
Open Graph Title: Classes like "SentryEnvelope" and plenty of other things are marked as Internal, even though ITransport relies on them · Issue #4722 · getsentry/sentry-java
X Title: Classes like "SentryEnvelope" and plenty of other things are marked as Internal, even though ITransport relies on them · Issue #4722 · getsentry/sentry-java
Description: Integration sentry Java Version 17 Version 8.21.1 Steps to Reproduce I can pass my own transport factory via options, in case I don't want to just send the Sentry events via http to DSN: sentry-java/sentry/src/main/java/io/sentry/SentryO...
Open Graph Description: Integration sentry Java Version 17 Version 8.21.1 Steps to Reproduce I can pass my own transport factory via options, in case I don't want to just send the Sentry events via http to DSN: sentry-jav...
X Description: Integration sentry Java Version 17 Version 8.21.1 Steps to Reproduce I can pass my own transport factory via options, in case I don't want to just send the Sentry events via http to DSN: sentry...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/4722
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Classes like \"SentryEnvelope\" and plenty of other things are marked as Internal, even though ITransport relies on them","articleBody":"### Integration\n\nsentry\n\n### Java Version\n\n17\n\n### Version\n\n8.21.1\n\n### Steps to Reproduce\n\n1) I can pass my own transport factory via options, in case I don't want to just send the Sentry events via http to DSN: https://github.com/getsentry/sentry-java/blob/23d6b12b2b55fc91a376800ee6c792943e027e23/sentry/src/main/java/io/sentry/SentryOptions.java#L1181-L1184\n2) To do this, I have to implement the ITransport interface - https://github.com/getsentry/sentry-java/blob/main/sentry/src/main/java/io/sentry/transport/ITransport.java\n3) This interface defines a method `send`, and the first parameter is `SentryEnvelope`. Makes sense.\n4) https://github.com/getsentry/sentry-java/blob/main/sentry/src/main/java/io/sentry/SentryEnvelope.java#L14-L15 - it turns out SentryEnvelope is marked as Internal. Just as a lot of other things.\n\nSentryEnvelopeHeader, SentryEnvelopeItem, SentryEvent is not, but SentryItemType is.\n\n### Expected Result\n\nI can define my custom transport and override sending the events, as something supported by the API.\n\n### Actual Result\n\nThe relevant code is marked as Internal, making tools like intellij plugin compat verifier fail.\n\nHere are some screenshots:\n\n\u003cimg width=\"610\" height=\"132\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/baa89106-8e3a-473f-861c-b0d9c176feac\" />\n\n\u003cimg width=\"857\" height=\"206\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/636762f7-bde4-4257-9e1f-c3e9ca668527\" />\n\n\u003cimg width=\"634\" height=\"216\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/de591a83-11ad-451e-b29a-132a2627458b\" />","author":{"url":"https://github.com/Alexander-poolside","@type":"Person","name":"Alexander-poolside"},"datePublished":"2025-09-12T11:11:23Z","url":"https://github.com/getsentry/sentry-java/issues/4722"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:881a7b05-1a43-f1d2-6c46-57c8d5b06e5c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D11E:301CBB:502DDA:6E7CB8:6B049FDE |
| html-safe-nonce | 9a29f0df489c2a111d78a00d5f7607f41396a302a79b0d53eecb7181d9384c2c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTFFOjMwMUNCQjo1MDJEREE6NkU3Q0I4OjZCMDQ5RkRFIiwidmlzaXRvcl9pZCI6Ijc1MjM3MTc1MDUyNTM0MTY5MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6af5b8b2384ef0751952274dbf9281e7f60f0a514dcfb8879f0614acaa05b85a |
| hovercard-subject-tag | issue:3410043539 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/4722/issue_layout |
| twitter:image | https://opengraph.githubassets.com/81146ba17b7f60abca7eec5aae619e14435668e17743751c870d29b487ba93e5/getsentry/sentry-java/issues/4722 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/81146ba17b7f60abca7eec5aae619e14435668e17743751c870d29b487ba93e5/getsentry/sentry-java/issues/4722 |
| og:image:alt | Integration sentry Java Version 17 Version 8.21.1 Steps to Reproduce I can pass my own transport factory via options, in case I don't want to just send the Sentry events via http to DSN: sentry-jav... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Alexander-poolside |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width