Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

applicationinsights

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

applicationinsights - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

2

out/AutoCollection/PreAggregatedMetrics.d.ts

@@ -10,4 +10,2 @@ import TelemetryClient = require("../Library/TelemetryClient");

private _isInitialized;
private _lastIntervalRequestExecutionTime;
private _lastIntervalDependencyExecutionTime;
private static _dependencyCountersCollection;

@@ -14,0 +12,0 @@ private static _requestCountersCollection;

10

out/AutoCollection/PreAggregatedMetrics.js

@@ -23,4 +23,2 @@ "use strict";

if (collectionInterval === void 0) { collectionInterval = 60000; }
this._lastIntervalRequestExecutionTime = 0; // the sum of durations which took place during from app start until last interval
this._lastIntervalDependencyExecutionTime = 0;
if (!AutoCollectPreAggregatedMetrics.INSTANCE) {

@@ -156,4 +154,4 @@ AutoCollectPreAggregatedMetrics.INSTANCE = this;

var elapsedMs = currentCounter.time - currentCounter.lastTime;
var averageRequestExecutionTime = ((currentCounter.intervalExecutionTime - this._lastIntervalRequestExecutionTime) / intervalRequests) || 0;
this._lastIntervalRequestExecutionTime = currentCounter.intervalExecutionTime; // reset
var averageRequestExecutionTime = ((currentCounter.intervalExecutionTime - currentCounter.lastIntervalExecutionTime) / intervalRequests) || 0;
currentCounter.lastIntervalExecutionTime = currentCounter.intervalExecutionTime; // reset
if (elapsedMs > 0) {

@@ -182,4 +180,4 @@ if (intervalRequests > 0) {

var elapsedMs = currentCounter.time - currentCounter.lastTime;
var averageDependencyExecutionTime = ((currentCounter.intervalExecutionTime - this._lastIntervalDependencyExecutionTime) / intervalDependencies) || 0;
this._lastIntervalDependencyExecutionTime = currentCounter.intervalExecutionTime; // reset
var averageDependencyExecutionTime = ((currentCounter.intervalExecutionTime - currentCounter.lastIntervalExecutionTime) / intervalDependencies) || 0;
currentCounter.lastIntervalExecutionTime = currentCounter.intervalExecutionTime; // reset
if (elapsedMs > 0) {

@@ -186,0 +184,0 @@ if (intervalDependencies > 0) {

@@ -65,3 +65,3 @@ "use strict";

extensionVersion: process.env.ApplicationInsightsAgent_EXTENSION_VERSION,
sdkVersion: "2.1.1",
sdkVersion: "2.1.2",
subscriptionId: process.env.WEBSITE_OWNER_NAME ? process.env.WEBSITE_OWNER_NAME.split("+")[0] : null,

@@ -68,0 +68,0 @@ }

@@ -8,4 +8,5 @@ import { MetricBaseDimensions } from "./AggregatedMetricDimensions";

intervalExecutionTime: number;
lastIntervalExecutionTime: number;
dimensions: MetricBaseDimensions;
constructor(dimensions: MetricBaseDimensions);
}

@@ -11,2 +11,3 @@ "use strict";

this.lastTime = +new Date;
this.lastIntervalExecutionTime = 0;
}

@@ -13,0 +14,0 @@ return AggregatedMetricCounter;

@@ -6,3 +6,3 @@ {

"bugs": "https://github.com/microsoft/ApplicationInsights-node.js/issues",
"version": "2.1.1",
"version": "2.1.2",
"description": "Microsoft Application Insights module for Node.js",

@@ -9,0 +9,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc