1.0.1 • Published 4 months ago

nuxt-applicationinsights v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

nuxt-applicationinsights

Microsoft Application Insight integration for Nuxt 3.

Features

Quick Setup

  1. Add nuxt-applicationinsights dependency to your project
# Using pnpm
pnpm add -D nuxt-applicationinsights

# Using yarn
yarn add --dev nuxt-applicationinsights

# Using npm
npm install --save-dev nuxt-applicationinsights
  1. Add nuxt-applicationinsights to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    'nuxt-applicationinsights'
  ]
})

That's it! You can now use nuxt-applicationinsights in your Nuxt app ✨

Usage

nitro-applicationinsights will track each request and errors while @microsoft/applicationinsights-web will track client-side events.

nuxt app context

Application insights client is available at useNuxtApp().$appInsights. It is accessible in server and client environment. However types are not the same since it is a TelemetryClient from applicationinsights server side and an ApplicationInsights from @microsoft/applicationinsights-web client-side.

Development

# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release
1.0.1

4 months ago

1.0.0

4 months ago

0.7.0

7 months ago

0.6.1

9 months ago

0.5.3

12 months ago

0.5.0

1 year ago

0.4.1

1 year ago

0.5.2

1 year ago

0.6.0

11 months ago

0.5.1

1 year ago

0.4.0

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago