
Note that this disables the User and Session cookies and renders the usage blades and experiences useless. If true, the SDK will not store or read any data from cookies.
JS BLOCKER SAFARI COMMENT FULL
The buffer is restored on page loadĭefaults to cookie usage enabled see ICookieCfgConfig settings for full defaults. If true, the buffer with all unsent telemetry is stored in session storage. If true, flush method will not be called when onBeforeUnload event triggers If false, the SDK will add two headers ('Request-Id' and 'Request-Context') to all dependency requests to correlate them with corresponding requests on the server side.ĭisable correlation headers for specific domainsĭisable correlation headers using regular expressionsĮnable correlation headers for specific domains If false, internal telemetry sender buffers will be checked at startup for items not yet sent. Set to -1 to monitor all (unlimited) Ajax calls on the page. If false and no custom duration is provided to trackPageView, the page view performance is calculated using the navigation timing API.ĭefault 500 - controls how many Ajax calls will be monitored per page view. If true, default behavior of trackPageView is changed to record end of page view duration interval when trackPageView is called. If true, Fetch requests are not autocollected. If true, Ajax calls are not autocollected. If true, on a pageview, the previous instrumented page's view time is tracked and sent as telemetry and a new timer is started for the current pageview. Set this if you wish to preserve your data cap for large-scale applications. Default is 100, meaning all events are sent. (internal) Polling interval (in ms) for internal logging queue

Sends internal Application Insights errors as telemetry. Logs internal Application Insights errors to console. If you do not want to lose telemetry while debugging, consider using consoleLoggingLevel or telemetryLoggingLevel instead of enableDebug. This can be useful for quickly identifying issues with your configuration or usage of the SDK. Note: Enabling this setting will result in dropped telemetry whenever an internal error occurs. If true, internal debugging data is thrown as an exception instead of being logged, regardless of SDK logging settings. If true, telemetry is not collected or sent. If true, exceptions are not autocollected. How long to batch telemetry for before sending (milliseconds) If a batch exceeds this limit, it is immediately sent and a new batch is started No spaces, commas, semicolons, equals, or vertical barsĪ session is logged if the user is inactive for this amount of time in milliseconds.Ī session is logged if it has continued for this amount of time in milliseconds. Instrumentation key that you obtained from the Azure portal.Īn optional account ID, if your app groups users into accounts. All fields are optional except for instrumentationKey.

Most configuration fields are named such that they can be defaulted to false. The configuration passed to the Application Insights SDK during initialization. Recommended values are not defined (the default) ' or 'anonymous' (For all valid values see HTML attribute: crossorigin documentation) When not defined (the default) no crossOrigin attribute is added.
JS BLOCKER SAFARI COMMENT DOWNLOAD
Use of this value is only be required if your application is being used in an environment where fetch would fail to send the failure events.īy including this setting, the script tag added to download the SDK will include the crossOrigin attribute with this string value. Reporting will first attempt to use fetch() if available and then fallback to XHR, setting this value to true just bypasses the fetch check. This setting is used only for reporting SDK load failures. Default value is 0ms and any negative value will immediately add a script tag to the region of the page, which will then block the page load event until to script is loaded (or fails).
JS BLOCKER SAFARI COMMENT CODE
Note: if you provide a name value or a previous instance appears to be assigned (via the global name appInsightsSDK) then this name value will also be defined in the global namespace as window.appInsightsSDK=, this is required by the SDK initialization code to ensure it's initializing and updating the correct snippet skeleton and proxy methods.ĭefines the load delay to wait before attempting to load the SDK. So window.appInsights will be a reference to the initialized instance. The global name for the initialized SDK, defaults to appInsights. You can use the public CDN location or your own privately hosted one. This value is used for the 'src' attribute of a dynamically added tag. The full URL for where to load the SDK from. The available configuration options are Name
