applicationinsights
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -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; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1122020
10315