Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(telemetry): make the firezone device ID a context not a tag #7179

Merged
merged 8 commits into from
Oct 30, 2024

Conversation

ReactorScram
Copy link
Contributor

@ReactorScram ReactorScram commented Oct 29, 2024

Closes #7175

Also fixes a bug with the initialization order of Tokio and Sentry.

Previously:

  1. Start Tokio, executor threads inherit main thread context
  2. Load device ID and set it on the main telemetry hub

Now:

  1. Load device ID and set it on the main telemetry hub
  2. Start Tokio, executor threads inherit main thread context

The context and possibly tags didn't seem to propagate from the main hub if we set them after the worker threads spawned.

Based on this understanding, the IPC service process is still wrong, but a fix will have to wait, because telemetry in the IPC service is more complicated than in the GUI process.

image

@ReactorScram ReactorScram self-assigned this Oct 29, 2024
Copy link

vercel bot commented Oct 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
firezone ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 30, 2024 5:25pm

Copy link
Member

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@ReactorScram ReactorScram added this pull request to the merge queue Oct 30, 2024
Merged via the queue into main with commit 51250fa Oct 30, 2024
107 of 109 checks passed
@ReactorScram ReactorScram deleted the chore/id-should-be-context branch October 30, 2024 21:42
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.

firezone_id in Sentry should be a context not a tag
2 participants