Dev & Engineering ✓ Microsoft · Official application-insightsreal-user-monitoringtypescriptbrowser-telemetryopentelemetrygenai-tracingclick-analytics

Application Insights Web Monitoring

Instrument browser and React Native apps with Application Insights for user behavior, requests, errors, and GenAI trace visibility.

FollowSkills review · FSRS-2.0
Use with care
54/ 100 5-point scale 2.7 / 5
1 2 3 4 5 6
1Trust15 / 25 · 3.0/5

The documentation explicitly discloses that the browser connection string is plaintext, warns against reusing backend resources, and provides cookie, consent, sampling, sensitive-GenAI opt-in, and query-string scrubbing guidance. However, the quick-start enables request/response header tracking and sends telemetry externally by design, without a unified user-confirmation flow, complete data-flow inventory, least-privilege guidance, or rollback procedure, so points are deducted.

2Reliability8 / 20 · 2.0/5

The material is organized and covers npm, Loader, frameworks, configuration, pitfalls, and failure telemetry patterns. However, there are no skill-specific tests, pinned compatibility checks, API verification, or reproducible abnormal-input cases; several SDK and OTel mappings depend on current external documentation. Under static calibration the score is capped below 10 and further reduced for uncertainty.

3Adaptability9 / 15 · 3.0/5

The target is clearly browser/Web and React Native Application Insights RUM, and it distinguishes the Node.js skill. Multiple frameworks and scenarios are covered and browser limitations are noted, but non-fit boundaries, semantic trigger rules, Chinese-language support, and mainland-China network reachability are not specified. Loader, Azure endpoints, and external MCP dependencies may also be network-sensitive, so points are deducted.

4Convention11 / 15 · 3.7/5

The skill has clear progressive sections, installation notes, dependency tables, examples, reference files, pitfalls, a license, and a version field. It lacks a changelog and explicit maintenance owner/update process, and its claimed complete references still depend on external Microsoft documentation, so it does not receive full marks.

5Effectiveness7 / 15 · 2.3/5

The skill covers initialization, auto-collection, framework integration, privacy, sampling, distributed tracing, and GenAI queries, which plausibly addresses the core coding task. Because no examples were executed or validated here, actual API compatibility and completeness remain uncertain; users must still configure Azure, CORS, and consent controls and review generated code. It reaches the static-review ceiling of 7 but not higher.

6Verifiability4 / 10 · 2.0/5

The source includes auditable files, references to Microsoft Learn, the SDK, and OTel, plus repository-level CI and test signals. It lacks skill-specific coverage and independently reproducible execution evidence in this review; evidence URLs are intentionally omitted, so only limited credit is justified.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • Do not treat the browser connection string or client telemetry resource as a backend secret; use an isolated resource with constrained access.
  • The example enables request and response header tracking; review and disable it in production if headers may contain PII or credentials.
  • Implement explicit consent, withdrawal, and retention controls before telemetry collection, especially for GenAI messages, tool arguments, and results.
  • Before deployment, verify SDK versions, OTel attribute names, CORS headers, Azure endpoints, and mainland-China reachability; this review did not execute those checks.
See the full review method →

What does this skill do, and when should you use it?

This skill guides TypeScript browser applications through real user monitoring with the Application Insights JavaScript SDK. It covers npm and SDK Loader Script setup, page views, clicks, AJAX/fetch dependencies, exceptions, custom events, and metrics. It also covers React, React Native, and Angular extensions, telemetry initializers, privacy controls, sampling, and unload delivery. For browser-side AI agents, it describes GenAI semantic-convention attributes for agent, model, and tool dependencies and correlation with backend traces.

It explains how to install @microsoft/applicationinsights-web and optional plugins, configure the connection string and automatic collection, and emit telemetry with trackPageView, trackEvent, trackException, trackTrace, trackMetric, and trackDependencyData. It shows how to enrich, filter, and scrub telemetry with initializers; correlate browser requests with backend spans using W3C trace context and CORS; record agent, chat, and tool spans with GenAI attributes; and query those spans with KQL.

  1. A frontend engineer needs automatic page-view and SPA route tracking without double-counting manual page views.
  2. A product team needs browser click analytics, custom business events, page performance data, and Web Vitals.
  3. A full-stack team needs browser fetch/XHR requests correlated with OpenTelemetry-instrumented backend spans.
  4. An AI application developer needs browser-side visibility into agent invocations, model calls, tool execution, latency, and token usage.
  5. A privacy or security team needs cookie controls, consent-based telemetry enablement, and query-string secret scrubbing.

What are this skill's strengths and limitations?

Pros
  • Covers browser RUM, click analytics, exceptions, dependencies, custom metrics, and Web Vitals.
  • Includes guidance for React, React Native, Angular, Next.js, and Vite integrations.
  • Supports W3C traceparent correlation with backend OpenTelemetry spans.
  • Provides GenAI agent, model, and tool span examples plus a KQL query.
  • MIT-licensed and supports both npm and Loader Script setup.
Limitations
  • The browser connection string is exposed to clients, and Microsoft Entra ID authentication is not supported for browser telemetry.
  • Cross-origin distributed tracing requires specific CORS request and response header configuration on the API.
  • GenAI messages, tool arguments, and tool results are opt-in sensitive content and require an approved runtime data-handling policy.
  • The supplied source does not provide a skill-specific test scenario or test result.
  • Current API guidance depends on the `microsoft-docs` MCP and npm version lookup, which may require separate verification in offline environments.

How do you install this skill?

Run npx skills add microsoft/skills in the project and select this skill in the installation wizard; for GitHub Copilot, skills are installed under .github/skills/. Install the application package with npm i --save @microsoft/applicationinsights-web, then add optional plugins only when needed. The source does not document exact installation steps for every other Agent client.

How do you use this skill?

Give the coding Agent a request such as: “Add Application Insights to this TypeScript browser SPA, enable automatic route tracking and W3C distributed tracing, and scrub sensitive URL parameters.” Use @microsoft/applicationinsights-web, call loadAppInsights() once as early as possible, and call trackPageView() for the initial load. For current API patterns, the skill instructs the Agent to search the microsoft-docs MCP and verify the package version with npm view @microsoft/applicationinsights-web version.

How does this skill compare with similar options?

This skill targets browser/web code and React Native. The source explicitly distinguishes it from azure-monitor-opentelemetry-ts, which targets Node.js server applications.

FAQ

Is this skill intended for a Node.js backend?
No. Its scope is browser/web code and React Native; the source identifies `azure-monitor-opentelemetry-ts` for Node.js server applications.
Should the browser connection string be treated like a backend secret?
No. It is shipped to clients in plaintext. The skill recommends a separate Application Insights resource with local authentication enabled for browser RUM.
Can GenAI prompts and tool results be collected by default?
No. System instructions, messages, tool arguments, and tool results are opt-in. They should be gated at runtime and avoided in production without approved data handling.
Does using this skill have a stated service cost?
The repository and skill use the MIT license, but the supplied source does not specify Application Insights service pricing.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure Monitor OpenTelemetry for TypeScript

Add Application Insights observability to Node.js services with OpenTelemetry.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Telemetry for Java

Guides Java teams in exporting OpenTelemetry data to Azure Monitor.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor OpenTelemetry Exporter

Build a controlled Python OpenTelemetry pipeline that exports traces, metrics, and logs to Application Insights.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor OpenTelemetry for Python

Connect Python applications to Application Insights with one-line OpenTelemetry setup.

Dev & Engineering ✓ Microsoft · Official

Azure Application Insights Instrumentation Guide

Practical guidance for adding Application Insights telemetry to Azure-hosted ASP.NET Core and Node.js web apps.

Dev & Engineering ✓ Microsoft · Official

Azure Playwright Cloud Testing

Scale TypeScript Playwright tests on Azure-hosted browsers and publish results.

Dev & Engineering ✓ Microsoft · Official

Azure Web PubSub Real-Time Messaging

Build TypeScript WebSocket messaging, group communication, and live notification features with Azure Web PubSub.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

Configure secure, flexible Microsoft Entra ID authentication for TypeScript Azure applications.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB TypeScript Skill

Gives TypeScript and JavaScript coding agents practical Cosmos DB data-access patterns.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs TypeScript Skill

Build TypeScript event-streaming applications with batching, partition-aware consumers, checkpointing, and Azure identity authentication.

Design & Frontend ✓ Microsoft · Official

Dark Theme React UI System

A reusable foundation for dark React interfaces with Tailwind styling, glassmorphism, and restrained motion.

Dev & Engineering ✓ Microsoft · Official

React Flow Node Builder

Create typed React Flow nodes with handles, resizing behavior, and Zustand-backed state integration.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for TypeScript

A practical guide for uploading, downloading, and managing Azure Blob Storage from TypeScript and JavaScript applications.

Dev & Engineering ✓ Microsoft · Official

Azure AI Content Safety for TypeScript

Add text and image harm detection with customizable blocklists to TypeScript applications.

Dev & Engineering ✓ Microsoft · Official

Azure Document Intelligence for TypeScript

Extract document text, tables, and structured fields in TypeScript applications.

Dev & Engineering ✓ Microsoft · Official

Azure Translation for TypeScript

Build TypeScript applications for text translation, transliteration, language detection, and document translation.

Dev & Engineering ✓ Microsoft · Official

Azure AI Search for TypeScript

Build TypeScript search apps with vector, hybrid, and semantic retrieval patterns.

Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for TypeScript

Build enterprise messaging workflows with Azure Service Bus.

Dev & Engineering ✓ Microsoft · Official

Typed Zustand Store Patterns

Build predictable, reactive Zustand stores with typed state, actions, and selective subscriptions.

Dev & Engineering ✓ Microsoft · Official

Azure AI Projects for TypeScript

Practical TypeScript guidance for building Azure AI Foundry applications with project clients, agents, tools, and evaluations.

Related skills