lib/elastic_apm/spies/mongo.rb in elastic-apm-3.11.1 vs lib/elastic_apm/spies/mongo.rb in elastic-apm-3.12.0
- old
+ new
@@ -42,14 +42,18 @@
def started(event)
push_event(event)
end
def failed(event)
- pop_event(event)
+ span = pop_event(event)
+ span&.outcome = Span::Outcome::FAILURE
+ span
end
def succeeded(event)
- pop_event(event)
+ span = pop_event(event)
+ span&.outcome = Span::Outcome::SUCCESS
+ span
end
private
def push_event(event)