Nationwide Polamorous Matrimony

    appinsights-usage

    1.0.2 • Public • Published

    appinsights-usage

    Javascript module to track usage with Application Insights.

    Current version supports tracking sessions only. We measure session by tracking user activity in web application per browser. Session is closed if user is not active for 30 minutes or he closes all browser tabs with application.

    Installation

    With npm:

    npm install appinsights-usage -save

    Usage

    Include following lines to index.js:

      var AppInsightsUsage = require('appinsights-usage');
      AppInsightsUsage.init({instrumentationKey:'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx'});

    See How to get instrumentation key for Applicaton Insights for more details.

    To see this metric in Azure portal you need to navigate to Application Insights resource, select Metrics Explorer from the top menu and configure one of the empty charts to display Custom metrics "Session Duration (seconds)" . It can take up to 10 minutes for new custom metric to appear in Azure Portal.

    Install

    npm i appinsights-usage

    DownloadsWeekly Downloads

    664

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • anastasiia-zolochevska