Install any skill in seconds. Free to start, no credit card required.
Get Started Free →microsoft/applicationinsights-web-ts
Instrument browser/web apps with the Application Insights JavaScript SDK (@microsoft/applicationinsights-web).
Passed 21 of 22 test cases with the skill, and 11 of 22 without it.
and 8 more in the full report
10 fixed11 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 10 test cases the skill fixed. Same model, same prompt, with and without the skill.
I'm executing LLM tool invocations and model calls directly in a browser client using TypeScript. I want a reusable wrapper helper that tracks these client-side GenAI operations as Application Insights dependencies following OpenTelemetry semantic conventions, measuring execution duration, recording token counts, and logging exceptions on failure. Please provide a complete TypeScript helper module for this instrumentation.
| Checked | Without skill | With skill |
|---|---|---|
| Sets the dependency payload type property specifically to "GenAI". | Passed | Passed |
| Uses provider attribute key naming rather than legacy system attribute key naming for the AI platform. | Missed | Passed |
| Includes tool invocation tracking properties specifying tool execution attributes. | Passed | Passed |
The instructions your model reads when the skill loads.
Real User Monitoring (RUM) for browser apps with @microsoft/applicationinsights-web. Auto-collects page views, AJAX/fetch dependencies, unhandled exceptions, and (with the Click Analytics plugin) clicks. Supports custom events, metrics, and GenAI agent traces that follow OpenTelemetry GenAI semantic conventions and correlate to backend spans via W3C Trace Context.
Distinct from
azure-monitor-opentelemetry-ts, which is for Node.js server apps. This skill is for browser/web code (and React Native).
Search microsoft-docs MCP for current API patterns:
npm view @microsoft/applicationinsights-web version| Package | Purpose |
|---|---|
@microsoft/applicationinsights-web | Core RUM SDK (page views, AJAX, exceptions). |
@microsoft/applicationinsights-clickanalytics-js | Auto-collect click telemetry. |
@microsoft/applicationinsights-react-js | React plugin (router instrumentation, hooks, HOC, ErrorBoundary). |
@microsoft/applicationinsights-react-native | React Native plugin (native crashes, sessions). |
@microsoft/applicationinsights-angularplugin-js | Angular plugin (router events, ErrorHandler). |
@microsoft/applicationinsights-debugplugin-js | Dev-only telemetry inspector. |
@microsoft/applicationinsights-perfmarkmeasure-js | User Timing (performance.mark/measure) integration. |
npm i --save @microsoft/applicationinsights-web
# Optional plugins (install only what you use):
npm i --save @microsoft/applicationinsights-clickanalytics-js
npm i --save @microsoft/applicationinsights-react-js @microsoft/applicationinsights-react-native @microsoft/applicationinsights-angularplugin-js
Typings ship with the package — no separate @types/... install needed.
test cases passed, vs 11 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.