Skip to content

feat(android): Add experimental Cronet request instrumentation - #6185

Closed
sentry-junior[bot] wants to merge 3 commits into
mainfrom
feat/cronet-instrumentation
Closed

sentry-junior[bot] wants to merge 3 commits into
mainfrom
feat/cronet-instrumentation

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Draft proposal for opt-in Cronet instrumentation, providing HTTP request visibility for apps using Cronet, including HTTP/3.

Adds sentry-android-cronet with an experimental SentryCronetCallback. Applications wrap their callback and call callback.start(request) to start an http.client span with the request. Success, failure, and cancellation finish the span and add an HTTP breadcrumb using existing Sentry URL filtering and HTTP data conventions. The delegate retains redirect and body-read control; negotiated protocol is recorded when Cronet supplies it.

This deliberately does not replace the engine, inject tracing headers, capture bodies, create phase-level network spans, or emit failed-request error events. One span covers the original request through redirects. The README documents the explicit-start API and its limits.

The public API and provider compatibility need Android SDK team review. Before this can leave draft: run the repository Android checks, regenerate the API dump with the Android build, and validate against a real Cronet engine/device. Local repository Gradle execution is blocked by a dependency-download certificate error; the checked-in API snapshot was generated with the repository's binary-compatibility-validator version in an isolated JVM harness using an equivalent BuildConfig, not by hand.

Public integration docs, release-registry registration, and the .craft.yml SDK entry remain publishing follow-ups. No existing Cronet implementation or customer code was used.

via david.quintas.

--

View Junior Session [Sentry]

sentry-junior Bot and others added 2 commits September 29, 2026 11:35
Co-Authored-By: David Quintas <david.quintas@sentry.io>
Co-Authored-By: David Quintas <david.quintas@sentry.io>
@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 2663f81

@sentry

sentry Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.58.0 (1) release

⚙️ sentry-android Build Distribution Settings

@sentry-junior sentry-junior Bot closed this Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants