rename
This commit is contained in:
Родитель
479a979c7b
Коммит
86e1482b40
|
@ -256,7 +256,7 @@ export interface IChannelConfiguration {
|
|||
* - "same-origin": only send and include credentials for same-origin requests.
|
||||
*
|
||||
* If not set, the default value will be "include".
|
||||
*
|
||||
*
|
||||
* For more information, refer to:
|
||||
* - [Fetch API - Using Fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#including_credentials)
|
||||
* @since 3.3.1
|
||||
|
|
|
@ -459,7 +459,7 @@ export class AnalyticsPluginTests extends AITestClass {
|
|||
Assert.equal(-1, JSON.stringify(prop).indexOf("https://www.example.com/test.js"), "script info is not included");
|
||||
|
||||
|
||||
appInsights.config.exceptionConfig.includeScripts = true;
|
||||
appInsights.config.expCfg.inclScripts = true;
|
||||
this.clock.tick(1);
|
||||
appInsights.trackException({error: new Error(), severityLevel: SeverityLevel.Critical});
|
||||
Assert.ok(trackStub.calledTwice, "single exception is tracked");
|
||||
|
|
|
@ -68,7 +68,7 @@ const defaultValues: IConfigDefaults<IConfig> = objDeepFreeze({
|
|||
enableDebug: cfgDfBoolean(),
|
||||
disableFlushOnBeforeUnload: cfgDfBoolean(),
|
||||
disableFlushOnUnload: cfgDfBoolean(false, "disableFlushOnBeforeUnload"),
|
||||
exceptionConfig: cfgDfMerge<IExceptionConfig>({includeScripts: false})
|
||||
expCfg: cfgDfMerge<IExceptionConfig>({inclScripts: false})
|
||||
});
|
||||
|
||||
function _chkConfigMilliseconds(value: number, defValue: number): number {
|
||||
|
@ -425,7 +425,7 @@ export class AnalyticsPlugin extends BaseTelemetryPlugin implements IAppInsights
|
|||
exception.id
|
||||
).toInterface();
|
||||
var doc = getDocument();
|
||||
if (doc && _self.config.exceptionConfig && _self.config.exceptionConfig.includeScripts) {
|
||||
if (doc && _self.config.expCfg?.inclScripts) {
|
||||
var scriptsInfo = findAllScripts(doc);
|
||||
exceptionPartB.properties["exceptionScripts"] = JSON.stringify(scriptsInfo);
|
||||
}
|
||||
|
|
|
@ -394,7 +394,7 @@ export interface IConfig {
|
|||
/**
|
||||
* [Optional] Set additional configuration for exceptions, such as more scripts to include in the exception telemetry.
|
||||
*/
|
||||
exceptionConfig?: IExceptionConfig;
|
||||
expCfg?: IExceptionConfig;
|
||||
}
|
||||
|
||||
export class ConfigurationManager {
|
||||
|
|
|
@ -9,7 +9,7 @@ export interface IExceptionConfig{
|
|||
* If set to true, when exception is sent out, the SDK will also send out all scripts basic info that are loaded on the page.
|
||||
* Notice: This would increase the size of the exception telemetry.
|
||||
*/
|
||||
includeScripts?: boolean;
|
||||
inclScripts?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче