@croudtech/applicationinsights

    0.0.2-1 • Public • Published

    @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

    Install

    npm i @croudtech/applicationinsights

    DownloadsWeekly Downloads

    1

    Version

    0.0.2-1

    License

    MIT

    Unpacked Size

    3.11 kB

    Total Files

    4

    Last publish

    Collaborators

    • paul-watkins-croud
    • croud_admin
    • brockreece