Here I get trace id
|
var traceId = IsProductionServer() ? $"TraceId: {GetTraceId()}" : string.Empty; |
and then later on I push it into the log here (and other places too), so I can see it in the Seq, when my app runs in the production:
|
Logger.LogInformation($"Fetching weather data in client component - Weather client. {traceId}"); |
But I think that it should be setted somehow in the Program.cs, no?!
Here I get trace id
Observability_WebAPI_Blazor/Observability_WebAPI_Blazor/Observability_WebAPI_Blazor.Client/Pages/WeatherClient.razor
Line 50 in 047ad1e
and then later on I push it into the log here (and other places too), so I can see it in the Seq, when my app runs in the production:
Observability_WebAPI_Blazor/Observability_WebAPI_Blazor/Observability_WebAPI_Blazor.Client/Pages/WeatherClient.razor
Line 51 in 047ad1e
But I think that it should be setted somehow in the
Program.cs, no?!