Share via

Azure Application Insights is not receiving telemetry from local

Maria Natalia Benavides Sanabria 10 Reputation points
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.


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.