Azure Application Insights is not receiving telemetry from local

2026-03-30T18:52:15.6333333+00:00

Azure Application Insights was configured in two backend services running locally, one in Node.js and the other in Python. However, no telemetry is being displayed in Azure Portal. No data appears in tables such as traces, requests, dependencies, or customEvents.

The connection string is configured through environment variables and is successfully validated at application startup. The Application Insights resource is enabled in Azure, and the user has the required access role on the resource.

Environment

ComponentDetailNode.jsv24.13.0----------------Node.jsv24.13.0TypeScript^5.3.2Python3.12.0Operating systemWindows 11 (local)Node.js SDK installed@azure/monitor-opentelemetry@1.16.0Python SDKazure-monitor-opentelemetry## Current implementation

Node.js

Telemetry is initialized at application startup using the following implementation:

import * as appInsights from 'applicationinsights';

export function initTelemetry(connectionString: string | undefined): void {
    if (!connectionString) {
        console.warn('[Telemetry] Connection string is not defined. Telemetry disabled.');
        return;
    }

    appInsights
        .setup(connectionString)
        .setAutoDependencyCorrelation(true)
        .setAutoCollectRequests(true)
        .setAutoCollectPerformance(true)
        .setAutoCollectExceptions(true)
        .setAutoCollectDependencies(true)
        .setAutoCollectConsole(true, true)
        .setUseDiskRetryCaching(true)
        .setSendLiveMetrics(true)
        .start();

    appInsights.defaultClient.trackEvent({
        name: 'AppStartup',
        properties: { 'telemetry.startup': 'true' }
    });
}

Telemetry is initialized before the rest of the application starts.

Python

Azure Monitor is configured at startup using configure_azure_monitor, and custom events are sent through logging.

Environment variable

APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=...;IngestionEndpoint=...;...

Current Azure status

  • Application Insights resource is enabled
  • Local application is enabled in the resource
  • User role assigned: Monitoring Metrics Publisher
Azure Monitor
Azure Monitor

An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.


1 answer

Sort by: Most helpful
  1. Sina Salam 31,456 Reputation points Volunteer Moderator
    2026-05-11T16:42:11.8166667+00:00

    Hello Maria Natalia Benavides Sanabria,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that your Azure Application Insights is not receiving telemetry from local.

    To resolve all the issues. Use LTS Node.js and initialize Azure Monitor OpenTelemetry first (useAzureMonitor before any imports), configure Python with configure_azure_monitor, ensure Entra ID ingestion isn’t blocking key-based telemetry, then query the linked workspace using AppTraces/AppRequests/... tables with Monitoring Reader (or equivalent) permissions. For more steps by steps use the following link: https://learn.microsoft.com/en-us/javascript/api/overview/azure/monitor-opentelemetry-readme?view=azure-node-latest, https://www.npmjs.com/package/@azure/monitor-opentelemetry, https://learn.microsoft.com/en-us/python/api/overview/azure/monitor-opentelemetry-readme?view=azure-python, https://learn.microsoft.com/en-us/troubleshoot/azure/azure-monitor/app-insights/telemetry/investigate-missing-telemetry, https://learn.microsoft.com/en-us/azure/azure-monitor/app/create-workspace-resource, https://docs.azure.cn/en-us/azure-monitor/reference/tables/microsoft-insights_components, https://learn.microsoft.com/en-us/azure/azure-monitor/fundamentals/roles-permissions-security, https://learn.microsoft.com/en-us/azure/azure-monitor/logs/manage-access

    I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.