0

I'm struggling to enable automatic log collection for @azure/arm SDKs. Currently, I'm using @azure/arm-keyvault, @azure/arm-network and @azure/arm-resources. Is there some extra configuration needed? I thought HTTP logs are collected automatically.

@microsoft/microsoft-graph-client, @azure/cosmos and lots of other dependency logs are collected flawlessly. I use node 18LTS and tested 16LTS. applicationinsights package version is 2.3.6

appInsights
  .setup(configService.get("APPLICATIONINSIGHTS_CONNECTION_STRING"))
  .setDistributedTracingMode(DistributedTracingModes.AI_AND_W3C)
  .setAutoCollectConsole(false, false)
  .setAutoCollectExceptions(true)
  .setAutoCollectPerformance(true, true)
  .setAutoCollectPreAggregatedMetrics(true)
  .setAutoCollectHeartbeat(true)
  .setAutoCollectRequests(true)
  .setAutoCollectDependencies(true)
  .setAutoDependencyCorrelation(true)
  .setUseDiskRetryCaching(true)
  .setInternalLogging(false, true)
  .setSendLiveMetrics(true)
  .start();

In this screenshot one can see the missing dependency logs. The health requests takes 3 second and there are no correlated logs for the last 2 seconds, when arm SDKs are making requests. The logs are missing in the transactions list as well. Application Insights

Originally posted on AI repo: https://github.com/microsoft/ApplicationInsights-node.js/issues/1055

Dan
  • 787
  • 1
  • 7
  • 20

0 Answers0