Closed asafchen-dig closed 1 year ago
The task is about adding an additional data to the ScalingInsight. In order to see this insight:
Sample.MoneyTransfer.API
ClientTester
SampleInsightsController.Lock
The new section in the insight json:
"rootCauseSpans": [ { "sampleTraceId": "794DBD49DC6678ACFF80A1EDBDC41BF5", "name": "WaitForLock", "displayName": "WaitForLock", "instrumentationLibrary": "SampleInsightsController", "serviceName": null, "codeObjectId": null, "kind": "Internal" } ]
Note that the RootCauseSpan contains all the fields of SpanInfo, which is used to find the span in the code
RootCauseSpan
SpanInfo
The whole insight json:
{ "category": "Performance", "specifity": 4, "scope": "Span", "name": "Scaling Issue Found", "type": "SpanScaling", "importance": 2, "spanName": "HTTP GET SampleInsights/lock/{milisec}", "turningPointConcurrency": 12, "maxConcurrency": 16, "minDuration": { "value": 2.12, "unit": "sec", "raw": 2118018500 }, "maxDuration": { "value": 8.92, "unit": "sec", "raw": 8920343606.25 }, "rootCauseSpans": [ { "sampleTraceId": "794DBD49DC6678ACFF80A1EDBDC41BF5", "name": "WaitForLock", "displayName": "WaitForLock", "instrumentationLibrary": "SampleInsightsController", "serviceName": null, "codeObjectId": null, "kind": "Internal" } ], "shortDisplayInfo": { "title": "", "targetDisplayName": "", "subtitle": "", "description": "" }, "codeObjectId": "Sample.MoneyTransfer.API.Controllers.SampleInsightsController$_$Lock(Double)", "decorators": [ { "title": "Scaling badly", "description": "This code experiences exponential grows in duration after 12 concurrent executions" } ], "environment": "ASAFC-LAPTOP[LOCAL]", "severity": 0, "prefixedCodeObjectId": "method:Sample.MoneyTransfer.API.Controllers.SampleInsightsController$_$Lock(Double)", "customStartTime": null, "actualStartTime": "2023-01-09T00:00:00Z" }
The task is about adding an additional data to the ScalingInsight. In order to see this insight:
Sample.MoneyTransfer.API
projectClientTester
projectSampleInsightsController.Lock
The new section in the insight json:
Note that the
RootCauseSpan
contains all the fields ofSpanInfo
, which is used to find the span in the codeThe whole insight json: