Skip to content

Commit 081a1fd

Browse files
committed
Change syntax to match style of rest of code
1 parent ef3bb11 commit 081a1fd

File tree

1 file changed

+2
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-pymongo/src/opentelemetry/instrumentation/pymongo

1 file changed

+2
-1
lines changed

Diff for: instrumentation/opentelemetry-instrumentation-pymongo/src/opentelemetry/instrumentation/pymongo/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ def started(self, event: monitoring.CommandStartedEvent):
121121
):
122122
return
123123
command = event.command.get(event.command_name, "")
124-
name = f"{event.database_name}.{event.command_name}" if event.database_name else event.command_name
124+
name = event.database_name
125+
name += "." + event.command_name
125126
statement = event.command_name
126127
if command:
127128
statement += " " + str(command)

0 commit comments

Comments
 (0)