Sentry: Merge Sentry's contexts and users into ApplicationContext
Gitlab::ErrorTracking
is now using its own context stacks. We already has Labkit::Context
as a centralized context management. We should merge those systems into one.
- Remove
Gitlab::ErrorTracking.with_context
. - Remove all accesses to
Raven
methods outside ofGitlab::ErrorTracking
. - Create a new processor to inject Gitlab context information from
Gitlab::ApplicationContext
before sending. - Somehow
Labkit::Context
is used directly here and there. All accesses toLabkit::Context
should go throughGitlab::ApplicationContext
instead.
Edited by Quang-Minh Nguyen