forked from microsoft/vscode
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use application insights module instead of script tag, fixes microsof…
- Loading branch information
RMacfarlane
committed
Aug 9, 2019
1 parent
734c85e
commit 803e140
Showing
11 changed files
with
280 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
declare module 'applicationinsights-web' { | ||
export interface IConfig { | ||
instrumentationKey?: string; | ||
endpointUrl?: string; | ||
emitLineDelimitedJson?: boolean; | ||
accountId?: string; | ||
sessionRenewalMs?: number; | ||
sessionExpirationMs?: number; | ||
maxBatchSizeInBytes?: number; | ||
maxBatchInterval?: number; | ||
enableDebug?: boolean; | ||
disableExceptionTracking?: boolean; | ||
disableTelemetry?: boolean; | ||
verboseLogging?: boolean; | ||
diagnosticLogInterval?: number; | ||
samplingPercentage?: number; | ||
autoTrackPageVisitTime?: boolean; | ||
disableAjaxTracking?: boolean; | ||
overridePageViewDuration?: boolean; | ||
maxAjaxCallsPerView?: number; | ||
disableDataLossAnalysis?: boolean; | ||
disableCorrelationHeaders?: boolean; | ||
correlationHeaderExcludedDomains?: string[]; | ||
disableFlushOnBeforeUnload?: boolean; | ||
enableSessionStorageBuffer?: boolean; | ||
isCookieUseDisabled?: boolean; | ||
cookieDomain?: string; | ||
isRetryDisabled?: boolean; | ||
url?: string; | ||
isStorageUseDisabled?: boolean; | ||
isBeaconApiDisabled?: boolean; | ||
sdkExtension?: string; | ||
isBrowserLinkTrackingEnabled?: boolean; | ||
appId?: string; | ||
enableCorsCorrelation?: boolean; | ||
} | ||
|
||
export interface ISnippet { | ||
config: IConfig; | ||
} | ||
|
||
export interface IEventTelemetry { | ||
name: string; | ||
properties?: { [key: string]: string }; | ||
measurements?: { [key: string]: number }; | ||
} | ||
|
||
export class ApplicationInsights { | ||
constructor(config: ISnippet); | ||
loadAppInsights(): void; | ||
trackEvent(data: IEventTelemetry): void; | ||
flush(): void; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.