Skip to content

RequestId should be included in logging template in AzureAppServices #28382

Open
@jbrinkle

Description

@jbrinkle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-azureIssues related to integration with Azure components (Azure App Service Logging, App Insights, etc.)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions