From ecbf50e988c2898c3f37db0e845507ae693ec3d5 Mon Sep 17 00:00:00 2001 From: Lalit Date: Sun, 27 Oct 2024 21:50:27 -0700 Subject: [PATCH] keep mutex poisioning as otel_debug --- .../src/trace/sampler/jaeger_remote/sampling_strategy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opentelemetry-sdk/src/trace/sampler/jaeger_remote/sampling_strategy.rs b/opentelemetry-sdk/src/trace/sampler/jaeger_remote/sampling_strategy.rs index d5cedae505..7214db7d18 100644 --- a/opentelemetry-sdk/src/trace/sampler/jaeger_remote/sampling_strategy.rs +++ b/opentelemetry-sdk/src/trace/sampler/jaeger_remote/sampling_strategy.rs @@ -6,7 +6,7 @@ use crate::trace::sampler::sample_based_on_probability; use opentelemetry::trace::{ SamplingDecision, SamplingResult, TraceContextExt, TraceId, TraceState, }; -use opentelemetry::{otel_warn, Context}; +use opentelemetry::{otel_debug, otel_warn, Context}; use std::collections::HashMap; use std::fmt::{Debug, Formatter}; use std::sync::Mutex; @@ -107,7 +107,7 @@ impl Inner { } }) .unwrap_or_else(|_err| { - otel_warn!( + otel_debug!( name: "JaegerRemoteSampler.MutexPoisoned", message = "Failed to update Jaeger Remote sampling strategy. The sampler's internal mutex is poisoned, indicating a panic occurred in another thread holding the lock. Sampling decisions may be using stale configuration.", );