@@ -267,6 +267,7 @@ public List<String> getInstrumentationClasses() {
267267 return instrumentationClasses ;
268268 }
269269
270+
270271 public Map <String , Object > shortSummaryMap () {
271272 Map <String , Object > result = new LinkedHashMap <>();
272273 result .put ("executionId" , Assert .assertNotNull (executionId ));
@@ -276,6 +277,7 @@ public Map<String, Object> shortSummaryMap() {
276277 result .put ("totalRunTime" , (endTime - startTime ) + "(" + (endTime - startTime ) / 1_000_000 + "ms)" );
277278 result .put ("engineTotalRunningTime" , engineTotalRunningTime + "(" + engineTotalRunningTime / 1_000_000 + "ms)" );
278279 result .put ("totalDataFetcherInvocations" , totalDataFetcherInvocations );
280+ result .put ("totalCustomDataFetcherInvocations" , getTotalCustomDataFetcherInvocations ());
279281 result .put ("totalTrivialDataFetcherInvocations" , totalTrivialDataFetcherInvocations );
280282 result .put ("totalWrappedTrivialDataFetcherInvocations" , totalWrappedTrivialDataFetcherInvocations );
281283 result .put ("fieldsFetchedCount" , fieldsFetched .size ());
@@ -284,6 +286,34 @@ public Map<String, Object> shortSummaryMap() {
284286 result .put ("oldStrategyDispatchingAll" , oldStrategyDispatchingAll );
285287 result .put ("dispatchEvents" , getDispatchEventsAsMap ());
286288 result .put ("instrumentationClasses" , instrumentationClasses );
289+ int completedCount = 0 ;
290+ int notCompletedCount = 0 ;
291+ int materializedCount = 0 ;
292+ // we want to minimize the overall size because it is intended to be logged
293+ // and logging can be expensive and is limited in size very often
294+ Map <String , String > resultTypes = new LinkedHashMap <>();
295+ for (String field : dataFetcherResultType .keySet ()) {
296+ DataFetcherResultType dataFetcherResultType1 = dataFetcherResultType .get (field );
297+ String shortType = null ;
298+ if (dataFetcherResultType1 == DataFetcherResultType .COMPLETABLE_FUTURE_COMPLETED ) {
299+ completedCount ++;
300+ shortType = "C" ;
301+ } else if (dataFetcherResultType1 == DataFetcherResultType .COMPLETABLE_FUTURE_NOT_COMPLETED ) {
302+ notCompletedCount ++;
303+ shortType = "N" ;
304+ } else if (dataFetcherResultType1 == DataFetcherResultType .MATERIALIZED ) {
305+ materializedCount ++;
306+ shortType = "M" ;
307+ } else {
308+ Assert .assertShouldNeverHappen ();
309+ }
310+ resultTypes .put (field , Assert .assertNotNull (shortType ));
311+ }
312+ result .put ("dataFetcherResultTypesCount" , Map .of (
313+ DataFetcherResultType .COMPLETABLE_FUTURE_COMPLETED , completedCount ,
314+ DataFetcherResultType .COMPLETABLE_FUTURE_NOT_COMPLETED , notCompletedCount ,
315+ DataFetcherResultType .MATERIALIZED , materializedCount ));
316+ result .put ("dataFetcherResultType" , resultTypes );
287317 return result ;
288318 }
289319
0 commit comments