Add authentication token to Error Tracking client
What does this MR do and why?
- Add authentication token to the error tracking gem and bundled client.
- Change error tracking internal endpoint to stop using decode64 for the token
- Fix generated DSN for opstrace based error tracking
Fixes gitlab-org/opstrace/opstrace#1749 (closed)
Depends on: gitlab-org/opstrace/opstrace!1688 (closed) and gitlab-org/opstrace/opstrace!1675 (merged)
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)
Feature.enable(:integrated_error_tracking)
- Go to /admin page
- Find GitLab Error Tracking in "General"
- Enable the boolean and set the URL
- Save settings
Retreive the token from that page and define it in Opscode gatekeeper.
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