Socket
Socket
Sign inDemoInstall

@microsoft/applicationinsights-channel-js

Package Overview
Dependencies
Maintainers
0
Versions
563
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/applicationinsights-channel-js

Microsoft Application Insights JavaScript SDK Channel


Version published
Maintainers
0
Created

What is @microsoft/applicationinsights-channel-js?

@microsoft/applicationinsights-channel-js is a JavaScript library that provides a channel for sending telemetry data to the Application Insights service. It is part of the larger Application Insights SDK and is used to manage the transmission of telemetry data, including batching, retry policies, and endpoint management.

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

Telemetry Data Transmission

This feature allows you to send telemetry data to the Application Insights service. The code sample demonstrates how to create a Sender instance and send a custom event with properties.

const { Sender } = require('@microsoft/applicationinsights-channel-js');
const sender = new Sender();
sender.send({
  name: 'customEvent',
  properties: { key: 'value' }
});

Batching Telemetry Data

This feature allows you to configure batching of telemetry data to optimize network usage. The code sample shows how to configure the Sender with a maximum batch size and interval.

const { Sender } = require('@microsoft/applicationinsights-channel-js');
const sender = new Sender({
  maxBatchSizeInBytes: 102400,
  maxBatchInterval: 15000
});
sender.send({
  name: 'customEvent',
  properties: { key: 'value' }
});

Retry Policies

This feature allows you to configure retry policies for sending telemetry data. The code sample demonstrates how to set the maximum number of retries and the interval between retries.

const { Sender } = require('@microsoft/applicationinsights-channel-js');
const sender = new Sender({
  maxRetries: 3,
  retryInterval: 1000
});
sender.send({
  name: 'customEvent',
  properties: { key: 'value' }
});

Other packages similar to @microsoft/applicationinsights-channel-js

FAQs

Package last updated on 08 Aug 2024

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

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