lib/elastic_apm/spies/mongo.rb in elastic-apm-3.7.0 vs lib/elastic_apm/spies/mongo.rb in elastic-apm-3.8.0
- old
+ new
@@ -83,11 +83,11 @@
@events[event.operation_id] = span
end
def pop_event(event)
- return unless (curr = ElasticAPM.current_span)
span = @events.delete(event.operation_id)
+ return unless (curr = ElasticAPM.current_span)
curr == span && ElasticAPM.end_span
end
def build_context(event)