@microsoft/applicationinsights-react-js 3.2.1-nightly.202110-15 → 3.2.1-nightly.202110-16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - React Plugin, 3.2.1-nightly.202110-15
2
+ * Application Insights JavaScript SDK - React Plugin, 3.2.1-nightly.202110-16
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1791,6 +1791,9 @@
1791
1791
  ReactPlugin.prototype.getCookieMgr = function () {
1792
1792
  return safeGetCookieMgr(this.core);
1793
1793
  };
1794
+ ReactPlugin.prototype.getAppInsights = function () {
1795
+ return this._analyticsPlugin;
1796
+ };
1794
1797
  ReactPlugin.prototype.processTelemetry = function (event, itemCtx) {
1795
1798
  this.processNext(event, itemCtx);
1796
1799
  };
@@ -1826,6 +1829,14 @@
1826
1829
  this.diagLog().throwInternal(LoggingSeverity.CRITICAL, _InternalMessageId.TelemetryInitializerFailed, "Analytics plugin is not available, React plugin telemetry will not be sent: ");
1827
1830
  }
1828
1831
  };
1832
+ ReactPlugin.prototype.trackTrace = function (trace, customProperties) {
1833
+ if (this._analyticsPlugin) {
1834
+ this._analyticsPlugin.trackTrace(trace, customProperties);
1835
+ }
1836
+ else {
1837
+ this.diagLog().throwInternal(LoggingSeverity.CRITICAL, _InternalMessageId.TelemetryInitializerFailed, "Analytics plugin is not available, React plugin telemetry will not be sent: ");
1838
+ }
1839
+ };
1829
1840
  ReactPlugin.prototype.addHistoryListener = function (history) {
1830
1841
  var _this = this;
1831
1842
  var locationListener = function (location, action) {