Repository navigation
test(core): [Sample Tests 32] Add an end-to-end test of the core APIs over the HTTP transport - #6324
Draft
runningcode wants to merge 3 commits into
Draft
runningcode wants to merge 3 commits into
runningcode wants to merge 3 commits into
Conversation
…nsport SentryEndToEndTest reports through the APIs an app uses without integrations and checks what reaches MockSentryServer: messages at the scope's and an explicit level, an exception with its feature flag, an event with a fingerprint, breadcrumbs from an event processor and a beforeBreadcrumb callback, ten events in a row, a transaction with a child span, and metrics with the scope's attributes. It ports the core part of the console sample's system test, which ran the sample's JAR against the Python mock server. The sample's profiling and Kafka parts follow in their own modules. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This was referenced Oct 20, 2026
Draft
Draft
Draft
Draft
Draft
This was referenced Oct 20, 2026
📲 Install BuildsAndroid
|
This was referenced Oct 20, 2026
Draft
Draft
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…n type end to end The console sample's test checked that the captured exception arrives with its type, RuntimeException, not just its value. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Stack (Sample Tests)
main)📜 Description
Adds
SentryEndToEndTesttosentry. It ports the core part ofsentry-samples-console's system test, which ran the sample's JAR against the Python mock server. The test reports through the APIs an app uses without integrations, and checks what reachesMockSentryServerover the real HTTP transport:FATALlevel and one at an explicitWARNINGlevel;DEBUGlevel;beforeBreadcrumbcallback rejects;The sample's test also checks a profile and runs a Kafka round trip. Those go to
sentry-async-profilerandsentry-kafkain the next two PRs, and the last one retires the sample.The test's name avoids
…IntegrationTest, which in this module means a test of an SDKIntegration.After a coverage audit against the sample's tests:
RuntimeException, as the sample did.💡 Motivation and Context
Core's unit tests mock the transport. This test is the one place where core's own APIs, with no framework integration, go through serialization and HTTP to a server. It runs in 0.2 seconds.
💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
The console sample's profiling into
sentry-async-profiler, then its Kafka round trip intosentry-kafka.#skip-changelog
🤖 Generated with Claude Code