Skip to content

Commit f009d91

Browse files
committed
Remove db.name attribute from redis instrumentation as there is no DB name concept in Redis
1 parent f58d16b commit f009d91

File tree

1 file changed

+0
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-redis/src/opentelemetry/instrumentation/redis

1 file changed

+0
-1
lines changed

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

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def _extract_conn_attributes(conn_kwargs):
2828
SpanAttributes.DB_SYSTEM: DbSystemValues.REDIS.value,
2929
}
3030
db = conn_kwargs.get("db", 0)
31-
attributes[SpanAttributes.DB_NAME] = db
3231
attributes[SpanAttributes.DB_REDIS_DATABASE_INDEX] = db
3332
try:
3433
attributes[SpanAttributes.NET_PEER_NAME] = conn_kwargs.get(

0 commit comments

Comments
 (0)