dotnet / dotnet/aspnetcore

RequestId should be included in logging template in AzureAppServices

Open
#28,382 7 comments 5 reactions 0 assignees View on GitHub
area-networking enhancement feature-azure
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

### Is your feature request related to a problem? Please describe.
I've added AzureAppService logging to my project with
`logging.AddAzureWebAppDiagnostics();`
And the output doesn't indicate the request ID which prevents anyone from being able to correlate their log entries together.

### Describe the solution you'd like
I want to be able to correlate logs based on the request ID. It appears this project used to support it by allowing an output template to be specified but no longer (see https://blogs.msdn.microsoft.com/webdev/2017/04/26/asp-net-core-logging/)

### Describe alternatives you've considered
I could add Serilog but that feels heavyweight just to change the output template.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.