How to Implement API Request Correlation IDs in ASP.NET Core 10 with Serilog
Use a server-generated request ID to find all application log entries for one HTTP request. Keep the W3C trace ID as a separate structured property so operators can follow the request across instrumented services. Serilog’s request middleware adds one completion event with method, path, status and elapsed time.