8
9
10
11
12
13
14
15
|
# File 'lib/sentry/sidekiq/sentry_context_middleware.rb', line 8
def set_span_data(span, id:, queue:, latency: nil, retry_count: nil)
return unless span
span.set_data(Span::DataConventions::MESSAGING_MESSAGE_ID, id)
span.set_data(Span::DataConventions::MESSAGING_DESTINATION_NAME, queue)
span.set_data(Span::DataConventions::MESSAGING_MESSAGE_RECEIVE_LATENCY, latency) if latency
span.set_data(Span::DataConventions::MESSAGING_MESSAGE_RETRY_COUNT, retry_count) if retry_count
end
|