Reduce unnecessarily verbose debug logging
@@ -37,7 +37,7 @@ public class State {
public boolean setParentSpan(final Span parentSpan) {
final boolean result = parentSpanRef.compareAndSet(null, parentSpan);
- if (!result) {
+ if (!result && parentSpanRef.get() != parentSpan) {
log.debug(
"Failed to set parent span because another parent span is already set {}: new: {}, old: {}",
this,
