docs: rename Microsoft to microsoft (#859)

This commit is contained in:
Mark Wolff 2019-05-08 14:51:09 -07:00 коммит произвёл GitHub
Родитель 558ae6ec91
Коммит 329d77b152
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
29 изменённых файлов: 3635 добавлений и 122 удалений

Просмотреть файл

@ -160,7 +160,7 @@ Parameter | Description
`handledAt` | Deprecated. This argument is ignored. Please pass `null`.
`properties` | Map of string to string: Additional data used to [filter exceptions](https://azure.microsoft.com/documentation/articles/app-insights-api-custom-events-metrics/#properties) in the portal. Defaults to empty.
`measurements` | Map of string to number: Metrics associated with this page, displayed in Metrics Explorer on the portal. Defaults to empty.
`severityLevel` | Supported values: [SeverityLevel.ts](https://github.com/Microsoft/ApplicationInsights-JS/blob/master/JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/SeverityLevel.ts)
`severityLevel` | Supported values: [SeverityLevel.ts](https://github.com/microsoft/ApplicationInsights-JS/blob/master/JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/SeverityLevel.ts)
In the portal, you can [search on exception type and view](https://azure.microsoft.com/documentation/articles/app-insights-diagnostic-search/) the type, message, and stack trace of individual instances.
@ -186,7 +186,7 @@ Log a diagnostic event such as entering or leaving a method.
---|---
`message` | Diagnostic data. Can be much longer than a name.
`properties` | Map of string to string: Additional data used to [filter exceptions](https://azure.microsoft.com/documentation/articles/app-insights-api-custom-events-metrics/#properties) in the portal. Defaults to empty.
`severityLevel` | Supported values: [SeverityLevel.ts](https://github.com/Microsoft/ApplicationInsights-JS/blob/master/JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/SeverityLevel.ts)
`severityLevel` | Supported values: [SeverityLevel.ts](https://github.com/microsoft/ApplicationInsights-JS/blob/master/JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/SeverityLevel.ts)
In the portal, you can search on message content and [display individual trackTrace events](https://azure.microsoft.com/documentation/articles/app-insights-diagnostic-search/).
@ -574,5 +574,5 @@ public data: Base; // PageView, Event, Exception etc
## Links
* Read or contribute to the [code for the SDK](https://github.com/Microsoft/ApplicationInsights-js).
* Read or contribute to the [code for the SDK](https://github.com/microsoft/ApplicationInsights-js).
* [Overview of the API and examples](https://azure.microsoft.com/documentation/articles/app-insights-api-custom-events-metrics/)

4
API.md
Просмотреть файл

@ -75,7 +75,7 @@ Log an exception you have caught. Exceptions caught by the browser are also auto
Parameter | Type | Description
---|---|---
`error` | [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) | **Required**<br>Error object
`severityLevel?` | [SeverityLevel (number)](https://github.com/Microsoft/ApplicationInsights-JS/blob/master/JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/SeverityLevel.ts) | **Optional**<br>Severity of the message, ranging from verbose to critical
`severityLevel?` | [SeverityLevel (number)](https://github.com/microsoft/ApplicationInsights-JS/blob/master/JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/SeverityLevel.ts) | **Optional**<br>Severity of the message, ranging from verbose to critical
By default, uncaught browser exceptions are caught by the SDK and reported to the portal. To disable this behavior, insert the following line in the config section below your instrumentation key:
@ -100,7 +100,7 @@ The `ITraceTelemetry` interface is described below
Parameter | Type | Description
---|---|---
`message` | string | **Required**<br>Diagnostic data. Can be much longer than an event's name.
`severityLevel?` | [SeverityLevel (number)](https://github.com/Microsoft/ApplicationInsights-JS/blob/master/JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/SeverityLevel.ts) | **Optional**<br>Severity of the message, ranging from verbose to critical
`severityLevel?` | [SeverityLevel (number)](https://github.com/microsoft/ApplicationInsights-JS/blob/master/JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/SeverityLevel.ts) | **Optional**<br>Severity of the message, ranging from verbose to critical
In the portal, you can search on message content and [display individual trackTrace events](https://azure.microsoft.com/documentation/articles/app-insights-diagnostic-search/).
(Unlike `trackEvent`, you can't filter on the message content in the portal.)

Просмотреть файл

@ -7,44 +7,44 @@ module AI
"use strict";
export class ContextTagKeys
{
/**
* Application version. Information in the application context fields is always about the application that is sending the telemetry.
*/
public applicationVersion: string;
/**
* Application build.
*/
public applicationBuild: string;
/**
* Application type id.
*/
public applicationTypeId: string;
/**
* Application id.
*/
public applicationId: string;
/**
* Application layer.
*/
public applicationLayer: string;
/**
* Unique client device id. Computer name in most cases.
*/
public deviceId: string;
public deviceIp: string;
public deviceLanguage: string;
/**
* Device locale using <language>-<REGION> pattern, following RFC 5646. Example 'en-US'.
*/
public deviceLocale: string;
/**
* Model of the device the end user of the application is using. Used for client scenarios. If this field is empty then it is derived from the user agent.
*/
@ -52,29 +52,29 @@ module AI
public deviceFriendlyName: string;
public deviceNetwork: string;
public deviceNetworkName: string;
/**
* Client device OEM name taken from the browser.
*/
public deviceOEMName: string;
public deviceOS: string;
/**
* Operating system name and version of the device the end user of the application is using. If this field is empty then it is derived from the user agent. Example 'Windows 10 Pro 10.0.10586.0'
*/
public deviceOSVersion: string;
/**
* Name of the instance where application is running. Computer name for on-premisis, instance name for Azure.
*/
public deviceRoleInstance: string;
/**
* Name of the role application is part of. Maps directly to the role name in azure.
*/
public deviceRoleName: string;
public deviceScreenResolution: string;
/**
* The type of the device the end user of the application is using. Used primarily to distinguish JavaScript telemetry from server side telemetry. Examples: 'PC', 'Phone', 'Browser'. 'PC' is the default value.
*/
@ -82,90 +82,90 @@ module AI
public deviceMachineName: string;
public deviceVMName: string;
public deviceBrowser: string;
/**
* The browser name and version as reported by the browser.
*/
public deviceBrowserVersion: string;
/**
* The IP address of the client device. IPv4 and IPv6 are supported. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
*/
public locationIp: string;
/**
* The country of the client device. If any of Country, Province, or City is specified, those values will be preferred over geolocation of the IP address field. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
*/
public locationCountry: string;
/**
* The province/state of the client device. If any of Country, Province, or City is specified, those values will be preferred over geolocation of the IP address field. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
*/
public locationProvince: string;
/**
* The city of the client device. If any of Country, Province, or City is specified, those values will be preferred over geolocation of the IP address field. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
*/
public locationCity: string;
/**
* A unique identifier for the operation instance. The operation.id is created by either a request or a page view. All other telemetry sets this to the value for the containing request or page view. Operation.id is used for finding all the telemetry items for a specific operation instance.
*/
public operationId: string;
/**
* The name (group) of the operation. The operation.name is created by either a request or a page view. All other telemetry items set this to the value for the containing request or page view. Operation.name is used for finding all the telemetry items for a group of operations (i.e. 'GET Home/Index').
*/
public operationName: string;
/**
* The unique identifier of the telemetry item's immediate parent.
*/
public operationParentId: string;
public operationRootId: string;
/**
* Name of synthetic source. Some telemetry from the application may represent a synthetic traffic. It may be web crawler indexing the web site, site availability tests or traces from diagnostic libraries like Application Insights SDK itself.
*/
public operationSyntheticSource: string;
/**
* The correlation vector is a light weight vector clock which can be used to identify and order related events across clients and services.
*/
public operationCorrelationVector: string;
/**
* Session ID - the instance of the user's interaction with the app. Information in the session context fields is always about the end user. When telemetry is sent from a service, the session context is about the user that initiated the operation in the service.
*/
public sessionId: string;
/**
* Boolean value indicating whether the session identified by ai.session.id is first for the user or not.
*/
public sessionIsFirst: string;
public sessionIsNew: string;
public userAccountAcquisitionDate: string;
/**
* In multi-tenant applications this is the account ID or name which the user is acting with. Examples may be subscription ID for Azure portal or blog name blogging platform.
*/
public userAccountId: string;
/**
* The browser's user agent string as reported by the browser. This property will be used to extract informaiton regarding the customer's browser but will not be stored. Use custom properties to store the original user agent.
*/
public userAgent: string;
/**
* Anonymous user id. Represents the end user of the application. When telemetry is sent from a service, the user context is about the user that initiated the operation in the service.
*/
public userId: string;
/**
* Store region for UWP applications.
*/
public userStoreRegion: string;
/**
* Authenticated user id. The opposite of ai.user.id, this represents the user with a friendly name. Since it's PII information it is not collected by default by most SDKs.
*/
@ -173,13 +173,13 @@ module AI
public userAnonymousUserAcquisitionDate: string;
public userAuthenticatedUserAcquisitionDate: string;
public cloudName: string;
/**
* Name of the role the application is a part of. Maps directly to the role name in azure.
*/
public cloudRole: string;
public cloudRoleVer: string;
/**
* Name of the instance where the application is running. Computer name for on-premisis, instance name for Azure.
*/
@ -187,22 +187,22 @@ module AI
public cloudEnvironment: string;
public cloudLocation: string;
public cloudDeploymentUnit: string;
/**
* SDK version. See https://github.com/Microsoft/ApplicationInsights-Home/blob/master/SDK-AUTHORING.md#sdk-version-specification for information.
* SDK version. See https://github.com/microsoft/ApplicationInsights-Home/blob/master/SDK-AUTHORING.md#sdk-version-specification for information.
*/
public internalSdkVersion: string;
/**
* Agent version. Used to indicate the version of StatusMonitor installed on the computer if it is used for data collection.
*/
public internalAgentVersion: string;
/**
* This is the node name used for billing purposes. Use it to override the standard detection of nodes.
*/
public internalNodeName: string;
constructor()
{
this.applicationVersion = "ai.application.ver";

Просмотреть файл

@ -2,7 +2,7 @@
/// <reference path="../../JavaScriptSDK/UtilHelpers.ts" />
// This file was copied from https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/types/applicationinsights-js/applicationinsights-js-tests.ts
// and is used to validate ApplicationInsights-JS definition types.
// and is used to validate ApplicationInsights-JS definition types.
// If you have to change this file, plese update the DefinitelyTyped repo too - https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/applicationinsights-js
const config: Microsoft.ApplicationInsights.IConfig = {
@ -131,7 +131,7 @@ context.track(envelope);
context.addTelemetryInitializer(envelope => false);
context.addTelemetryInitializer(envelope => { });
// a sample from: https://github.com/Microsoft/ApplicationInsights-JS/blob/master/API-reference.md#example
// a sample from: https://github.com/microsoft/ApplicationInsights-JS/blob/master/API-reference.md#example
context.addTelemetryInitializer(envelope => {
let telemetryItem = envelope.data.baseData;
if (envelope.name === Microsoft.ApplicationInsights.Telemetry.PageView.envelopeType) {

Просмотреть файл

@ -809,7 +809,7 @@ declare module AI {
cloudLocation: string;
cloudDeploymentUnit: string;
/**
* SDK version. See https://github.com/Microsoft/ApplicationInsights-Home/blob/master/SDK-AUTHORING.md#sdk-version-specification for information.
* SDK version. See https://github.com/microsoft/ApplicationInsights-Home/blob/master/SDK-AUTHORING.md#sdk-version-specification for information.
*/
internalSdkVersion: string;
/**

Просмотреть файл

@ -18,7 +18,7 @@
[![Build Status](https://dev.azure.com/mseng/AppInsights/_apis/build/status/AppInsights%20-%20DevTools/1DS%20JavaScript%20SDK%20web%20SKU%20vNext?branchName=master)](https://dev.azure.com/mseng/AppInsights/_build/latest?definitionId=8184&branchName=master)
[![Build Status](https://travis-ci.org/Microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/Microsoft/ApplicationInsights-JS)
[![Build Status](https://travis-ci.org/microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/microsoft/ApplicationInsights-JS)
[![npm version](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-web.svg)](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-web)
[![minified size size](https://img.badgesize.io/https://az416426.vo.msecnd.net/next/ai.2.min.js.svg?label=minified%20size)](https://img.badgesize.io/https://az416426.vo.msecnd.net/next/ai.2.min.js.svg?label=minified%20size)
[![gzip size](https://img.badgesize.io/https://az416426.vo.msecnd.net/next/ai.2.min.js.svg?compression=gzip&softmax=27000&max=30000)](https://img.badgesize.io/https://az416426.vo.msecnd.net/next/ai.2.min.js.svg?compression=gzip&softmax=27000&max=30000)
@ -171,8 +171,8 @@ This version comes with the bare minimum amount of features and functionalities
| Extensions |
|---------------|
| [React](https://github.com/Microsoft/ApplicationInsights-JS/tree/master/vNext/extensions/applicationinsights-react-js)|
| [React Native](https://github.com/Microsoft/ApplicationInsights-JS/tree/master/vNext/extensions/applicationinsights-react-native)|
| [React](https://github.com/microsoft/ApplicationInsights-JS/tree/master/vNext/extensions/applicationinsights-react-js)|
| [React Native](https://github.com/microsoft/ApplicationInsights-JS/tree/master/vNext/extensions/applicationinsights-react-native)|
## Upgrading from the old Version of Application Insights
Breaking changes in the SDK V2 version:
@ -200,7 +200,7 @@ Test in internal environment to verify monitoring telemetry is working as expect
## Build a new extension for the SDK
The beta SDK supports the ability to include multiple extensions at runtime. In order to create a new extension, please implement the following interface:
[ITelemetryPlugin](https://github.com/Microsoft/ApplicationInsights-JS/blob/master/vNext/shared/AppInsightsCore/src/JavaScriptSDK.Interfaces/ITelemetryPlugin.ts)
[ITelemetryPlugin](https://github.com/microsoft/ApplicationInsights-JS/blob/master/vNext/shared/AppInsightsCore/src/JavaScriptSDK.Interfaces/ITelemetryPlugin.ts)
On initialization, config.extensions accepts an array of ITelemetryPlugin objects. These are hooked up and ITelemetryPlugin.processTelemetry() is chained based on priority of these plugins.
Please note that higher the priority, the later your processing code will be invoked. The SDK supports a plugin model and channels can also be plugged in similarly (advanced scenario).
@ -259,9 +259,9 @@ We strongly welcome and encourage contributions to this project. Please read the
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
[ContribGuide]: https://github.com/Microsoft/ApplicationInsights-Home/blob/master/CONTRIBUTING.md
[ContribGuide]: https://github.com/microsoft/ApplicationInsights-Home/blob/master/CONTRIBUTING.md
[GitFlow]: http://nvie.com/posts/a-successful-git-branching-model/
[GitHubIssue]: https://github.com/Microsoft/ApplicationInsights-JS/issues
[GitHubIssue]: https://github.com/microsoft/ApplicationInsights-JS/issues
## Build together when changing multiple packages:

Просмотреть файл

@ -2,7 +2,7 @@
"name": "applicationinsights-js",
"main": "dist/ai.0.js",
"version": "1.0.20",
"homepage": "https://github.com/Microsoft/ApplicationInsights-JS",
"homepage": "https://github.com/microsoft/ApplicationInsights-JS",
"authors": [
"Application Insights <appinsights@microsoft.com>"
],

Просмотреть файл

@ -1,6 +1,6 @@
# Microsoft Application Insights JavaScript SDK
[![Build Status](https://travis-ci.org/Microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/Microsoft/ApplicationInsights-JS)
[![Build Status](https://travis-ci.org/microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/microsoft/ApplicationInsights-JS)
[![npm version](https://badge.fury.io/js/applicationinsights-js.svg)](https://badge.fury.io/js/applicationinsights-js)
[Application Insights](https://azure.microsoft.com/services/application-insights/) tells you about your app's performance and usage. By adding a few lines of code to your web pages, you get data about how many users you have, which pages are most popular, how fast pages load, whether they throw exceptions, and more. And you can add code to track more detailed user activity.
@ -10,7 +10,7 @@
To use this SDK, you'll need a subscription to [Microsoft Azure](https://azure.com). Application Insights has a free subscription option.
In the [Azure Preview Portal](https://portal.azure.com), create new or open an existing Application Insights resource.
Full documentation for beta version of next SDK release is [here](https://github.com/Microsoft/ApplicationInsights-JS/blob/master/vNext/AISKU/README.md) . Please try it out and provide feedback/log any issues.
Full documentation for beta version of next SDK release is [here](https://github.com/microsoft/ApplicationInsights-JS/blob/master/vNext/AISKU/README.md) . Please try it out and provide feedback/log any issues.
## Initializing Application Insights JS SDK script
There are several ways to initialize Application Insights.
@ -18,12 +18,12 @@ There are several ways to initialize Application Insights.
| | **Dynamic loading.** JS script tag is inserted in the head of the page. This is the recommended approach as our CDN is getting frequent updates. | **Static loading.** You are responsible for including JS script tag or bundling the script with your other scripts. |
|------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------|
| **Using initialization `snippet`** | [Dynamic loading with snippet](README.md#use-js-snippet-and-initialize-dynamically-download-full-application-insights-script-from-cdn) This is default approach used in a new ASP.NET application created in Visual Studio. Use this for MVC applications. | [Host AI JS SDK and initialize statically](README.md#include-ai-js-sdk-script-and-initialize-statically). Cordova applications where you would like to embed scripts into your application for faster loading is an example of when you would use this approach. |
| **Using module import** | [Dynamic loading using module import](README.md#import-as-a-module-and-initialize-dynamically-download-full-application-insights-script-from-cdn). This is the recommended approach for modern modular applications. | [TBD](https://github.com/Microsoft/ApplicationInsights-JS/issues/213) |
| **Using module import** | [Dynamic loading using module import](README.md#import-as-a-module-and-initialize-dynamically-download-full-application-insights-script-from-cdn). This is the recommended approach for modern modular applications. | [TBD](https://github.com/microsoft/ApplicationInsights-JS/issues/213) |
### Use JS `snippet` and initialize dynamically (download full Application Insights script from CDN)
Use this method for an MVC application. Get "code to monitor my web pages" from the Quick Start page,
and insert it in the head of your web pages. Application Insights script will be downloaded
from CDN or you can override the script hosting location by specifying `url` parameter in the config.
### Use JS `snippet` and initialize dynamically (download full Application Insights script from CDN)
Use this method for an MVC application. Get "code to monitor my web pages" from the Quick Start page,
and insert it in the head of your web pages. Application Insights script will be downloaded
from CDN or you can override the script hosting location by specifying `url` parameter in the config.
```
<script type="text/javascript">
var appInsights=window.appInsights||function(a){
@ -31,19 +31,19 @@ from CDN or you can override the script hosting location by specifying `url` par
}({
instrumentationKey: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"
});
window.appInsights=appInsights,appInsights.queue&&0===appInsights.queue.length&&appInsights.trackPageView();
</script>
```
```
[Learn more.](https://azure.microsoft.com/documentation/articles/app-insights-javascript/)
### Import as a module and initialize dynamically (download full Application Insights script from CDN)
### Import as a module and initialize dynamically (download full Application Insights script from CDN)
Use this method for a modern JS application that is using modules. Just like in `snippet` scenario the full script will be downloaded from CDN.
* Obtain instrumentation key from your Application Insights resource
* Install applicationinsights-js with npm
`npm install applicationinsights-js`
* Obtain instrumentation key from your Application Insights resource
* Install applicationinsights-js with npm
`npm install applicationinsights-js`
* Import and call `downloadAndSetup` to initialize it. You can override the script hosting location by specifying `url` parameter in the config
* Import and call `downloadAndSetup` to initialize it. You can override the script hosting location by specifying `url` parameter in the config
```
/* import AppInsights */
import {AppInsights} from "applicationinsights-js"
@ -64,36 +64,36 @@ AppInsights.trackPageView(
AppInsights.trackEvent("TestEvent", { prop1: "prop1", prop2: "prop2" }, { measurement1: 1 });
```
### Include AI JS SDK script and initialize statically
Use this approach if you would like to host AI JS SDK script on your endpoint or bundle it with other scripts. One popular example is Cordova applications (see [this blog post](http://www.teamfoundation.co.za/2016/02/application-insights-and-typescript/). After JS script has loaded, include the following snippet to initialize Application Insights:
Use this approach if you would like to host AI JS SDK script on your endpoint or bundle it with other scripts. One popular example is Cordova applications (see [this blog post](http://www.teamfoundation.co.za/2016/02/application-insights-and-typescript/). After JS script has loaded, include the following snippet to initialize Application Insights:
```
<!-- the snippet below assumes that JS SDK script has already loaded -->
<script type="text/javascript" src="/pathToAIJSSDK.js"></script>
<script type="text/javascript">
var snippet = {
config: {
instrumentationKey: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"
}
};
var init = new Microsoft.ApplicationInsights.Initialization(snippet);
var appInsights = init.loadAppInsights();
appInsights.trackPageView();
<script type="text/javascript" src="/pathToAIJSSDK.js"></script>
<script type="text/javascript">
var snippet = {
config: {
instrumentationKey: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"
}
};
var init = new Microsoft.ApplicationInsights.Initialization(snippet);
var appInsights = init.loadAppInsights();
appInsights.trackPageView();
</script>
```
```
## API reference
Data on users, page views, and exceptions are provided out of the box. You can write your own code to track specific events and metrics.
See:
* [JavaScript API reference](https://github.com/Microsoft/ApplicationInsights-JS/blob/master/API-reference.md)
* [JavaScript API reference](https://github.com/microsoft/ApplicationInsights-JS/blob/master/API-reference.md)
* [API overview with portal examples](https://azure.microsoft.com/documentation/articles/app-insights-api-custom-events-metrics/)
## Links
* Check out our [Wiki](https://github.com/Microsoft/ApplicationInsights-JS/wiki) and [FAQ](https://github.com/Microsoft/ApplicationInsights-JS/wiki/FAQ) for other useful info.
* Follow latest Application Insights changes and announcements on [ApplicationInsights Announcements](https://github.com/Microsoft/ApplicationInsights-Announcements)
* [Application Insights Home](https://github.com/Microsoft/ApplicationInsights-Home). The main repository for documentation of overall SDK offerings for all platforms.
* [SDK Release Schedule](https://github.com/Microsoft/ApplicationInsights-Home/wiki/SDK-Release-Schedule)
* Check out our [Wiki](https://github.com/microsoft/ApplicationInsights-JS/wiki) and [FAQ](https://github.com/microsoft/ApplicationInsights-JS/wiki/FAQ) for other useful info.
* Follow latest Application Insights changes and announcements on [ApplicationInsights Announcements](https://github.com/microsoft/ApplicationInsights-Announcements)
* [Application Insights Home](https://github.com/microsoft/ApplicationInsights-Home). The main repository for documentation of overall SDK offerings for all platforms.
* [SDK Release Schedule](https://github.com/microsoft/ApplicationInsights-Home/wiki/SDK-Release-Schedule)
## Build and run check-in tests:
@ -108,15 +108,15 @@ See:
* Run check-in tests
* `grunt test` to build and run tests
* You can also open `JavaScriptSDK.Tests/Selenium/Tests.html` directly in your browser to debug failing tests.
To debug tests in PhantomJS use a remote debugger: `phantomjs.exe --remote-debugger-port=9000 \JavaScript\JavaScriptSDK.Tests\phantomJS.debug.js`. If webkit console isn't working execute the following script in a browser's console: `function isEnterKey(event) { return (event.keyCode !== 229 && event.keyIdentifier === "Enter") || event.keyCode === 13; }`.
To debug tests in PhantomJS use a remote debugger: `phantomjs.exe --remote-debugger-port=9000 \JavaScript\JavaScriptSDK.Tests\phantomJS.debug.js`. If webkit console isn't working execute the following script in a browser's console: `function isEnterKey(event) { return (event.keyCode !== 229 && event.keyIdentifier === "Enter") || event.keyCode === 13; }`.
## Contributing
We strongly welcome and encourage contributions to this project. Please read the [contributor's guide][ContribGuide] located in the ApplicationInsights-Home repository. If making a large change we request that you open an [issue][GitHubIssue] first. We follow the [Git Flow][GitFlow] approach to branching.
We strongly welcome and encourage contributions to this project. Please read the [contributor's guide][ContribGuide] located in the ApplicationInsights-Home repository. If making a large change we request that you open an [issue][GitHubIssue] first. We follow the [Git Flow][GitFlow] approach to branching.
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
[ContribGuide]: https://github.com/Microsoft/ApplicationInsights-Home/blob/master/CONTRIBUTING.md
[ContribGuide]: https://github.com/microsoft/ApplicationInsights-Home/blob/master/CONTRIBUTING.md
[GitFlow]: http://nvie.com/posts/a-successful-git-branching-model/
[GitHubIssue]: https://github.com/Microsoft/ApplicationInsights-JS/issues
[GitHubIssue]: https://github.com/microsoft/ApplicationInsights-JS/issues

Просмотреть файл

@ -21,14 +21,14 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/Microsoft/ApplicationInsights-JS.git"
"url": "git+https://github.com/microsoft/ApplicationInsights-JS.git"
},
"author": "Microsoft Application Insights Team",
"license": "MIT",
"bugs": {
"url": "https://github.com/Microsoft/ApplicationInsights-JS/issues"
"url": "https://github.com/microsoft/ApplicationInsights-JS/issues"
},
"homepage": "https://github.com/Microsoft/ApplicationInsights-JS#readme",
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
"devDependencies": {
"grunt": "1.0.1",
"grunt-contrib-qunit": "2.0.0",

Просмотреть файл

@ -75,7 +75,7 @@ Log an exception you have caught. Exceptions caught by the browser are also auto
Parameter | Type | Description
---|---|---
`error` | [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) | **Required**<br>Error object
`severityLevel?` | [SeverityLevel (number)](https://github.com/Microsoft/ApplicationInsights-JS/blob/master/JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/SeverityLevel.ts) | **Optional**<br>Severity of the message, ranging from verbose to critical
`severityLevel?` | [SeverityLevel (number)](https://github.com/microsoft/ApplicationInsights-JS/blob/master/JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/SeverityLevel.ts) | **Optional**<br>Severity of the message, ranging from verbose to critical
By default, uncaught browser exceptions are caught by the SDK and reported to the portal. To disable this behavior, insert the following line in the config section below your instrumentation key:
@ -100,7 +100,7 @@ The `ITraceTelemetry` interface is described below
Parameter | Type | Description
---|---|---
`message` | string | **Required**<br>Diagnostic data. Can be much longer than an event's name.
`severityLevel?` | [SeverityLevel (number)](https://github.com/Microsoft/ApplicationInsights-JS/blob/master/JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/SeverityLevel.ts) | **Optional**<br>Severity of the message, ranging from verbose to critical
`severityLevel?` | [SeverityLevel (number)](https://github.com/microsoft/ApplicationInsights-JS/blob/master/JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/SeverityLevel.ts) | **Optional**<br>Severity of the message, ranging from verbose to critical
In the portal, you can search on message content and [display individual trackTrace events](https://azure.microsoft.com/documentation/articles/app-insights-diagnostic-search/).
(Unlike `trackEvent`, you can't filter on the message content in the portal.)

Просмотреть файл

@ -17,7 +17,7 @@
# Application Insights JavaScript SDK (Beta SDK)
[![Build Status](https://dev.azure.com/mseng/AppInsights/_apis/build/status/AppInsights%20-%20DevTools/1DS%20JavaScript%20SDK%20web%20SKU%20vNext?branchName=master)](https://dev.azure.com/mseng/AppInsights/_build/latest?definitionId=8184&branchName=master)
[![Build Status](https://travis-ci.org/Microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/Microsoft/ApplicationInsights-JS)
[![Build Status](https://travis-ci.org/microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/microsoft/ApplicationInsights-JS)
[![npm version](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-web.svg)](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-web)
[![minified size size](https://img.badgesize.io/https://az416426.vo.msecnd.net/beta/ai.1.min.js.svg?label=minified%20size)](https://img.badgesize.io/https://az416426.vo.msecnd.net/beta/ai.1.min.js.svg?label=minified%20size)
[![gzip size](https://img.badgesize.io/https://az416426.vo.msecnd.net/beta/ai.1.min.js.svg?compression=gzip&softmax=27000&max=30000)](https://img.badgesize.io/https://az416426.vo.msecnd.net/beta/ai.1.min.js.svg?compression=gzip&softmax=27000&max=30000)
@ -194,7 +194,7 @@ Test in internal environment to verify monitoring telemetry is working as expect
## Build a new extension for the SDK
The beta SDK supports the ability to include multiple extensions at runtime. In order to create a new extension, please implement the following interface:
[ITelemetryPlugin](https://github.com/Microsoft/ApplicationInsights-JS/blob/master/vNext/shared/AppInsightsCore/src/JavaScriptSDK.Interfaces/ITelemetryPlugin.ts)
[ITelemetryPlugin](https://github.com/microsoft/ApplicationInsights-JS/blob/master/vNext/shared/AppInsightsCore/src/JavaScriptSDK.Interfaces/ITelemetryPlugin.ts)
On initialization, config.extensions accepts an array of ITelemetryPlugin objects. These are hooked up and ITelemetryPlugin.processTelemetry() is chained based on priority of these plugins.
Please note that higher the priority, the later your processing code will be invoked. The SDK supports a plugin model and channels can also be plugged in similarly (advanced scenario).
@ -253,9 +253,9 @@ We strongly welcome and encourage contributions to this project. Please read the
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
[ContribGuide]: https://github.com/Microsoft/ApplicationInsights-Home/blob/master/CONTRIBUTING.md
[ContribGuide]: https://github.com/microsoft/ApplicationInsights-Home/blob/master/CONTRIBUTING.md
[GitFlow]: http://nvie.com/posts/a-successful-git-branching-model/
[GitHubIssue]: https://github.com/Microsoft/ApplicationInsights-JS/issues
[GitHubIssue]: https://github.com/microsoft/ApplicationInsights-JS/issues
## Build together when changing multiple packages:

3513
vNext/AISKU/package-lock.json сгенерированный Normal file

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -8,7 +8,7 @@
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/ApplicationInsights-JS"
"url": "https://github.com/microsoft/ApplicationInsights-JS"
},
"scripts": {
"clean": "rm -rfv browser types dist-esm",

Просмотреть файл

@ -1,7 +1,7 @@
# Microsoft Application Insights JavaScript SDK - Web Basic
[![Build Status](https://dev.azure.com/mseng/AppInsights/_apis/build/status/1DS%20JavaScript%20SDK%20-%20SKU%20+%20Common%20+%20Extensions)](https://dev.azure.com/mseng/AppInsights/_build/latest?definitionId=7610)
[![Build Status](https://travis-ci.org/Microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/Microsoft/ApplicationInsights-JS)
[![Build Status](https://travis-ci.org/microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/microsoft/ApplicationInsights-JS)
[![npm version](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-web-basic.svg)](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-web-basic)
Application Insights - Web Basic SDK
@ -11,7 +11,7 @@ Application Insights - Web Basic SDK
npm install -g grunt-cli
npm install
npm run build --silent
```
```
## Run unit tests:
```

Просмотреть файл

@ -2,7 +2,7 @@
Channel layer for the Application Insights JavaScript SDK
[![Build Status](https://travis-ci.org/Microsoft/applicationinsights-js.svg?branch=master)](https://travis-ci.org/Microsoft/applicationinsights-js)
[![Build Status](https://travis-ci.org/microsoft/applicationinsights-js.svg?branch=master)](https://travis-ci.org/microsoft/applicationinsights-js)
[![Build status](https://dev.azure.com/mseng/AppInsights/_apis/build/status/1DS%20JavaScript%20SDK%20-%20Channel)](https://dev.azure.com/mseng/AppInsights/_build/latest?definitionId=7614)
[![npm version](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-channel-js.svg)](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-channel-js)

Просмотреть файл

@ -1,6 +1,6 @@
# Microsoft Application Insights JavaScript SDK - Analytics
[![Build Status](https://travis-ci.org/Microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/Microsoft/ApplicationInsights-JS)
[![Build Status](https://travis-ci.org/microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/microsoft/ApplicationInsights-JS)
[![npm version](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-analytics-js.svg)](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-analytics-js)
Web Analytics Plugin for the Application Insights Javascript SDK
@ -10,7 +10,7 @@ Web Analytics Plugin for the Application Insights Javascript SDK
npm install -g grunt-cli
npm install
npm run build --silent
```
```
## Run unit tests:
```

Просмотреть файл

@ -8,7 +8,7 @@
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/ApplicationInsights-JS/tree/master/vNext/extensions/applicationinsights-analytics-js"
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/vNext/extensions/applicationinsights-analytics-js"
},
"scripts": {
"build": "npm run build:esm && npm run build:browser",

Просмотреть файл

@ -1,6 +1,6 @@
# Microsoft Application Insights JavaScript SDK - Dependencies Plugin
[![Build Status](https://travis-ci.org/Microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/Microsoft/ApplicationInsights-JS)
[![Build Status](https://travis-ci.org/microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/microsoft/ApplicationInsights-JS)
[![npm version](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-dependencies-js.svg)](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-dependencies-js)
Dependencies Plugin for the Application Insights Javascript SDK
@ -10,7 +10,7 @@ Dependencies Plugin for the Application Insights Javascript SDK
npm install -g grunt-cli
npm install
npm run build --silent
```
```
## Run unit tests:
```

Просмотреть файл

@ -8,7 +8,7 @@
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/ApplicationInsights-JS/tree/master/vNext/extensions/applicationinsights-dependencies-js"
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/vNext/extensions/applicationinsights-dependencies-js"
},
"scripts": {
"build": "npm run build:esm && npm run build:browser",

Просмотреть файл

@ -1,6 +1,6 @@
# Microsoft Application Insights JavaScript SDK - Properties Plugin
[![Build Status](https://travis-ci.org/Microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/Microsoft/ApplicationInsights-JS)
[![Build Status](https://travis-ci.org/microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/microsoft/ApplicationInsights-JS)
[![npm version](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-properties-js.svg)](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-properties-js)
Properties Plugin (Part A) for the Application Insights Javascript SDK
@ -10,7 +10,7 @@ Properties Plugin (Part A) for the Application Insights Javascript SDK
npm install -g grunt-cli
npm install
npm run build --silent
```
```
## Run unit tests:
```

Просмотреть файл

@ -8,7 +8,7 @@
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/ApplicationInsights-JS/tree/master/vNext/extensions/applicationinsights-properties-js"
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/vNext/extensions/applicationinsights-properties-js"
},
"scripts": {
"build": "npm run build:esm && npm run build:browser",

Просмотреть файл

@ -1,6 +1,6 @@
# Microsoft Application Insights JavaScript SDK - React Plugin
[![Build Status](https://travis-ci.org/Microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/Microsoft/ApplicationInsights-JS)
[![Build Status](https://travis-ci.org/microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/microsoft/ApplicationInsights-JS)
[![npm version](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-react-js.svg)](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-react-js)
React Plugin for the Application Insights Javascript SDK, enables the following:

Просмотреть файл

@ -8,7 +8,7 @@
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/ApplicationInsights-JS/tree/master/vNext/extensions/applicationinsights-react-js"
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/vNext/extensions/applicationinsights-react-js"
},
"scripts": {
"build": "npm run build:esm && npm run build:browser",

Просмотреть файл

@ -7,7 +7,7 @@
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/ApplicationInsights-JS/tree/master/vNext/extensions/applicationinsights-react-native"
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/vNext/extensions/applicationinsights-react-native"
},
"scripts": {
"build": "npm run build:esm && npm run build:browser",

Просмотреть файл

@ -1,6 +1,6 @@
# Microsoft Application Insights JavaScript SDK - Common
[![Build Status](https://travis-ci.org/Microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/Microsoft/ApplicationInsights-JS)
[![Build Status](https://travis-ci.org/microsoft/ApplicationInsights-JS.svg?branch=master)](https://travis-ci.org/microsoft/ApplicationInsights-JS)
[![npm version](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-common.svg)](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-common)
Common library for the Application Insights Javascript SDK
@ -10,7 +10,7 @@ Common library for the Application Insights Javascript SDK
npm install -g grunt-cli
npm install
npm run build --silent
```
```
## Run unit tests:
```

Просмотреть файл

@ -8,7 +8,7 @@
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/ApplicationInsights-JS/tree/master/vNext/shared/AppInsightsCommon"
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/vNext/shared/AppInsightsCommon"
},
"scripts": {
"build": "npm run build:esm && npm run build:browser",

Просмотреть файл

@ -185,7 +185,7 @@ export class ContextTagKeys {
public cloudDeploymentUnit: string;
/**
* SDK version. See https://github.com/Microsoft/ApplicationInsights-Home/blob/master/SDK-AUTHORING.md#sdk-version-specification for information.
* SDK version. See https://github.com/microsoft/ApplicationInsights-Home/blob/master/SDK-AUTHORING.md#sdk-version-specification for information.
*/
public internalSdkVersion: string;
@ -246,7 +246,7 @@ export class ContextTagKeys {
this.userAuthUserId = "ai.user.authUserId";
this.userAnonymousUserAcquisitionDate = "ai.user.anonUserAcquisitionDate";
this.userAuthenticatedUserAcquisitionDate = "ai.user.authUserAcquisitionDate";
this.cloudName = "ai.cloud.name";
this.cloudRole = "ai.cloud.role";
this.cloudRoleVer = "ai.cloud.roleVer";

Просмотреть файл

@ -1,8 +1,8 @@
> ***Important:*** If you are looking to add Application Insights to your website/app, please see the [applicationinsights-web](https://github.com/Microsoft/ApplicationInsights-JS/tree/master/AISKU#application-insights-javascript-sdk-beta-sdk) repository to learn how to get started.
> ***Important:*** If you are looking to add Application Insights to your website/app, please see the [applicationinsights-web](https://github.com/microsoft/ApplicationInsights-JS/tree/master/AISKU#application-insights-javascript-sdk-beta-sdk) repository to learn how to get started.
# Microsoft Application Insights JavaScript SDK - Core
[![Build Status](https://travis-ci.org/Microsoft/applicationinsights-core-js.svg?branch=master)](https://travis-ci.org/Microsoft/applicationinsights-core-js) [![Build status](https://dev.azure.com/mseng/AppInsights/_apis/build/status/AppInsights%20-%20DevTools/1DS%20JavaScript%20SDK%20-%20Core)](https://dev.azure.com/mseng/AppInsights/_build/latest?definitionId=7605)
[![Build Status](https://travis-ci.org/microsoft/applicationinsights-core-js.svg?branch=master)](https://travis-ci.org/microsoft/applicationinsights-core-js) [![Build status](https://dev.azure.com/mseng/AppInsights/_apis/build/status/AppInsights%20-%20DevTools/1DS%20JavaScript%20SDK%20-%20Core)](https://dev.azure.com/mseng/AppInsights/_build/latest?definitionId=7605)
Core SDK layer for next version of application insights javascript SDK.

Просмотреть файл

@ -25,7 +25,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/ApplicationInsights-JS/tree/master/vNext/shared/AppInsightsCore"
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/vNext/shared/AppInsightsCore"
},
"license": "MIT",
"sideEffects": false,