Skip to content
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions instana/instrumentation/pymongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def started(self, event):
self._collect_command_tags(scope.span, event)

# include collection name into the namespace if provided
if event.command.has_key(event.command_name):
if event.command_name in event.command:
scope.span.set_tag("collection", event.command.get(event.command_name))

self.__active_commands[event.request_id] = scope
Expand Down Expand Up @@ -61,7 +61,7 @@ def _collect_command_tags(self, span, event):
span.set_tag("command", cmd)

for key in ["filter", "query"]:
if event.command.has_key(key):
if key in event.command:
span.set_tag("filter", json_util.dumps(event.command.get(key)))
break

Expand Down