Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4ee01f6

Browse files
committedNov 11, 2024·
long
1 parent f324971 commit 4ee01f6

File tree

1 file changed

+2
-2
lines changed
  • instrumentation/lettuce/lettuce-5.1/library/src/main/java/io/opentelemetry/instrumentation/lettuce/v5_1

1 file changed

+2
-2
lines changed
 

‎instrumentation/lettuce/lettuce-5.1/library/src/main/java/io/opentelemetry/instrumentation/lettuce/v5_1/OpenTelemetryTracing.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,11 @@ public synchronized Tracer.Span tag(String key, String value) {
317317
}
318318
if (key.equals("db.namespace") && SemconvStability.emitOldDatabaseSemconv()) {
319319
// map backwards into db.redis.database.index
320-
int val = Integer.parseInt(value);
320+
long val = Long.parseLong(value);
321321
if (span != null) {
322322
span.setAttribute(DB_REDIS_DATABASE_INDEX, val);
323323
} else {
324-
spanBuilder.setAttribute(DB_REDIS_DATABASE_INDEX, (long) val);
324+
spanBuilder.setAttribute(DB_REDIS_DATABASE_INDEX, val);
325325
}
326326
return this;
327327
}

0 commit comments

Comments
 (0)
Please sign in to comment.