Nodejs Migration from Classic Application Insights to OpenTelemetry

Damien 0 Reputation points
2024-04-16T07:56:25.52+00:00

Hi

when migrating from Classic Application Insight to OpenTelemetry as recommended. My application stops auto collecting logs which are generated with console.log console.warn etc in my Node.js application

I use the following config. What is missing? Thank you

const { useAzureMonitor } = require("@azure/monitor-opentelemetry");

useAzureMonitor({

instrumentationOptions: {

http: { enabled: true },

azureSdk: { enabled: true },

mongoDb: { enabled: true }

},

enableLiveMetrics: true,

enableStandardMetrics: true

});

const
useAzureMonitor
instrumentationOptions
http
azureSdk
mongoDb
 },
enableLiveMetrics
enableStandardMetrics
});
Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,645 questions
0 comments No comments
{count} votes

Your answer

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