Tracking request headers in Application Insights

Written by ppolyzos

Software engineer based in Athens, Greece

2 Comments

  1. Mauro Masucci

    Good information but there seems to be an error in your code, you create the class as “public class TelemetryHeadersInitializer : ITelemetryInitializer”

    but then initialise it using “TelemetryConfiguration.Active.TelemetryInitializers.Add(new HeaderTelemetryInitializer()”

    Should it not be the same as the class so it would become “TelemetryConfiguration.Active.TelemetryInitializers.Add(new TelemetryHeadersInitializer()”

Leave a Comment

Your email address will not be published. Required fields are marked *