Logging: Log frontend errors (#28073)
* basic frontend Sentry integration * backend endpoint to capture sentry events * WIP! * log user email for frontend logs * remove debug logging * lint fixes * Fix type exports & property names Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> * additional struct naming fix * rename log endpoint, config section & interface * add sentry sample rate to config * refac to use EchoSrv * log user id * backend tests * tests for SentryEchoBackend * sentry echo backend tests * CustomEndpointTransport tests * Update pkg/api/frontend_logging_test.go Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> * Update conf/defaults.ini Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> * Update pkg/api/frontend_logging_test.go Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> * don't export unnecesasrily * update go.sum * get rid of Convey in tests, use stdlib * add sentry config to sample.ini * cleanup to set orig logging handler in test * Apply suggestions from code review Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> * PR feedback changes * lock sentry version Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Showing
This diff is collapsed.
Click to expand it.
... | ... | @@ -205,6 +205,9 @@ |
"dependencies": { | ||
"@grafana/slate-react": "0.22.9-grafana", | ||
"@reduxjs/toolkit": "1.3.4", | ||
"@sentry/browser": "5.25.0", | ||
"@sentry/types": "5.24.2", | ||
"@sentry/utils": "5.24.2", | ||
"@torkelo/react-select": "3.0.8", | ||
"@types/antlr4": "^4.7.1", | ||
"@types/braintree__sanitize-url": "4.0.0", | ||
... | ... |
pkg/api/frontend_logging.go
0 → 100644
pkg/api/frontend_logging_test.go
0 → 100644
pkg/setting/setting_sentry.go
0 → 100644
Please
register
or
sign in
to comment