Skip to content

Commit da1c13d

Browse files
committed
fix it again
1 parent 506cc62 commit da1c13d

File tree

1 file changed

+1
-4
lines changed
  • instrumentation/internal/internal-lambda/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/internal/lambda

1 file changed

+1
-4
lines changed

instrumentation/internal/internal-lambda/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/internal/lambda/LambdaTransformer.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,10 @@ public static byte[] transform(byte[] classBytes, String slashClassName, Class<?
2929
return classBytes;
3030
}
3131

32-
// lambda instrumentation happens only when the lambda is defined, thus the classBeingRedefined
33-
// must be null otherwise we get a partial instrumentation, for example virtual fields are not
34-
// properly applied
3532
try {
3633
byte[] result =
3734
transformer.transform(
38-
targetClass.getClassLoader(), slashClassName, null, null, classBytes);
35+
targetClass.getClassLoader(), slashClassName, targetClass, null, classBytes);
3936
if (result != null) {
4037
classBytes = result;
4138
}

0 commit comments

Comments
 (0)