Module: Gitlab::ErrorTracking::Processor::ContextPayloadProcessor
- Defined in:
- lib/gitlab/error_tracking/processor/context_payload_processor.rb
Class Method Summary collapse
-
.call(event) ⇒ Object
This processor is added to inject application context into Sentry events generated by Sentry built-in integrations.
Class Method Details
.call(event) ⇒ Object
This processor is added to inject application context into Sentry events generated by Sentry built-in integrations. When the integrations are re-implemented and use Gitlab::ErrorTracking, this processor should be removed.
11 12 13 14 15 16 17 |
# File 'lib/gitlab/error_tracking/processor/context_payload_processor.rb', line 11 def self.call(event) Gitlab::ErrorTracking::ContextPayloadGenerator.generate(nil, {}).each do |key, value| event.public_send(key).deep_merge!(value) # rubocop:disable GitlabSecurity/PublicSend end event end |