From 081a1fd38c6b375b906ac2eeab2db2e5461b9ed5 Mon Sep 17 00:00:00 2001 From: amitsetty Date: Sat, 27 Aug 2022 13:26:06 +0300 Subject: [PATCH] Change syntax to match style of rest of code --- .../src/opentelemetry/instrumentation/pymongo/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/instrumentation/opentelemetry-instrumentation-pymongo/src/opentelemetry/instrumentation/pymongo/__init__.py b/instrumentation/opentelemetry-instrumentation-pymongo/src/opentelemetry/instrumentation/pymongo/__init__.py index 109a9b0bd6..151f0dde5b 100644 --- a/instrumentation/opentelemetry-instrumentation-pymongo/src/opentelemetry/instrumentation/pymongo/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-pymongo/src/opentelemetry/instrumentation/pymongo/__init__.py @@ -121,7 +121,8 @@ def started(self, event: monitoring.CommandStartedEvent): ): return command = event.command.get(event.command_name, "") - name = f"{event.database_name}.{event.command_name}" if event.database_name else event.command_name + name = event.database_name + name += "." + event.command_name statement = event.command_name if command: statement += " " + str(command)