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

feat: Add metrics for user creation/deletion. #506

Merged
merged 14 commits into from
Nov 9, 2023

Conversation

jrconlin
Copy link
Member

@jrconlin jrconlin commented Nov 3, 2023

There were a few questions raised about possible UAID churn occuring with autoconnect. Adding some metrics

Add new metrics for:

  • ua.expiration - a UAID has been reset for
    • reason:(reset_uaid|too_many_messages|no_current_mo|invalid_current_mo)
    • added autoconnect:true for consistency
  • ua.existing_user - A user was found in the database
  • ua.new_user - no record was found, assinging a new UAID.
    • reassined: Was a UAID offered by the UA?

Closes: SYNC-3994

There were a few questions raised about possible UAID churn occuring
with autoconnect. Adding some metrics

Add new metrics for:
* `ua.expiration`  - a UAID has been reset for
  * `reason`:(`reset_uaid`|`too_many_messages`|`no_current_mo`|`invalid_current_mo`)
  * added `autoconnect`:`true` for consistency
* `ua.existing_user` - A user was found in the database
* `ua.new_user` - no record was found, assinging a new UAID.
  * `reassined`: Was a UAID offered by the UA?

Closes: SYNC-3994
@jrconlin jrconlin requested a review from pjenvey November 3, 2023 17:23
@jrconlin jrconlin requested a review from pjenvey November 3, 2023 20:08
@jrconlin jrconlin requested a review from pjenvey November 3, 2023 23:24
@jrconlin jrconlin requested a review from pjenvey November 7, 2023 20:01
This is more indicitive of what the flag is for and what it does.
autoconnect/src/main.rs Outdated Show resolved Hide resolved
@jrconlin jrconlin requested a review from pjenvey November 9, 2023 00:04
@jrconlin jrconlin merged commit bd2e011 into master Nov 9, 2023
1 check passed
@jrconlin jrconlin deleted the feat/sync-3994-metrics branch November 9, 2023 00:44
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.

2 participants