applicationinsights
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -50,10 +50,11 @@ "use strict"; | ||
this._autoGenerateIncomingRequests = false; | ||
try { | ||
this._functionsCoreModule = require('@azure/functions-core'); | ||
} | ||
catch (error) { | ||
Logging.info("AzureFunctionsHook failed to load, not running in Azure Functions"); | ||
return; | ||
} | ||
this._addPreInvocationHook(); | ||
// TODO: Enable when all Azure Functions scenarios are covered | ||
// try { | ||
// this._functionsCoreModule = require("@azure/functions-core"); | ||
// } | ||
// catch (error) { | ||
// Logging.info("AzureFunctionsHook failed to load, not running in Azure Functions"); | ||
// return; | ||
// } | ||
// this._addPreInvocationHook(); | ||
} | ||
@@ -71,3 +72,3 @@ AzureFunctionsHook.prototype.enable = function (isEnabled) { | ||
if (!this._preInvocationHook) { | ||
this._preInvocationHook = this._functionsCoreModule.registerHook('preInvocation', function (preInvocationContext) { return __awaiter(_this, void 0, void 0, function () { | ||
this._preInvocationHook = this._functionsCoreModule.registerHook("preInvocation", function (preInvocationContext) { return __awaiter(_this, void 0, void 0, function () { | ||
var originalCallback; | ||
@@ -141,3 +142,3 @@ var _this = this; | ||
duration: Date.now() - startTime, | ||
id: (_a = extractedContext.operation) === null || _a === void 0 ? void 0 : _a.parentId, | ||
id: (_a = extractedContext.operation) === null || _a === void 0 ? void 0 : _a.parentId | ||
}); | ||
@@ -144,0 +145,0 @@ this._client.flush(); |
import Contracts = require("./Contracts"); | ||
export declare const APPLICATION_INSIGHTS_SDK_VERSION = "2.4.0"; | ||
export declare const APPLICATION_INSIGHTS_SDK_VERSION = "2.4.1"; | ||
export declare const DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio.com"; | ||
@@ -4,0 +4,0 @@ export declare const DEFAULT_LIVEMETRICS_ENDPOINT = "https://rt.services.visualstudio.com"; |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.WEB_INSTRUMENTATION_DEPRECATED_SOURCE = exports.WEB_INSTRUMENTATION_DEFAULT_SOURCE = exports.TIME_SINCE_ENQUEUED = exports.ENQUEUED_TIME = exports.MessageBusDestination = exports.MicrosoftEventHub = exports.AzNamespace = exports.StatsbeatNetworkCategory = exports.StatsbeatFeatureType = exports.StatsbeatInstrumentation = exports.StatsbeatFeature = exports.StatsbeatCounter = exports.StatsbeatAttach = exports.StatsbeatResourceProvider = exports.StatsbeatTelemetryName = exports.HeartBeatMetricName = exports.DependencyTypeName = exports.TelemetryTypeStringToQuickPulseDocumentType = exports.TelemetryTypeStringToQuickPulseType = exports.QuickPulseType = exports.QuickPulseDocumentType = exports.PerformanceToQuickPulseCounter = exports.MetricId = exports.PerformanceCounter = exports.QuickPulseCounter = exports.DEFAULT_LIVEMETRICS_HOST = exports.DEFAULT_LIVEMETRICS_ENDPOINT = exports.DEFAULT_BREEZE_ENDPOINT = exports.APPLICATION_INSIGHTS_SDK_VERSION = void 0; | ||
exports.APPLICATION_INSIGHTS_SDK_VERSION = "2.4.0"; | ||
exports.APPLICATION_INSIGHTS_SDK_VERSION = "2.4.1"; | ||
exports.DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio.com"; | ||
@@ -8,0 +8,0 @@ exports.DEFAULT_LIVEMETRICS_ENDPOINT = "https://rt.services.visualstudio.com"; |
@@ -6,3 +6,3 @@ { | ||
"bugs": "https://github.com/microsoft/ApplicationInsights-node.js/issues", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "Microsoft Application Insights module for Node.js", | ||
@@ -49,2 +49,3 @@ "repository": { | ||
"@types/cls-hooked": "^4.3.3", | ||
"@types/long": "^4.0.2", | ||
"@types/mocha": "^7.0.2", | ||
@@ -51,0 +52,0 @@ "@types/node": "^8.0.0", |
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
1563359
373
14421
19