lib/elastic_apm/transport/serializers/error_serializer.rb in elastic-apm-3.2.0 vs lib/elastic_apm/transport/serializers/error_serializer.rb in elastic-apm-3.3.0

- old
+ new

@@ -7,11 +7,10 @@ class ErrorSerializer < Serializer def context_serializer @context_serializer ||= ContextSerializer.new(config) end - # rubocop:disable Metrics/MethodLength, Metrics/AbcSize def build(error) base = { id: error.id, transaction_id: error.transaction_id, transaction: build_transaction(error.transaction), @@ -34,10 +33,9 @@ base[:log] = build_log log end { error: base } end - # rubocop:enable Metrics/MethodLength, Metrics/AbcSize private def build_exception(exception) {