Remove db.name attribute from Redis instrumentation (#1427)

This commit is contained in:
luke6Lh43
2022-11-10 20:21:44 +01:00
committed by GitHub
parent 7acc336cca
commit 5f85a5bd74
3 changed files with 8 additions and 3 deletions

View File

@ -28,7 +28,6 @@ def _extract_conn_attributes(conn_kwargs):
SpanAttributes.DB_SYSTEM: DbSystemValues.REDIS.value,
}
db = conn_kwargs.get("db", 0)
attributes[SpanAttributes.DB_NAME] = db
attributes[SpanAttributes.DB_REDIS_DATABASE_INDEX] = db
try:
attributes[SpanAttributes.NET_PEER_NAME] = conn_kwargs.get(