Skip to content

Commit

Permalink
Fix error on Mongo::Connection.new()
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelcm committed Feb 7, 2013
1 parent e5b8617 commit d2cef15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -13,6 +13,9 @@ tmtags
## VIM
*.swp

## RUBYMINE
.idea/

## CTAGS
tags
TAGS
Expand Down
1 change: 1 addition & 0 deletions lib/rpm_contrib/instrumentation/mongo.rb
Expand Up @@ -15,6 +15,7 @@
include NewRelic::Agent::MethodTracer

def instrument_with_newrelic_trace(name, payload = {}, &blk)
payload = {} if payload.nil?
collection = payload[:collection]
if collection == '$cmd'
f = payload[:selector].first
Expand Down

0 comments on commit d2cef15

Please sign in to comment.