Commit f9fef437 authored by Sean McGivern's avatar Sean McGivern Committed by Quang-Minh Nguyen

Apply 3 suggestion(s) to 2 file(s)

parent 8d3d6410
......@@ -33,6 +33,7 @@ module Gitlab
config.environment = Gitlab.config.sentry.environment
config.before_send = method(:before_send)
config.background_worker_threads = 0
config.send_default_pii = true
yield config if block_given?
end
......@@ -106,7 +107,7 @@ module Gitlab
def process_exception(exception, sentry: false, logging: true, extra:)
context_payload = Gitlab::ErrorTracking::ContextPayloadGenerator.generate(exception, extra)
# There is a possiblity that this method is called before Sentry is
# There is a possibility that this method is called before Sentry is
# configured. Since Sentry 4.0, some methods of Sentry are forwarded to
# to `nil`, hence we have to check the client as well.
if sentry && ::Sentry.get_current_client && ::Sentry.configuration.dsn
......
......@@ -8,8 +8,8 @@ module Gitlab
SANITIZED_ATTRIBUTES = %i[user contexts extra tags].freeze
# This processor removes sensitive fields or headers from the event
# before sending Sentry versions above 4.0 don't support
# sanitized_fileds and sanitized_http_headers anymore. The official
# before sending. Sentry versions above 4.0 don't support
# sanitized_fields and sanitized_http_headers anymore. The official
# document recommends using before_send instead.
#
# For more information, please visit:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment