Skip to content

Commit

Permalink
Add database name to span name
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsetty committed Aug 27, 2022
1 parent 620e8b5 commit ef3bb11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def started(self, event: monitoring.CommandStartedEvent):
):
return
command = event.command.get(event.command_name, "")
name = event.command_name
name = f"{event.database_name}.{event.command_name}" if event.database_name else event.command_name
statement = event.command_name
if command:
statement += " " + str(command)
Expand Down

0 comments on commit ef3bb11

Please sign in to comment.