Skip to content

Commit

Permalink
Remove incorrect lettuce db.statement attribute (#4160)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored Sep 22, 2021
1 parent 8c8eb3d commit f24dd61
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected String connectionString(RedisCommand<?, ?, ?> request) {

@Override
protected String statement(RedisCommand<?, ?, ?> request) {
return request.getType().name();
return null;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ class LettuceAsyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "SET"
"${SemanticAttributes.DB_STATEMENT.key}" "SET"
}
}
}
Expand Down Expand Up @@ -212,7 +211,6 @@ class LettuceAsyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "GET"
"${SemanticAttributes.DB_STATEMENT.key}" "GET"
}
}
span(2) {
Expand Down Expand Up @@ -276,7 +274,6 @@ class LettuceAsyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "GET"
"${SemanticAttributes.DB_STATEMENT.key}" "GET"
}
}
span(2) {
Expand Down Expand Up @@ -329,7 +326,6 @@ class LettuceAsyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "RANDOMKEY"
"${SemanticAttributes.DB_STATEMENT.key}" "RANDOMKEY"
}
}
span(2) {
Expand Down Expand Up @@ -386,7 +382,6 @@ class LettuceAsyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "HMSET"
"${SemanticAttributes.DB_STATEMENT.key}" "HMSET"
}
}
}
Expand All @@ -397,7 +392,6 @@ class LettuceAsyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "HGETALL"
"${SemanticAttributes.DB_STATEMENT.key}" "HGETALL"
}
}
}
Expand Down Expand Up @@ -440,7 +434,6 @@ class LettuceAsyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "DEL"
"${SemanticAttributes.DB_STATEMENT.key}" "DEL"
}
}
}
Expand Down Expand Up @@ -485,7 +478,6 @@ class LettuceAsyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "SADD"
"${SemanticAttributes.DB_STATEMENT.key}" "SADD"
"lettuce.command.cancelled" true
}
}
Expand All @@ -511,7 +503,6 @@ class LettuceAsyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "DEBUG"
"${SemanticAttributes.DB_STATEMENT.key}" "DEBUG"
}
}
}
Expand All @@ -532,7 +523,6 @@ class LettuceAsyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "SHUTDOWN"
"${SemanticAttributes.DB_STATEMENT.key}" "SHUTDOWN"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ class LettuceSyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "SET"
"${SemanticAttributes.DB_STATEMENT.key}" "SET"
}
}
}
Expand All @@ -170,7 +169,6 @@ class LettuceSyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "GET"
"${SemanticAttributes.DB_STATEMENT.key}" "GET"
}
}
}
Expand All @@ -191,7 +189,6 @@ class LettuceSyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "GET"
"${SemanticAttributes.DB_STATEMENT.key}" "GET"
}
}
}
Expand All @@ -212,7 +209,6 @@ class LettuceSyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "RANDOMKEY"
"${SemanticAttributes.DB_STATEMENT.key}" "RANDOMKEY"
}
}
}
Expand All @@ -233,7 +229,6 @@ class LettuceSyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "LPUSH"
"${SemanticAttributes.DB_STATEMENT.key}" "LPUSH"
}
}
}
Expand All @@ -254,7 +249,6 @@ class LettuceSyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "HMSET"
"${SemanticAttributes.DB_STATEMENT.key}" "HMSET"
}
}
}
Expand All @@ -275,7 +269,6 @@ class LettuceSyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "HGETALL"
"${SemanticAttributes.DB_STATEMENT.key}" "HGETALL"
}
}
}
Expand All @@ -295,7 +288,6 @@ class LettuceSyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "DEBUG"
"${SemanticAttributes.DB_STATEMENT.key}" "DEBUG"
}
}
}
Expand All @@ -315,7 +307,6 @@ class LettuceSyncClientTest extends AgentInstrumentationSpecification {
attributes {
"${SemanticAttributes.DB_SYSTEM.key}" "redis"
"${SemanticAttributes.DB_OPERATION.key}" "SHUTDOWN"
"${SemanticAttributes.DB_STATEMENT.key}" "SHUTDOWN"
}
}
}
Expand Down

0 comments on commit f24dd61

Please sign in to comment.