Conforming all these db calls

This commit is contained in:
Janus C. H. Knudsen 2025-02-06 23:46:55 +01:00
parent 5ca874abe9
commit 05d6977a76
17 changed files with 337 additions and 414 deletions

View file

@ -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;