-
Notifications
You must be signed in to change notification settings - Fork 295
Restore stack_id in CallHomeReporter's static info #3620
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
Conversation
It got lost in the extraction of telemetry code into a separate package. See the old code [here](https://github.com/electric-sql/electric/blob/17132f5f3289b1c6f25181d2a445a74955e0523f/packages/sync-service/lib/electric/telemetry/stack_telemetry.ex#L97-L115), new code [here](https://github.com/electric-sql/electric/pull/3412/changes#diff-1d6e6e1bd32867603bef6bfdbcb4dee699519420fc63f53fcba32e0f62fcc62eR98-R115).
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3620 +/- ##
==========================================
- Coverage 88.13% 82.75% -5.38%
==========================================
Files 18 30 +12
Lines 1643 2012 +369
Branches 409 413 +4
==========================================
+ Hits 1448 1665 +217
- Misses 193 345 +152
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Do we have any test coverage for the call home reporter? It would be useful to check if the emitted metrics follow the specified format. We've broken metrics a few times. |
|
We were also not adding |
This is to be able to override the first_report_in specifically and thus test that ApplicationTelemetry configures the reporter correctly, as opposed to just testing the CallHomeReporter itself by writing setup code for it in the test function.
…es CallHomeReporter
You won't believe how much time I had sunk trying to figure out the source of endless flakes in call home reporter tests. As soon as I linked the task process to the CallHomeReporter process they all went away as if by magic. This linking won't make the CallHomeReporter process exit if a task fails, since the former traps exits. But it's super important to not leave any orphaned tasks when running tests using Bypass because, oh boy...
✅ Deploy Preview for electric-next ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@balegas I have added separate tests that verify CallHomeReporter's payload when running 1) under ApplicationTelemetry and 2) StackTelemetry. In the latter case I had spent way too much time dealing with flakes before I finally got it to work by replacing
|
It got lost in the extraction of telemetry code into a separate package.
See the old code here, new code here.