You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@microsoft/applicationinsights-common

Package Overview
Dependencies
Maintainers
0
Versions
694
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/applicationinsights-common

Microsoft Application Insights Common JavaScript Library

3.3.10-nightly3.2507-26
nightly3
Source
npmnpm
Version published
Weekly downloads
829K
5.72%
Maintainers
0
Weekly downloads
 
Created

What is @microsoft/applicationinsights-common?

@microsoft/applicationinsights-common is a package that provides common functionalities and types used by the Application Insights JavaScript SDK. It includes telemetry types, enums, and utility functions that are essential for tracking and monitoring web applications.

What are @microsoft/applicationinsights-common's main functionalities?

Telemetry Types

This feature provides various telemetry types such as EventTelemetry and ExceptionTelemetry, which are used to log different kinds of telemetry data.

const { EventTelemetry, ExceptionTelemetry } = require('@microsoft/applicationinsights-common');

const eventTelemetry = new EventTelemetry('myEvent');
const exceptionTelemetry = new ExceptionTelemetry(new Error('Something went wrong'));

console.log(eventTelemetry);
console.log(exceptionTelemetry);

Enums

This feature includes enums like SeverityLevel, which can be used to categorize the severity of telemetry data.

const { SeverityLevel } = require('@microsoft/applicationinsights-common');

console.log(SeverityLevel.Critical);
console.log(SeverityLevel.Warning);

Utility Functions

This feature provides utility functions such as Util.isArray and Util.isString, which are helpful for type checking and other common operations.

const { Util } = require('@microsoft/applicationinsights-common');

const isArray = Util.isArray([1, 2, 3]);
const isString = Util.isString('hello');

console.log(isArray); // true
console.log(isString); // true

Other packages similar to @microsoft/applicationinsights-common

FAQs

Package last updated on 29 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts