Skip to content

Commit

Permalink
Ensure instrumentation class is logged if helper class fails to be in…
Browse files Browse the repository at this point in the history
…jected
  • Loading branch information
smola committed Nov 25, 2024
1 parent f2d21ae commit edd7331
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,11 @@ public DynamicType.Builder<?> transform(
}
} catch (final Exception e) {
if (log.isErrorEnabled()) {
// requestingName is concatenated to ensure it is sent to telemetry
log.error(
"Failed to inject helper classes - instrumentation.class={} instrumentation.target.classloader={} instrumentation.target.class={}",
"Failed to inject helper classes - instrumentation.class="
+ requestingName
+ " instrumentation.target.classloader={} instrumentation.target.class={}",
requestingName,
classLoader,
typeDescription,
Expand Down

0 comments on commit edd7331

Please sign in to comment.