@@ -47,8 +47,6 @@ public static void agentmain(String agentArgs, Instrumentation inst) {
4747 new AgentBuilder .Default ()
4848 .type (named ("graphql.execution.Execution" ))
4949 .transform ((builder , typeDescription , classLoader , module , protectionDomain ) -> {
50- // ClassInjector.UsingInstrumentation.of()
51- // System.out.println("transforming " + typeDescription);
5250 return builder
5351 .visit (Advice .to (ExecutionAdvice .class ).on (nameMatches ("executeOperation" )));
5452
@@ -60,27 +58,23 @@ public static void agentmain(String agentArgs, Instrumentation inst) {
6058 })
6159 .type (named ("org.dataloader.DataLoaderRegistry" ))
6260 .transform ((builder , typeDescription , classLoader , module , protectionDomain ) -> {
63- // System.out.println("transforming " + typeDescription);
6461 return builder
6562 .visit (Advice .to (DataLoaderRegistryAdvice .class ).on (nameMatches ("dispatchAll" )));
6663 })
6764 .type (named ("org.dataloader.DataLoader" ))
6865 .transform ((builder , typeDescription , classLoader , module , protectionDomain ) -> {
69- // System.out.println("transforming " + typeDescription);
7066 return builder
7167 .visit (Advice .to (DataLoaderLoadAdvice .class ).on (nameMatches ("load" )));
7268 })
7369 .type (named ("org.dataloader.DataLoaderHelper" ))
7470 .transform ((builder , typeDescription , classLoader , module , protectionDomain ) -> {
75- // System.out.println("transforming " + typeDescription);
7671 return builder
7772 .visit (Advice .to (DataLoaderHelperDispatchAdvice .class ).on (nameMatches ("dispatch" )))
7873 .visit (Advice .to (DataLoaderHelperInvokeBatchLoaderAdvice .class )
7974 .on (nameMatches ("invokeLoader" ).and (takesArguments (List .class , List .class ))));
8075 })
8176 .type (named ("graphql.schema.DataFetchingEnvironmentImpl" ))
8277 .transform ((builder , typeDescription , classLoader , module , protectionDomain ) -> {
83- // System.out.println("transforming " + typeDescription);
8478 return builder
8579 .visit (Advice .to (DataFetchingEnvironmentAdvice .class ).on (nameMatches ("getDataLoader" )));
8680 })
@@ -267,11 +261,9 @@ public static void getDataLoader(@Advice.Argument(0) String dataLoaderName,
267261 @ Advice .This (typing = Assigner .Typing .DYNAMIC ) DataFetchingEnvironment dataFetchingEnvironment ,
268262 @ Advice .Return (readOnly = false , typing = Assigner .Typing .DYNAMIC ) DataLoader dataLoader ) {
269263 ExecutionTrackingResult executionTrackingResult = GraphQLJavaAgent .executionIdToData .get (dataFetchingEnvironment .getExecutionId ());
270- // System.out.println("execution data: " + ExecutionTrackingResult);
271264 ResultPath resultPath = dataFetchingEnvironment .getExecutionStepInfo ().getPath ();
272265 executionTrackingResult .resultPathToDataLoaderUsed .put (resultPath , dataLoaderName );
273266
274- // System.out.println(dataLoaderName + " > " + dataLoader);
275267 }
276268
277269}
@@ -283,7 +275,6 @@ class DataLoaderLoadAdvice {
283275 public static void load (@ Advice .This (typing = Assigner .Typing .DYNAMIC ) Object dataLoader ) {
284276 ExecutionId executionId = GraphQLJavaAgent .dataLoaderToExecutionId .get (dataLoader );
285277 String dataLoaderName = GraphQLJavaAgent .executionIdToData .get (executionId ).dataLoaderToName .get (dataLoader );
286- // System.out.println("dataloader " + dataLoaderName + " load for execution " + executionId);
287278 }
288279
289280}
0 commit comments