fix: fix reporting Discord response metrics to influxdb
This commit is contained in:
@@ -209,12 +209,11 @@ namespace Myriad.Rest
|
||||
|
||||
await HandleApiError(response, ignoreNotFound);
|
||||
|
||||
if (OnResponseEvent != null)
|
||||
OnResponseEvent.Invoke(null, (
|
||||
GetEndpointMetricsName(response.RequestMessage!),
|
||||
(int)response.StatusCode,
|
||||
stopwatch.ElapsedTicks
|
||||
));
|
||||
OnResponseEvent?.Invoke(null, (
|
||||
GetEndpointMetricsName(response.RequestMessage!),
|
||||
(int)response.StatusCode,
|
||||
stopwatch.ElapsedTicks
|
||||
));
|
||||
|
||||
return response;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user