Skip to content

Integrate Sentry SDK into Android client#11830

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/integrate-sentry-java-sdk
Draft

Integrate Sentry SDK into Android client#11830
Copilot wants to merge 4 commits intomainfrom
copilot/integrate-sentry-java-sdk

Conversation

Copy link
Contributor

Copilot AI commented Jan 23, 2026

Adds Sentry telemetry to Android client, matching the existing Apple client implementation.

Changes

  • Telemetry class (core/Telemetry.kt): Manages Sentry lifecycle, environment detection from API URL, and user context (device_id + account_slug)
  • Initialization: Sentry starts in FirezoneApp.onCreate() with DSN and release metadata
  • User context: Set during tunnel connection in TunnelService.connect()
  • Dependency: io.sentry:sentry-android:8.14.0

Implementation Notes

Environment detection follows Apple client pattern:

  • wss://api.firezone.dev → production
  • wss://api.firez.one → staging
  • Unknown URLs → Sentry disabled

Release format: android-client@{version}

User context matches Rust/Swift format for cross-platform consistency.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-8.14.3-bin/cv11ve7ro1n3o1j4so8xd9n66/gradle-8.14.3/lib/gradle-daemon-main-8.14.3.jar (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Integrate Sentry's Java SDK into Android app</issue_title>
<issue_description></issue_description>

<agent_instructions>Follow the example set forth by the Apple clients</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel
Copy link

vercel bot commented Jan 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
firezone Ready Ready Preview, Comment Jan 23, 2026 9:25pm

Request Review

Copilot AI changed the title [WIP] Integrate Sentry's Java SDK into Android app Integrate Sentry SDK into Android client Jan 23, 2026
Copilot AI requested a review from jamilbk January 23, 2026 21:26
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.

Integrate Sentry's Java SDK into Android app

2 participants