Application insights telemetryClient.TrackTrace() Only Sending First Trace RRS feed

  • Question

  • Hello,

    I am new to application insights.  I am able to send a log message to application insights using the C# telemetryClient's TrackTrace method.  However only the first trace that I send shows up each day.  I am thinking that the trace message may be getting grouped or something.  Does anyone have any ideas on what could be causing this below is my code snippt.

                TelemetryConfiguration configuration = TelemetryConfiguration.CreateDefault();
                configuration.InstrumentationKey = "XXXXXXXXXXXXXXXXXXXXXXXXXX";
                configuration.TelemetryChannel.EndpointAddress = "";

                TelemetryClient telemetryClient = new TelemetryClient(configuration);

                telemetryClient.TrackTrace("Trace Msg #1");

                telemetryClient.TrackTrace("Trace Msg #2");

    The first time I run this code each day the first message is dislayed in the Azure Log Analytics query display.

    • Edited by JBLENNON Monday, December 23, 2019 5:50 PM
    Monday, December 23, 2019 5:36 PM


All replies