Skip to content

Commit dc9b046

Browse files
committed
1 parent 7af92f0 commit dc9b046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Instrumentation/Laravel/src/Watchers/RedisCommand/RedisCommandWatcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function register(Application $app): void
3838
}
3939

4040
/**
41-
* Record a query.
41+
* Record a Redis command.
4242
*/
4343
/** @psalm-suppress UndefinedThisPropertyFetch */
4444
public function recordRedisCommand(CommandExecuted $event): void
@@ -59,7 +59,7 @@ public function recordRedisCommand(CommandExecuted $event): void
5959
TraceAttributes::DB_SYSTEM => TraceAttributeValues::DB_SYSTEM_REDIS,
6060
TraceAttributes::DB_NAME => $this->fetchDbIndex($event->connection),
6161
TraceAttributes::DB_OPERATION => $operationName,
62-
TraceAttributes::DB_QUERY_TEXT => Serializer::serializeCommand($event->command, $event->parameters),
62+
TraceAttributes::DB_STATEMENT => Serializer::serializeCommand($event->command, $event->parameters),
6363
TraceAttributes::SERVER_ADDRESS => $this->fetchDbHost($event->connection),
6464
];
6565

0 commit comments

Comments
 (0)