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 1.8.8 to 1.8.9

out/Declarations/Contracts/TelemetryTypes/EnvelopeTelemetry.d.ts

0

out/applicationinsights.d.ts

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -59,2 +59,3 @@ /**

export declare class OpenTelemetryScopeManagerWrapper {
private _activeSymbol;
active(): any;

@@ -61,0 +62,0 @@ with(span: Span, fn: () => any): any;

@@ -48,4 +48,15 @@ "use strict";

OpenTelemetryScopeManagerWrapper.prototype.active = function () {
var _this = this;
var context = CorrelationContextManager_1.CorrelationContextManager.getCurrentContext();
return __assign({}, context, { getValue: function () { return context; }, setValue: function () { } });
return __assign({}, context, { getValue: function (key) {
// todo: lazy import activeSymbol from opentelemetry/api
if (!_this._activeSymbol) {
_this._activeSymbol = key;
return context;
}
if (key === _this._activeSymbol) {
return context;
}
return false;
}, setValue: function () { } });
};

@@ -52,0 +63,0 @@ OpenTelemetryScopeManagerWrapper.prototype.with = function (span, fn) {

@@ -0,0 +0,0 @@ import TelemetryClient = require("../Library/TelemetryClient");

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ import TelemetryClient = require("../../Library/TelemetryClient");

import TelemetryClient = require("../../Library/TelemetryClient");
export declare function enable(enabled: boolean, client: TelemetryClient): void;
export declare function dispose(): void;
import TelemetryClient = require("../../Library/TelemetryClient");
export declare function enable(enabled: boolean, client: TelemetryClient): void;
export declare function dispose(): void;
export declare const IsInitialized: boolean;
export declare function registerContextPreservation(cb: (cb: Function) => Function): void;

@@ -0,0 +0,0 @@ import TelemetryClient = require("../../Library/TelemetryClient");

@@ -0,0 +0,0 @@ import TelemetryClient = require("../../Library/TelemetryClient");

@@ -0,0 +0,0 @@ import TelemetryClient = require("../../Library/TelemetryClient");

@@ -0,0 +0,0 @@ import TelemetryClient = require("../../Library/TelemetryClient");

import { Span } from "../AsyncHooksScopeManager";
import * as Contracts from "../../Declarations/Contracts";
export declare function spanToTelemetryContract(span: Span): (Contracts.DependencyTelemetry & Contracts.RequestTelemetry) & Contracts.Identified;
import TelemetryClient = require("../../Library/TelemetryClient");
export declare function enable(enabled: boolean, client: TelemetryClient): void;
export declare function dispose(): void;

@@ -0,0 +0,0 @@ import TelemetryClient = require("../Library/TelemetryClient");

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import TelemetryClient = require("../Library/TelemetryClient");

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import Contracts = require("../Declarations/Contracts");

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

2

out/AutoCollection/HttpDependencyParser.js

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

// Mix in default values used by http.request and others
options.protocol = options.protocol || (request.agent && request.agent.protocol) || undefined;
options.protocol = options.protocol || (request.agent && request.agent.protocol) || (request.protocol) || undefined;
options.hostname = options.hostname || 'localhost';

@@ -163,0 +163,0 @@ return url.format(options);

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import Contracts = require("../Declarations/Contracts");

@@ -116,7 +116,17 @@ "use strict";

var originalHttpServer = http.createServer;
http.createServer = function (onRequest) {
// options parameter was added in Node.js v9.6.0, v8.12.0
// function createServer(requestListener?: RequestListener): Server;
// function createServer(options: ServerOptions, requestListener?: RequestListener): Server;
http.createServer = function (param1, param2) {
// todo: get a pointer to the server so the IP address can be read from server.address
var server = originalHttpServer(wrapOnRequestHandler(onRequest));
wrapServerEventHandler(server);
return server;
if (param2 && typeof param2 === 'function') {
var server = originalHttpServer(param1, wrapOnRequestHandler(param2));
wrapServerEventHandler(server);
return server;
}
else {
var server = originalHttpServer(wrapOnRequestHandler(param1));
wrapServerEventHandler(server);
return server;
}
};

@@ -123,0 +133,0 @@ var originalHttpsServer = https.createServer;

@@ -0,0 +0,0 @@ import TelemetryClient = require("../Library/TelemetryClient");

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import TelemetryClient = require("../Library/TelemetryClient");

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export interface AgentLogger {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import * as types from "../applicationinsights";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import * as DataModel from "./DataModel";

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

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

@@ -65,0 +65,0 @@ }

@@ -0,0 +0,0 @@ import * as DataModel from "./DataModel";

@@ -0,0 +0,0 @@ "use strict";

import { DiagnosticLogger } from "./DiagnosticLogger";
export declare function sdkAlreadyExists(_logger: DiagnosticLogger): boolean;

@@ -0,0 +0,0 @@ "use strict";

export declare const homedir: any;
export declare function makeStatusDirs(filepath: string): boolean;
export declare function renameCurrentFile(filepath: string, filename: string, callback?: (err: Error | null, destfullpath?: string) => void): void;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import * as DataModel from "./DataModel";

@@ -0,0 +0,0 @@ "use strict";

import * as types from "../applicationinsights";
declare var appInsights: typeof types;
export = appInsights;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import * as DataModel from "./DataModel";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import Contracts = require("./Contracts");

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { Domain } from "./Generated";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import Domain = require('./Domain');

@@ -0,0 +0,0 @@ // THIS FILE WAS AUTOGENERATED

@@ -0,0 +0,0 @@ declare class ContextTagKeys {

@@ -0,0 +0,0 @@ // THIS FILE WAS AUTOGENERATED

@@ -0,0 +0,0 @@ import Base = require('./Base');

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import DataPointType = require('./DataPointType');

@@ -0,0 +0,0 @@ // THIS FILE WAS AUTOGENERATED

@@ -0,0 +0,0 @@ // THIS FILE WAS AUTOGENERATED

@@ -0,0 +0,0 @@ import Base = require('./Base');

@@ -0,0 +0,0 @@ import Domain = require('./Domain');

@@ -0,0 +0,0 @@ import Domain = require('./Domain');

@@ -0,0 +0,0 @@ import StackFrame = require('./StackFrame');

@@ -0,0 +0,0 @@ export import AvailabilityData = require("./AvailabilityData");

@@ -0,0 +0,0 @@ // THIS FILE WAS AUTOGENERATED

@@ -0,0 +0,0 @@ import Domain = require('./Domain');

@@ -0,0 +0,0 @@ import Domain = require('./Domain');

@@ -0,0 +0,0 @@ import EventData = require('./EventData');

@@ -0,0 +0,0 @@ import Domain = require('./Domain');

@@ -0,0 +0,0 @@ import Domain = require('./Domain');

@@ -0,0 +0,0 @@ // THIS FILE WAS AUTOGENERATED

@@ -0,0 +0,0 @@ // THIS FILE WAS AUTOGENERATED

@@ -0,0 +0,0 @@ export * from "./Constants";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { DocumentQuickPulse } from "./DocumentQuickPulse";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=DependencyDocumentQuickPulse.js.map

@@ -0,0 +0,0 @@ export interface DocumentQuickPulse {

@@ -0,0 +0,0 @@ import { DocumentQuickPulse } from "./DocumentQuickPulse";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=EnvelopeQuickPulse.js.map

@@ -0,0 +0,0 @@ import { DocumentQuickPulse } from "./DocumentQuickPulse";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=EventDocumentQuickPulse.js.map

@@ -0,0 +0,0 @@ import { DocumentQuickPulse } from "./DocumentQuickPulse";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ExceptionDocumentQuickPulse.js.map

@@ -0,0 +0,0 @@ export * from "./MetricQuickPulse";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=index.js.map

@@ -0,0 +0,0 @@ import { DocumentQuickPulse } from "./DocumentQuickPulse";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=MessageDocumentQuickPulse.js.map

@@ -0,0 +0,0 @@ export interface MetricQuickPulse {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=MetricQuickPulse.js.map

@@ -0,0 +0,0 @@ import { DocumentQuickPulse } from "./DocumentQuickPulse";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=RequestDocumentQuickPulse.js.map

@@ -0,0 +0,0 @@ import { Telemetry } from "./Telemetry";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=AvailabilityTelemetry.js.map

@@ -0,0 +0,0 @@ import { Telemetry } from "./Telemetry";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=DependencyTelemetry.js.map

@@ -0,0 +0,0 @@ import { Telemetry } from "./Telemetry";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=EventTelemetry.js.map

@@ -0,0 +0,0 @@ import { Telemetry } from "./Telemetry";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ExceptionTelemetry.js.map

@@ -12,2 +12,3 @@ export * from "./DependencyTelemetry";

export * from "./PageViewTelemetry";
export * from "./EnvelopeTelemetry";
export * from "./TelemetryType";

@@ -0,0 +0,0 @@ import { Telemetry } from "./Telemetry";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=MetricTelemetry.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=NodeHttpDependencyTelemetry.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=NodeHttpRequestTelemetry.js.map

@@ -0,0 +0,0 @@ import { Telemetry } from "./Telemetry";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=PageViewTelemetry.js.map

@@ -0,0 +0,0 @@ import { Telemetry } from "./Telemetry";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=RequestTelemetry.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=Telemetry.js.map

@@ -0,0 +0,0 @@ export declare type TelemetryTypeKeys = "Event" | "Exception" | "Trace" | "Metric" | "Request" | "Dependency" | "Availability" | "PageView";

@@ -0,0 +0,0 @@ import { Telemetry } from "./Telemetry";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=TraceTelemetry.js.map

@@ -24,3 +24,3 @@ import Contracts = require("../Declarations/Contracts");

*/
send(envelope: Contracts.Envelope): void;
send(envelope: Contracts.EnvelopeTelemetry): void;
/**

@@ -30,4 +30,4 @@ * Immediately send buffered data

triggerSend(isNodeCrashing: boolean, callback?: (v: string) => void): void;
protected _stringify(envelope: Contracts.Envelope): string;
protected _stringify(envelope: Contracts.EnvelopeTelemetry): string;
}
export = Channel;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { ConnectionString } from "../Declarations/Contracts";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import Contracts = require("../Declarations/Contracts");

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

this.tags = {};
this._loadApplicationContext();
this._loadApplicationContext(packageJsonPath);
this._loadDeviceContext();

@@ -14,0 +14,0 @@ this._loadInternalContext();

@@ -0,0 +0,0 @@ import Config = require("./Config");

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import Contracts = require("../Declarations/Contracts");

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=FlushOptions.js.map

@@ -0,0 +0,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=Functions.js.map

@@ -0,0 +0,0 @@ declare class Logging {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import TelemetryClient = require("./TelemetryClient");

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import Contracts = require("../Declarations/Contracts");

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import Config = require("./Config");

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ declare const _default: {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ declare const _default: {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -88,3 +88,3 @@ import Config = require("./Config");

*/
addTelemetryProcessor(telemetryProcessor: (envelope: Contracts.Envelope, contextObjects?: {
addTelemetryProcessor(telemetryProcessor: (envelope: Contracts.EnvelopeTelemetry, contextObjects?: {
[name: string]: any;

@@ -91,0 +91,0 @@ }) => boolean): void;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

export * from "./SamplingTelemetryProcessor";
export * from "./PerformanceMetricsTelemetryProcessor";

@@ -0,0 +0,0 @@ "use strict";

import Contracts = require("../Declarations/Contracts");
import QuickPulseStateManager = require("../Library/QuickPulseStateManager");
export declare function performanceMetricsTelemetryProcessor(envelope: Contracts.Envelope, client?: QuickPulseStateManager): boolean;
export declare function performanceMetricsTelemetryProcessor(envelope: Contracts.EnvelopeTelemetry, client?: QuickPulseStateManager): boolean;

@@ -6,3 +6,3 @@ import Contracts = require("../Declarations/Contracts");

*/
export declare function samplingTelemetryProcessor(envelope: Contracts.Envelope, contextObjects: {
export declare function samplingTelemetryProcessor(envelope: Contracts.EnvelopeTelemetry, contextObjects: {
correlationContext: CorrelationContext;

@@ -9,0 +9,0 @@ }): boolean;

@@ -5,3 +5,3 @@ {

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

@@ -67,4 +67,4 @@ "repository": {

"diagnostic-channel": "0.3.1",
"diagnostic-channel-publishers": "0.4.2"
"diagnostic-channel-publishers": "0.4.3"
}
}

@@ -59,2 +59,4 @@ # Application Insights for Node.js

> *Important:* `applicationinsights` must be setup *and* started *before* you import anything else. There may be resulting telemetry loss if other libraries are imported first.
For out-of-the-box collection of HTTP requests, popular third-party library events,

@@ -296,2 +298,4 @@ unhandled exceptions, and system metrics:

Note that custom properties are converted to their string representation before being sent, see [Using properties](https://docs.microsoft.com/azure/azure-monitor/app/api-custom-events-metrics#properties) for more information.
An example utility using `trackMetric` to measure how long event loop scheduling takes:

@@ -298,0 +302,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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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