Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/elastic_apm/spies/mongo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def pop_event(event)
span = events.delete(event.operation_id)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the agent is not recording, will this not be a problem? We have an early return in push_event if there's no transaction. Shouldn't we have the same check here?

return unless (curr = ElasticAPM.current_span)
Comment thread
mikker marked this conversation as resolved.
Outdated

curr == span && ElasticAPM.end_span
curr == span && ElasticAPM.end_span(span)
Comment thread
mikker marked this conversation as resolved.
Outdated
end

def build_context(event)
Expand Down