applicationinsights-web-ts
Skill by sickn33
Instruments browser and web apps with the Application Insights JavaScript SDK for real user monitoring. Aimed at developers who want page view, AJAX, fetch, and exception telemetry from client-side code.
Install applicationinsights-web-ts
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/applicationinsights-web-ts ~/.claude/skills/applicationinsights-web-tsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install applicationinsights-web-ts in Claude Code
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/applicationinsights-web-ts ~/.gemini/antigravity-cli/skills/applicationinsights-web-tsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install applicationinsights-web-ts in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an assistant through adding the @microsoft/applicationinsights-web SDK to browser and web apps. It covers real user monitoring (RUM), including page views, AJAX and fetch dependencies, unhandled exceptions, and custom events, metrics, and traces. An optional Click Analytics plugin adds click telemetry from elements marked with data-ai attributes.
The skill covers npm installation, connection string setup, SPA route tracking, telemetry initializers for enrichment and filtering, and distributed tracing with W3C Trace Context. It also describes GenAI agent traces that follow OpenTelemetry GenAI semantic conventions. It is intended for developers working on client-side code, including React, Angular, and React Native plugins. The source says it is distinct from the Node.js server skill.
Written from the project's SKILL.md and checked against it.
What it can do
- Real user monitoringCollects page views, AJAX and fetch dependencies, and unhandled exceptions in the browser.
- Custom telemetrySends custom events, exceptions, traces, and numeric metrics from application code.
- SPA route trackingRecords route changes as page views using built-in history hooks or a React Router wrapper.
- Telemetry initializersAdds tags and data to each telemetry item, or drops items before they are sent.
- Click AnalyticsEmits click telemetry from elements marked with data-ai attributes through an optional plugin.
- Distributed tracingAdds traceparent headers to outbound calls so browser telemetry can link to backend spans.
- GenAI agent tracesEmits dependency telemetry for agent, model, and tool calls using OpenTelemetry GenAI attribute names.
What you need
- An Application Insights resource and its connection string
- npm to install the @microsoft/applicationinsights-web package
- A browser or web app built with a bundler such as Vite, CRA, or Next.js
Try asking
- Add Application Insights browser telemetry to my Vite React app
- Track custom events and exceptions in my checkout page with App Insights
- Set up SPA route tracking for my React Router app with App Insights
Good to know
- The connection string ships to clients in plaintext, and Entra ID auth is not supported for browser telemetry.
- Click Analytics auto capture should stay off until data-tag allowlisting is approved.
- GenAI content attributes such as messages and tool arguments are opt-in and should be avoided in production unless data handling is approved.
- The loader script section in the source is a placeholder and points to the official SDK setup page for the real snippet.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/applicationinsights-web-ts/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md23 KB
Alternatives to applicationinsights-web-ts
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
applicationinsights-web-ts: common questions
Is this skill for Node.js server apps?
No. The source says the azure-monitor-opentelemetry-ts skill is for Node.js server apps, while this skill is for browser and web code, and React Native.
Can browser telemetry use Microsoft Entra ID authentication?
No. The source states that Entra ID auth is not supported for browser telemetry, so the connection string is used instead.
Does the SDK track fetch and XHR calls automatically?
Yes. The source says fetch is auto-instrumented by default and that the SDK adds traceparent headers to outbound fetch and XHR calls when distributed tracing is set.
How do I install applicationinsights-web-ts?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is applicationinsights-web-ts free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is applicationinsights-web-ts safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to applicationinsights-web-ts?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
