-
Notifications
You must be signed in to change notification settings - Fork 428
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
Instrument/hook handlers: auth - register #4301
Instrument/hook handlers: auth - register #4301
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feature/instrument #4301 +/- ##
===================================================
Coverage 84.76% 84.76%
===================================================
Files 557 557
Lines 33873 33881 +8
===================================================
+ Hits 28711 28719 +8
Misses 5162 5162 ☔ View full report in Codecov by Sentry. |
ddda747
to
eeeed78
Compare
elasticsearch_and_cassandra_26 / elasticsearch_and_cassandra_mnesia / eeeed78 small_tests_25 / small_tests / eeeed78 small_tests_26 / small_tests / eeeed78 small_tests_26_arm64 / small_tests / eeeed78 ldap_mnesia_25 / ldap_mnesia / eeeed78 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} ldap_mnesia_26 / ldap_mnesia / eeeed78 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} dynamic_domains_mysql_redis_26 / mysql_redis / eeeed78 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / eeeed78 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} dynamic_domains_mssql_mnesia_26 / odbc_mssql_mnesia / eeeed78 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} pgsql_cets_26 / pgsql_cets / eeeed78 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} dynamic_domains_pgsql_mnesia_26 / pgsql_mnesia / eeeed78 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} internal_mnesia_26 / internal_mnesia / eeeed78 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} pgsql_mnesia_25 / pgsql_mnesia / eeeed78 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} mysql_redis_26 / mysql_redis / eeeed78 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} pgsql_mnesia_26 / pgsql_mnesia / eeeed78 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} mssql_mnesia_26 / odbc_mssql_mnesia / eeeed78 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} |
- 'register' used the hook-related metric; - 'unregister' didn't have any metrics.
It already has the 'auth_anonymous_unregister_user' event.
Note: no hooks are removed - even for remove_user, which has no handlers now. The hook seems to be useful not only for instrumentation.
They are now covered by the events checked in accounts_SUITE
eeeed78
to
d2ab907
Compare
elasticsearch_and_cassandra_26 / elasticsearch_and_cassandra_mnesia / d2ab907 small_tests_25 / small_tests / d2ab907 small_tests_26 / small_tests / d2ab907 small_tests_26_arm64 / small_tests / d2ab907 ldap_mnesia_25 / ldap_mnesia / d2ab907 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} ldap_mnesia_26 / ldap_mnesia / d2ab907 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / d2ab907 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} dynamic_domains_pgsql_mnesia_26 / pgsql_mnesia / d2ab907 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} dynamic_domains_mysql_redis_26 / mysql_redis / d2ab907 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} internal_mnesia_26 / internal_mnesia / d2ab907 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} pgsql_cets_26 / pgsql_cets / d2ab907 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} dynamic_domains_mssql_mnesia_26 / odbc_mssql_mnesia / d2ab907 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} pgsql_mnesia_25 / pgsql_mnesia / d2ab907 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} mysql_redis_26 / mysql_redis / d2ab907 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} pgsql_mnesia_26 / pgsql_mnesia / d2ab907 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} mssql_mnesia_26 / odbc_mssql_mnesia / d2ab907 ct_framework:error_in_suite{error,'metrics_register_SUITE cannot be compiled or loaded'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
The goal is to use
mongoose_instrument
for user registration metrics instead of handlers updatingmongoose_metrics
.instrumentation
callback is added tomongoose_gen_auth
.accounts_SUITE
andanonymous_SUITE
are updated, and they cover all events. This means thatmetrics_register_SUITE
can be removed.anonymous_purge
operation is now instrumented, so this hook doesn't need its instrumentation event anymore.register_user
has no handlers, it looks useful for purposes other than instrumentation.