0.0.2-1 • Published 5 years ago

@croudtech/applicationinsights v0.0.2-1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

@croudtech/applicationinsights

Croud's dynamic Application Insights module that extends @nuxtjs/applicationinsights but allows us dynamically set the instrumentationKey via an ENV_VAR

Installation

You can install this package globally with NPM

npm install -g @croudtech/applicationinsights

or Yarn

yarn add @croudtech/applicationinsights

Setup

Add the module to you nuxt.config.js, ensure you remove the old @nuxtjs/applicationinsights module

{
  modules: [
    '@croudtech/applicationinsights',
  ],

  appInsights: {
    instrumentationKey: '' //  your project's Instrumentation Key here
  }
}

Nuxt compatibility

Versions of NuxtJS before v2.4.0 are not supported by this package.

Usage

As this module extends @nuxtjs/applicationinsights you can use any of the functionality outlined in their docs

Options

Any of the options for @nuxtjs/applicationinsights will be respected by this module

envVar

  • Type: String
    • default AZURE_APP_INSIGHTS_KEY
    • Use this to specify the name of the ENV_VAR to use for the dynamic instrumentation key