Use Error Tracking Settings and create auth token
What does this MR do and why?
- Switches from ERROR_TRACKING_API_URL to use the one defined in application_settings
- Add error tracking auth token
- Use the new token to authenticate error tracking specific API requests
Part of #366383 (closed)
Screenshots or screen recordings
How to set up and validate locally
Enable the feature flag gitlab_error_tracking
and use_click_house_database_for_error_tracking
:
Feature.enable(:gitlab_error_tracking)
Feature.enable(:use_click_house_database_for_error_tracking, project)
- Go to /admin page
- Find GitLab Error Tracking in "General"
- Enable the boolean and set the URL
- Save settings
You can also retrieve the access token and re-generate a new one by pressing the red button
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Gabriel Mazetto