In a ASP.NET Core 2 application, I need a unique identifier (e.g. Guid) for each request so I can include that id in each log and understand the sequence of logs of each req
You may use System.Diagnostics.Activity class (source). From Activity User Guide
System.Diagnostics.Activity
Activity.Id serves as hierarchical Request-Id in terms of HTTP Correlation Protocol
Activity.Id
This is used for example by Microsoft/ApplicationInsights-aspnetcore for app monitoring.