/azure-monitor-opentelemetry-node.js

Sample repository demonstrating Azure Monitor OpenTelemetry for Node.js

Primary LanguageTypeScriptMIT LicenseMIT

Azure Monitor OpenTelemetry for Node.js

Sample app demonstrating how to instrument your application with Azure Monitor OpenTelemetry.

Contains both samples for the Application Insights 3.x beta and the Application Insights shim for Application Insights 2.x APIs.

How to run the sample app

  1. Install all dependencies.
   npm install
  1. Update .env file with Application Insights Connection String and Azure Event Hub name and host.

  2. Start Docker running following command inside docker folder.

    docker compose up 
  3. Build project

    npm run build
  4. Start server

    npm run server
  5. Start client

    npm run client
  6. Telemetry should be available and visible in Azure Portal in Application Resource which connection string was provided. To visualize telemetry exported through OTLP to Zipkin, you can use http://localhost:9411/zipkin

Resources