Skip to content

Commit 6a7ea3b

Browse files
committed
fix(redis): Redis instrumentation only at trace level
1 parent 9778295 commit 6a7ea3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swiftide-integrations/src/redis/node_cache.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ impl NodeCache for Redis {
2121
/// # Errors
2222
///
2323
/// Logs an error and returns `false` if the cache check fails.
24-
#[tracing::instrument(skip_all, name = "node_cache.redis.get", fields(hit))]
24+
#[tracing::instrument(skip_all, fields(hit), level = "trace")]
2525
async fn get(&self, node: &Node) -> bool {
2626
let cache_result = if let Some(mut cm) = self.lazy_connect().await {
2727
let result = redis::cmd("EXISTS")
@@ -59,7 +59,7 @@ impl NodeCache for Redis {
5959
/// # Errors
6060
///
6161
/// Logs an error if the node cannot be set in the cache.
62-
#[tracing::instrument(skip_all, name = "node_cache.redis.get")]
62+
#[tracing::instrument(skip_all, level = "trace")]
6363
async fn set(&self, node: &Node) {
6464
if let Some(mut cm) = self.lazy_connect().await {
6565
let result: Result<(), redis::RedisError> = redis::cmd("SET")

0 commit comments

Comments
 (0)