Conforming all these db calls
This commit is contained in:
parent
5ca874abe9
commit
05d6977a76
17 changed files with 337 additions and 414 deletions
|
|
@ -6,13 +6,24 @@ namespace Core.Telemetry
|
|||
{
|
||||
private readonly string _filePath;
|
||||
public ITelemetryChannel _defaultChannel;
|
||||
static HttpClient _client = new HttpClient();
|
||||
|
||||
public DebugTelemetryChannel(string filePath)
|
||||
{
|
||||
_client.BaseAddress = new Uri("http://localhost:5341");
|
||||
_filePath = filePath;
|
||||
}
|
||||
public new void Send(ITelemetry telemetry)
|
||||
{
|
||||
var l = new SeqLogger(_client, "", "");
|
||||
|
||||
//await l.LogToSeq(
|
||||
// "Bruger {UserId} loggede ind",
|
||||
// "Debug",
|
||||
// new Dictionary<string, object> { { "UserId", "12345" }, { "Counter", i++ } }
|
||||
// );
|
||||
|
||||
|
||||
if (telemetry is Microsoft.ApplicationInsights.DataContracts.TraceTelemetry trace)
|
||||
{
|
||||
var severity = trace.SeverityLevel;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue