@@ -76,30 +76,30 @@ void getInsights() throws JsonProcessingException {
7676 Date customStartTimeFiveDaysBefore = Date .from (actualStartTimeNow .toInstant ().minus (5 , ChronoUnit .DAYS ));
7777 List <CodeObjectInsight > expectedCodeObjectInsights = new ArrayList <>();
7878
79- HotspotInsight expectedHotspotInsight = new HotspotInsight (codeObjectId , ENV_1 , SCOPE_1 , IMPORTANCE_3 , null , actualStartTimeNow , customStartTimeFiveDaysBefore , prefixedCodeObjectId , 75 );
79+ HotspotInsight expectedHotspotInsight = new HotspotInsight (codeObjectId , ENV_1 , SCOPE_1 , IMPORTANCE_3 , null , actualStartTimeNow , customStartTimeFiveDaysBefore , prefixedCodeObjectId , null , 75 );
8080 expectedCodeObjectInsights .add (expectedHotspotInsight );
8181
8282 ErrorInsightNamedError namedError1 = new ErrorInsightNamedError ("e0a4d03c-c609-11ec-a9d6-0242ac130006" , "System.NullReferenceException" , codeObjectId , "Sample.MoneyTransfer.API.Controllers.TransferController$_$TransferFunds" );
8383 ErrorInsightNamedError namedError2 = new ErrorInsightNamedError ("de63a938-c609-11ec-b388-0242ac130006" , "System.Exception" , codeObjectId , "Sample.MoneyTransfer.API.Controllers.TransferController$_$TransferFunds" );
8484 List <ErrorInsightNamedError > namedErrors = new ArrayList <>();
8585 namedErrors .add (namedError1 );
8686 namedErrors .add (namedError2 );
87- ErrorInsight expectedErrorInsight = new ErrorInsight (codeObjectId , ENV_1 , SCOPE_1 , IMPORTANCE_3 , null , actualStartTimeNow , customStartTimeFiveDaysBefore , prefixedCodeObjectId , 1 , 0 , 0 , namedErrors );
87+ ErrorInsight expectedErrorInsight = new ErrorInsight (codeObjectId , ENV_1 , SCOPE_1 , IMPORTANCE_3 , null , actualStartTimeNow , customStartTimeFiveDaysBefore , prefixedCodeObjectId , null , 1 , 0 , 0 , namedErrors );
8888 expectedCodeObjectInsights .add (expectedErrorInsight );
8989
9090 String expectedNormalUsageInsightCodeObjectId = "Sample.MoneyTransfer.API.Domain.Services.MoneyTransferDomainService$_$TransferFunds" ;
9191 NormalUsageInsight expectedNormalUsageInsight = new NormalUsageInsight ( expectedNormalUsageInsightCodeObjectId , ENV_1 , SCOPE_1 , IMPORTANCE_3 , null ,
92- ROUTE , ENDPOINT_SPAN , actualStartTimeNow , customStartTimeFiveDaysBefore , addPrefixToCodeObjectId (expectedNormalUsageInsightCodeObjectId ), 40 );
92+ ROUTE , ENDPOINT_SPAN , actualStartTimeNow , customStartTimeFiveDaysBefore , addPrefixToCodeObjectId (expectedNormalUsageInsightCodeObjectId ), null , 40 );
9393 expectedCodeObjectInsights .add (expectedNormalUsageInsight );
9494
9595 String expectedLowUsageInsightCodeObjectId = "Sample.MoneyTransfer.API.Domain.Services.MoneyTransferDomainService$_$Abc" ;
9696 LowUsageInsight expectedLowUsageInsight = new LowUsageInsight ( expectedLowUsageInsightCodeObjectId , ENV_1 , SCOPE_1 , IMPORTANCE_3 , null ,
97- ROUTE , ENDPOINT_SPAN , actualStartTimeNow , customStartTimeFiveDaysBefore , addPrefixToCodeObjectId (expectedLowUsageInsightCodeObjectId ), 13 );
97+ ROUTE , ENDPOINT_SPAN , actualStartTimeNow , customStartTimeFiveDaysBefore , addPrefixToCodeObjectId (expectedLowUsageInsightCodeObjectId ), null , 13 );
9898 expectedCodeObjectInsights .add (expectedLowUsageInsight );
9999
100100 String expectedHighUsageInsightCodeObjectId = "Sample.MoneyTransfer.API.Domain.Services.MoneyTransferDomainService$_$Defg" ;
101101 HighUsageInsight expectedHighUsageInsight = new HighUsageInsight ( expectedHighUsageInsightCodeObjectId , ENV_1 , SCOPE_1 , IMPORTANCE_3 , null ,
102- ROUTE , ENDPOINT_SPAN , actualStartTimeNow , customStartTimeFiveDaysBefore , addPrefixToCodeObjectId (expectedHighUsageInsightCodeObjectId ), 98 );
102+ ROUTE , ENDPOINT_SPAN , actualStartTimeNow , customStartTimeFiveDaysBefore , addPrefixToCodeObjectId (expectedHighUsageInsightCodeObjectId ), null , 98 );
103103 expectedCodeObjectInsights .add (expectedHighUsageInsight );
104104
105105 SpanInfo spanInfo = new SpanInfo ("Retrieving account" , "Retrieving account" , "MoneyTransferDomainService" , "Sample.MoneyTransfer.API" ,"Sample.MoneyTransfer.API.MoneyTransferDomainService$_$Error" );
@@ -111,7 +111,7 @@ void getInsights() throws JsonProcessingException {
111111
112112 String expectedSlowestSpansInsightCodeObjectId = "Sample.MoneyTransfer.API.Domain.Services.MoneyTransferDomainService$_$TransferFunds" ;
113113 SlowestSpansInsight expectedSlowestSpansInsight = new SlowestSpansInsight ( expectedSlowestSpansInsightCodeObjectId , ENV_1 , SCOPE_1 , IMPORTANCE_3 , null ,
114- ROUTE , ENDPOINT_SPAN , actualStartTimeNow , customStartTimeFiveDaysBefore , addPrefixToCodeObjectId (expectedSlowestSpansInsightCodeObjectId ), Collections .singletonList (slowSpanInfo ));
114+ ROUTE , ENDPOINT_SPAN , actualStartTimeNow , customStartTimeFiveDaysBefore , addPrefixToCodeObjectId (expectedSlowestSpansInsightCodeObjectId ), null , Collections .singletonList (slowSpanInfo ));
115115 expectedCodeObjectInsights .add (expectedSlowestSpansInsight );
116116
117117 String expectedSlowEndpointInsightCodeObjectId = "Sample.MoneyTransfer.API.Domain.Services.MoneyTransferDomainService$_$TransferFunds" ;
@@ -126,6 +126,7 @@ void getInsights() throws JsonProcessingException {
126126 , actualStartTimeNow
127127 , customStartTimeFiveDaysBefore
128128 , addPrefixToCodeObjectId (expectedSlowEndpointInsightCodeObjectId )
129+ , null
129130 , new Duration (0.11D , "ms" , 11000 )
130131 , new Duration (0.12D , "ms" , 12000 )
131132 , new Duration (0.13D , "ms" , 13000 )
0 commit comments