Add toString for AgentContextWrapper
MODIFY
instrumentation/opentelemetry-api-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/opentelemetryapi/context/AgentContextStorage.java
instrumentation/opentelemetry-api-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/opentelemetryapi/context/AgentContextStorage.java
@@ -220,5 +220,10 @@ public class AgentContextStorage implements ContextStorage, AutoCloseable {
}
return new AgentContextWrapper(agentContext, applicationContext.with(k1, v1));
}
+
+ @Override
+ public String toString() {
+ return "{agentContext=" + agentContext + ", applicationContext=" + applicationContext + "}";
+ }
}
}

Add toString for AgentContextWrapper (#3193)