Skip to content

Commit f344d5c

Browse files
committed
lint
1 parent 678150f commit f344d5c

File tree

1 file changed

+4
-2
lines changed
  • instrumentation/opentelemetry-instrumentation-redis/src/opentelemetry/instrumentation/redis

1 file changed

+4
-2
lines changed

instrumentation/opentelemetry-instrumentation-redis/src/opentelemetry/instrumentation/redis/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ def response_hook(span, instance, response):
159159

160160

161161
def _set_connection_attributes(
162-
span: Span, conn: Union[AsyncRedisInstance, RedisInstance],
162+
span: Span,
163+
conn: Union[AsyncRedisInstance, RedisInstance],
163164
) -> None:
164165
if not span.is_recording() or not hasattr(conn, "connection_pool"):
165166
return
@@ -170,7 +171,8 @@ def _set_connection_attributes(
170171

171172

172173
def _build_span_name(
173-
instance: Union[AsyncRedisInstance, RedisInstance], cmd_args: tuple[Any, ...]
174+
instance: Union[AsyncRedisInstance, RedisInstance],
175+
cmd_args: tuple[Any, ...],
174176
) -> str:
175177
if len(cmd_args) > 0 and cmd_args[0]:
176178
if cmd_args[0] == "FT.SEARCH":

0 commit comments

Comments
 (0)