lib/elastic_apm/error_builder.rb in elastic-apm-3.2.0 vs lib/elastic_apm/error_builder.rb in elastic-apm-3.3.0
- old
+ new
@@ -51,11 +51,10 @@
end
error.culprit = stacktrace.frames.first&.function
end
- # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
def add_current_transaction_fields(error, transaction)
return unless transaction
error.transaction_id = transaction.id
error.transaction = {
@@ -68,8 +67,7 @@
return unless transaction.context
Util.reverse_merge!(error.context.labels, transaction.context.labels)
Util.reverse_merge!(error.context.custom, transaction.context.custom)
end
- # rubocop:enable Metrics/MethodLength, Metrics/AbcSize
end
end