Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Support disabling the creation of Request-Context header via configuration #613

Closed

Description

Repro Steps

  1. Create ASP.NET Core project and enable Application Insights.

Actual Behavior

Request-Context HTTP header gets set for every (except first?) request.

Expected Behavior

Ability to disable the creation of Request-Context header via configuration or other method.

Version Info

SDK Version : 2.2.1
.NET Version: 2.0.5

Workaround

Custom middleware that removes the header.

            app.Use((context, next) =>
            {
                context.Response.Headers.Remove("Request-Context");
                return next();
            });

Motivation

APIs for Industrial Internet and other scenarios where the bandwidth and client resources are limited and should be used sparingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions