Skip to content

Commit dfe2b6d

Browse files
authored
Ensure instrumentation class is logged if helper class fails to be injected (#8009)
1 parent 3ad344d commit dfe2b6d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/HelperInjector.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,11 @@ public DynamicType.Builder<?> transform(
139139

140140
} catch (final Exception e) {
141141
if (log.isErrorEnabled()) {
142+
// requestingName is concatenated to ensure it is sent to telemetry
142143
log.error(
143-
"Failed to inject helper classes - instrumentation.class={} instrumentation.target.classloader={} instrumentation.target.class={}",
144+
"Failed to inject helper classes - instrumentation.class="
145+
+ requestingName
146+
+ " instrumentation.target.classloader={} instrumentation.target.class={}",
144147
requestingName,
145148
classLoader,
146149
typeDescription,

0 commit comments

Comments
 (0)