-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: optimized logic for identifying if the database is Redis fr…
…om the query (#931) * refactor: optimized logic for identifying if the database is Redis from the query * fix: fixed not identifying the database from the query with redis command having multiple words
- Loading branch information
Showing
5 changed files
with
291 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
// (c) Copyright IBM Corp. 2024 | ||
|
||
package instana | ||
|
||
var redisCommands = map[string]struct{}{ | ||
"SET": {}, | ||
"GET": {}, | ||
"DEL": {}, | ||
"INCR": {}, | ||
"DECR": {}, | ||
"APPEND": {}, | ||
"GETRANGE": {}, | ||
"SETRANGE": {}, | ||
"STRLEN": {}, | ||
"HSET": {}, | ||
"HGET": {}, | ||
"HMSET": {}, | ||
"HMGET": {}, | ||
"HDEL": {}, | ||
"HGETALL": {}, | ||
"HKEYS": {}, | ||
"HVALS": {}, | ||
"HLEN": {}, | ||
"HINCRBY": {}, | ||
"LPUSH": {}, | ||
"RPUSH": {}, | ||
"LPOP": {}, | ||
"RPOP": {}, | ||
"LLEN": {}, | ||
"LRANGE": {}, | ||
"LREM": {}, | ||
"LINDEX": {}, | ||
"LSET": {}, | ||
"SADD": {}, | ||
"SREM": {}, | ||
"SMEMBERS": {}, | ||
"SISMEMBER": {}, | ||
"SCARD": {}, | ||
"SINTER": {}, | ||
"SUNION": {}, | ||
"SDIFF": {}, | ||
"SRANDMEMBER": {}, | ||
"SPOP": {}, | ||
"ZADD": {}, | ||
"ZREM": {}, | ||
"ZRANGE": {}, | ||
"ZREVRANGE": {}, | ||
"ZRANK": {}, | ||
"ZREVRANK": {}, | ||
"ZRANGEBYSCORE": {}, | ||
"ZCARD": {}, | ||
"ZSCORE": {}, | ||
"PFADD": {}, | ||
"PFCOUNT": {}, | ||
"PFMERGE": {}, | ||
"SUBSCRIBE": {}, | ||
"UNSUBSCRIBE": {}, | ||
"PUBLISH": {}, | ||
"MULTI": {}, | ||
"EXEC": {}, | ||
"DISCARD": {}, | ||
"WATCH": {}, | ||
"UNWATCH": {}, | ||
"KEYS": {}, | ||
"EXISTS": {}, | ||
"EXPIRE": {}, | ||
"TTL": {}, | ||
"PERSIST": {}, | ||
"RENAME": {}, | ||
"RENAMENX": {}, | ||
"TYPE": {}, | ||
"SCAN": {}, | ||
"PING": {}, | ||
"INFO": {}, | ||
"CLIENT LIST": {}, | ||
"CONFIG GET": {}, | ||
"CONFIG SET": {}, | ||
"FLUSHDB": {}, | ||
"FLUSHALL": {}, | ||
"DBSIZE": {}, | ||
"SAVE": {}, | ||
"BGSAVE": {}, | ||
"BGREWRITEAOF": {}, | ||
"SHUTDOWN": {}, | ||
} |