Commit 53c0d3af authored by Robert Speicher's avatar Robert Speicher

Merge branch 'sh-tweak-sentry-grpc-error-processor' into 'master'

Tweak Sentry GRPC error processor

See merge request gitlab-org/gitlab!42199
parents 966172b9 cb69d6d4
......@@ -24,9 +24,11 @@ module Gitlab
return unless entry.is_a?(Hash)
exception_type = entry[:type]
raw_message = entry[:value]
return unless raw_message.start_with?('GRPC::')
return unless exception_type&.start_with?('GRPC::')
return unless raw_message.present?
message, debug_str = split_debug_error_string(raw_message)
......
......@@ -20,7 +20,8 @@ RSpec.describe Gitlab::ErrorTracking::Processor::GrpcErrorProcessor do
exception: {
values: [
{
value: "GRPC::DeadlineExceeded: 4:DeadlineExceeded. debug_error_string:{\"hello\":1}"
type: "GRPC::DeadlineExceeded",
value: "4:DeadlineExceeded. debug_error_string:{\"hello\":1}"
}
]
},
......@@ -43,7 +44,8 @@ RSpec.describe Gitlab::ErrorTracking::Processor::GrpcErrorProcessor do
exception: {
values: [
{
value: "GRPC::DeadlineExceeded: 4:DeadlineExceeded."
type: "GRPC::DeadlineExceeded",
value: "4:DeadlineExceeded."
}
]
},
......
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