0.0.2-1 • Published 6 years ago
@croudtech/applicationinsights v0.0.2-1
@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/applicationinsightsor Yarn
yarn add @croudtech/applicationinsightsSetup
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
- default
0.0.2-1
6 years ago