Reduce unnecessarily verbose debug logging
MODIFY
agent-bootstrap/src/main/java/io/opentelemetry/auto/bootstrap/instrumentation/java/concurrent/State.java
agent-bootstrap/src/main/java/io/opentelemetry/auto/bootstrap/instrumentation/java/concurrent/State.java
@@ -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,

Reduce unnecessarily verbose debug logging (#318)