Ditched app.metrics
This commit is contained in:
@@ -7,7 +7,6 @@ using System.Net.Http;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using App.Metrics;
|
||||
using AyaNova.Util;
|
||||
using AyaNova.Biz;
|
||||
|
||||
@@ -82,11 +81,6 @@ namespace AyaNova.Api.ControllerHelpers
|
||||
log.LogError(context.Exception, "Error");
|
||||
|
||||
|
||||
//Track this exception
|
||||
IMetrics metrics = (IMetrics)ServiceProviderProvider.Provider.GetService(typeof(IMetrics));
|
||||
metrics.Measure.Meter.Mark(MetricsRegistry.UnhandledExceptionsMeter, context.Exception.GetType().ToString());
|
||||
|
||||
|
||||
HttpResponse response = context.HttpContext.Response;
|
||||
response.StatusCode = (int)status;
|
||||
response.ContentType = "application/json; charset=utf-8";
|
||||
|
||||
Reference in New Issue
Block a user