Application Insights Web for TypeScript

•
6
•

Instruments browser and web applications with the Azure Application Insights JavaScript SDK for comprehensive real user monitoring and distributed tracing.

Application Insights Web for TypeScript guides the setup and configuration of Microsoft's `@microsoft/applicationinsights-web` SDK across web and mobile frontend applications. It enables comprehensive Real User Monitoring (RUM) by capturing page views, user clicks, AJAX/fetch network dependencies, and unhandled exceptions. Additionally, it provides guidance for correlating frontend spans to backend distributed tracing via W3C Trace Context, integrating framework-specific extensions (React, Angular, React Native), and tracing browser-side GenAI agent workflows in Azure Monitor.

Key Features

01Automated Real User Monitoring (RUM) for single-page application route changes and session tracking
02Dependency tracking for AJAX and fetch requests with W3C distributed trace context propagation
036 GitHub stars
04Framework integration support for React, Angular, and React Native plugins
05Client-side GenAI agent interaction tracing conforming to OpenTelemetry semantic conventions
06Automated capture and logging of unhandled client-side exceptions and errors

Use Cases

01Setting up frontend error tracking, performance monitoring, and page view telemetry in modern SPAs
02Correlating client-side user interactions with backend microservices through W3C traceparent headers
03Capturing client-side generative AI interactions and custom telemetry events in Azure Monitor