Q: I don't see my track trace message in Application Insights I have a simple console app that tracks trace. However, it's not logging the trace message in application insights from Azure web portal. What did I miss?
I've looked at the https://learn.microsoft.com/en-us/azure/application-insights/application-insights-console from docs.ms.com, and couldn't find an answer there.
class Program
{
    static void Main(string[] args)
    {
        TelemetryConfiguration.Active.InstrumentationKey = "<KEY_HERE>";
        var telemetryClient = new TelemetryClient();

        // Get the object used to communicate with the FTP server
        FtpWebRequest request = (FtpWebRequest)WebRequest.Create(Properties.Settings.Default.FtpEndpoint);

        // FTP credentials
        request.Credentials = new NetworkCredential(Properties.Settings.Default.FtpUserName, Properties.Settings.Default.FtpPassword);

        // FTP request method
        request.Method = WebRequestMethods.Ftp.ListDirectoryDetails;

        using (FtpWebResponse response = (FtpWebResponse)request.GetResponse())
        using (Stream responseStream = response.GetResponseStream())
        using (StreamReader reader = new StreamReader(responseStream))
        {
            telemetryClient.TrackTrace("Successfully retrieved a list of FTP directories");
            telemetryClient.Flush();

            Console.WriteLine(reader.ReadToEnd());
        }
    }
}


A: Need to put TelemetryConfiguration object in TelemetryClient().
Please  make sure right key is assigned.
