File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 8
8
use OpenTelemetry \API \Trace \SpanKind ;
9
9
use OpenTelemetry \SDK \Common \Time \ClockFactory ;
10
10
use OpenTelemetry \SemConv \TraceAttributes ;
11
- use OpenTelemetry \SemConv \TraceAttributeValues ;
12
11
use PlunkettScott \LaravelOpenTelemetry \CurrentSpan ;
13
12
14
13
class RedisWatcher extends Watcher
@@ -54,7 +53,7 @@ public function recordCommand(CommandExecuted $command): void
54
53
->setStartTimestamp ($ this ->calculateQueryStartTime ($ nowInNs , $ command ->time ))
55
54
->startSpan ();
56
55
57
- $ span ->setAttribute (TraceAttributes::DB_SYSTEM , TraceAttributeValues:: DB_SYSTEM_REDIS );
56
+ $ span ->setAttribute (TraceAttributes::DB_SYSTEM , ' redis ' );
58
57
$ span ->setAttribute (TraceAttributes::DB_REDIS_DATABASE_INDEX , $ command ->connectionName );
59
58
60
59
if ($ recordCommand ) {
You can’t perform that action at this time.
0 commit comments