@nativescript-community/sentry 4.6.22 → 4.6.25

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.
Files changed (90) hide show
  1. package/breadcrumb.d.ts +1 -1
  2. package/breadcrumb.js.map +1 -1
  3. package/client.d.ts +23 -23
  4. package/client.js +53 -40
  5. package/client.js.map +1 -1
  6. package/index.d.ts +7 -7
  7. package/index.js +6 -6
  8. package/index.js.map +1 -1
  9. package/integrations/debugsymbolicator.d.ts +4 -4
  10. package/integrations/debugsymbolicator.js +13 -11
  11. package/integrations/debugsymbolicator.js.map +1 -1
  12. package/integrations/default.js +2 -5
  13. package/integrations/default.js.map +1 -1
  14. package/integrations/devicecontext.js +11 -11
  15. package/integrations/devicecontext.js.map +1 -1
  16. package/integrations/eventorigin.js +1 -2
  17. package/integrations/eventorigin.js.map +1 -1
  18. package/integrations/factory.js.map +1 -1
  19. package/integrations/index.js.map +1 -1
  20. package/integrations/nativescripterrorhandlers.d.ts +8 -8
  21. package/integrations/nativescripterrorhandlers.js +7 -3
  22. package/integrations/nativescripterrorhandlers.js.map +1 -1
  23. package/integrations/release.js +5 -6
  24. package/integrations/release.js.map +1 -1
  25. package/integrations/rewriteframe.js.map +1 -1
  26. package/integrations/screenshot.d.ts +8 -8
  27. package/integrations/screenshot.js +10 -13
  28. package/integrations/screenshot.js.map +1 -1
  29. package/integrations/sdkinfo.d.ts +7 -7
  30. package/integrations/sdkinfo.js +15 -16
  31. package/integrations/sdkinfo.js.map +1 -1
  32. package/measurements.js.map +1 -1
  33. package/misc.d.ts +4 -4
  34. package/misc.js +5 -8
  35. package/misc.js.map +1 -1
  36. package/options.d.ts +66 -62
  37. package/options.js.map +1 -1
  38. package/package.json +2 -2
  39. package/platforms/android/buildscript.gradle +1 -1
  40. package/platforms/android/include.gradle +1 -1
  41. package/platforms/android/native-api-usage.json +6 -0
  42. package/process.js.map +1 -1
  43. package/references.d.ts +6 -0
  44. package/scope.js.map +1 -1
  45. package/sdk.d.ts +3 -3
  46. package/sdk.js +25 -18
  47. package/sdk.js.map +1 -1
  48. package/tracing/addTracingExtensions.d.ts +1 -1
  49. package/tracing/addTracingExtensions.js +6 -4
  50. package/tracing/addTracingExtensions.js.map +1 -1
  51. package/tracing/index.js.map +1 -1
  52. package/tracing/nativeframes.d.ts +22 -22
  53. package/tracing/nativeframes.js +30 -34
  54. package/tracing/nativeframes.js.map +1 -1
  55. package/tracing/nstracing.d.ts +67 -67
  56. package/tracing/nstracing.js +96 -92
  57. package/tracing/nstracing.js.map +1 -1
  58. package/tracing/ops.js.map +1 -1
  59. package/tracing/routingInstrumentation.d.ts +2 -2
  60. package/tracing/routingInstrumentation.js +3 -5
  61. package/tracing/routingInstrumentation.js.map +1 -1
  62. package/tracing/stalltracking.js +16 -9
  63. package/tracing/stalltracking.js.map +1 -1
  64. package/tracing/transaction.js.map +1 -1
  65. package/tracing/types.d.ts +1 -1
  66. package/tracing/types.js.map +1 -1
  67. package/tracing/utils.js.map +1 -1
  68. package/transports/TextEncoder.js.map +1 -1
  69. package/transports/native.d.ts +1 -1
  70. package/transports/native.js.map +1 -1
  71. package/typings/android.d.ts +10738 -0
  72. package/typings/ios.d.ts +2255 -0
  73. package/typings/ns.ios.d.ts +25 -0
  74. package/utils/envelope.js +9 -4
  75. package/utils/envelope.js.map +1 -1
  76. package/utils/environment.js.map +1 -1
  77. package/utils/outcome.js.map +1 -1
  78. package/utils/safe.d.ts +1 -1
  79. package/utils/safe.js.map +1 -1
  80. package/vendor/buffer/index.js.map +1 -1
  81. package/vendor/buffer/utf8ToBytes.js.map +1 -1
  82. package/vendor/index.js.map +1 -1
  83. package/version.js.map +1 -1
  84. package/wrapper.android.d.ts +5 -2
  85. package/wrapper.android.js +121 -78
  86. package/wrapper.android.js.map +1 -1
  87. package/wrapper.d.ts +2 -4
  88. package/wrapper.ios.d.ts +3 -3
  89. package/wrapper.ios.js +90 -64
  90. package/wrapper.ios.js.map +1 -1
@@ -1,26 +1,26 @@
1
1
  import { Hub } from '@sentry/hub';
2
2
  import { RequestInstrumentationOptions, Transaction } from '@sentry/tracing';
3
3
  import { EventProcessor, Integration, Transaction as TransactionType } from '@sentry/types';
4
- import { RoutingInstrumentationInstance } from '../tracing/routingInstrumentation';
4
+ import { RoutingInstrumentationInstance } from './routingInstrumentation';
5
5
  import { NativeFramesInstrumentation } from './nativeframes';
6
6
  import { StallTrackingInstrumentation } from './stalltracking';
7
7
  import { BeforeNavigate } from './types';
8
8
  export interface NativescriptTracingOptions extends RequestInstrumentationOptions {
9
9
  /**
10
- * The time to wait in ms until the transaction will be finished. The transaction will use the end timestamp of
11
- * the last finished span as the endtime for the transaction.
12
- * Time is in ms.
13
- *
14
- * Default: 1000
15
- */
10
+ * The time to wait in ms until the transaction will be finished. The transaction will use the end timestamp of
11
+ * the last finished span as the endtime for the transaction.
12
+ * Time is in ms.
13
+ *
14
+ * Default: 1000
15
+ */
16
16
  idleTimeout: number;
17
17
  /**
18
- * The maximum duration of a transaction before it will be marked as "deadline_exceeded".
19
- * If you never want to mark a transaction set it to 0.
20
- * Time is in seconds.
21
- *
22
- * Default: 600
23
- */
18
+ * The maximum duration of a transaction before it will be marked as "deadline_exceeded".
19
+ * If you never want to mark a transaction set it to 0.
20
+ * Time is in seconds.
21
+ *
22
+ * Default: 600
23
+ */
24
24
  maxTransactionDuration: number;
25
25
  /**
26
26
  * The time to wait in ms until the transaction will be finished. The transaction will use the end timestamp of
@@ -40,40 +40,40 @@ export interface NativescriptTracingOptions extends RequestInstrumentationOption
40
40
  */
41
41
  finalTimeoutMs: number;
42
42
  /**
43
- * The routing instrumentation to be used with the tracing integration.
44
- * There is no routing instrumentation if nothing is passed.
45
- */
43
+ * The routing instrumentation to be used with the tracing integration.
44
+ * There is no routing instrumentation if nothing is passed.
45
+ */
46
46
  routingInstrumentation?: RoutingInstrumentationInstance;
47
47
  /**
48
- * Does not sample transactions that are from routes that have been seen any more and don't have any spans.
49
- * This removes a lot of the clutter as most back navigation transactions are now ignored.
50
- *
51
- * Default: true
52
- */
48
+ * Does not sample transactions that are from routes that have been seen any more and don't have any spans.
49
+ * This removes a lot of the clutter as most back navigation transactions are now ignored.
50
+ *
51
+ * Default: true
52
+ */
53
53
  ignoreEmptyBackNavigationTransactions: boolean;
54
54
  /**
55
- * beforeNavigate is called before a navigation transaction is created and allows users to modify transaction
56
- * context data, or drop the transaction entirely (by setting `sampled = false` in the context).
57
- *
58
- * @param context: The context data which will be passed to `startTransaction` by default
59
- *
60
- * @returns A (potentially) modified context object, with `sampled = false` if the transaction should be dropped.
61
- */
55
+ * beforeNavigate is called before a navigation transaction is created and allows users to modify transaction
56
+ * context data, or drop the transaction entirely (by setting `sampled = false` in the context).
57
+ *
58
+ * @param context: The context data which will be passed to `startTransaction` by default
59
+ *
60
+ * @returns A (potentially) modified context object, with `sampled = false` if the transaction should be dropped.
61
+ */
62
62
  beforeNavigate: BeforeNavigate;
63
63
  /**
64
- * Track the app start time by adding measurements to the first route transaction. If there is no routing instrumentation
65
- * an app start transaction will be started.
66
- *
67
- * Default: true
68
- */
64
+ * Track the app start time by adding measurements to the first route transaction. If there is no routing instrumentation
65
+ * an app start transaction will be started.
66
+ *
67
+ * Default: true
68
+ */
69
69
  enableAppStartTracking: boolean;
70
70
  /**
71
- * Track slow/frozen frames from the native layer and adds them as measurements to all transactions.
72
- */
71
+ * Track slow/frozen frames from the native layer and adds them as measurements to all transactions.
72
+ */
73
73
  enableNativeFramesTracking: boolean;
74
74
  /**
75
- * Track when and how long the JS event loop stalls for. Adds stalls as measurements to all transactions.
76
- */
75
+ * Track when and how long the JS event loop stalls for. Adds stalls as measurements to all transactions.
76
+ */
77
77
  enableStallTracking: boolean;
78
78
  /**
79
79
  * Trace User Interaction events like touch and gestures.
@@ -85,12 +85,12 @@ export interface NativescriptTracingOptions extends RequestInstrumentationOption
85
85
  */
86
86
  export declare class NativescriptTracing implements Integration {
87
87
  /**
88
- * @inheritDoc
89
- */
88
+ * @inheritDoc
89
+ */
90
90
  static id: string;
91
91
  /**
92
- * @inheritDoc
93
- */
92
+ * @inheritDoc
93
+ */
94
94
  name: string;
95
95
  /** NativescriptTracing options */
96
96
  options: NativescriptTracingOptions;
@@ -107,58 +107,58 @@ export declare class NativescriptTracing implements Integration {
107
107
  private _currentViewName;
108
108
  constructor(options?: Partial<NativescriptTracingOptions>);
109
109
  /**
110
- * Registers routing and request instrumentation.
111
- */
110
+ * Registers routing and request instrumentation.
111
+ */
112
112
  setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
113
113
  /**
114
- * To be called on a transaction start. Can have async methods
115
- */
114
+ * To be called on a transaction start. Can have async methods
115
+ */
116
116
  onTransactionStart(transaction: Transaction): void;
117
117
  /**
118
- * To be called on a transaction finish. Cannot have async methods.
119
- */
118
+ * To be called on a transaction finish. Cannot have async methods.
119
+ */
120
120
  onTransactionFinish(transaction: Transaction, endTimestamp?: number): void;
121
121
  /**
122
- * Called by the NativescriptProfiler component on first component mount.
123
- */
122
+ * Called by the NativescriptProfiler component on first component mount.
123
+ */
124
124
  onAppStartFinish(endTimestamp: number): void;
125
125
  /**
126
- * Starts a new transaction for a user interaction.
127
- * @param userInteractionId Consists of `op` representation UI Event and `elementId` unique element identifier on current screen.
128
- */
126
+ * Starts a new transaction for a user interaction.
127
+ * @param userInteractionId Consists of `op` representation UI Event and `elementId` unique element identifier on current screen.
128
+ */
129
129
  startUserInteractionTransaction(userInteractionId: {
130
130
  elementId: string | undefined;
131
131
  op: string;
132
132
  }): TransactionType | undefined;
133
133
  /**
134
- * Sets the current view name into the app context.
135
- * @param event Le event.
136
- */
134
+ * Sets the current view name into the app context.
135
+ * @param event Le event.
136
+ */
137
137
  private _getCurrentViewEventProcessor;
138
138
  /**
139
- * Returns the App Start Duration in Milliseconds. Also returns undefined if not able do
140
- * define the duration.
141
- */
139
+ * Returns the App Start Duration in Milliseconds. Also returns undefined if not able do
140
+ * define the duration.
141
+ */
142
142
  private _getAppStartDurationMilliseconds;
143
143
  /**
144
- * Instruments the app start measurements on the first route transaction.
145
- * Starts a route transaction if there isn't routing instrumentation.
146
- */
144
+ * Instruments the app start measurements on the first route transaction.
145
+ * Starts a route transaction if there isn't routing instrumentation.
146
+ */
147
147
  private _instrumentAppStart;
148
148
  /**
149
- * Adds app start measurements and starts a child span on a transaction.
150
- */
149
+ * Adds app start measurements and starts a child span on a transaction.
150
+ */
151
151
  private _addAppStartData;
152
152
  /** To be called when the route changes, but BEFORE the components of the new route mount. */
153
153
  private _onRouteWillChange;
154
154
  /**
155
- * Creates a breadcrumb and sets the current route as a tag.
156
- */
155
+ * Creates a breadcrumb and sets the current route as a tag.
156
+ */
157
157
  private _onConfirmRoute;
158
158
  /** Create routing idle transaction. */
159
159
  private _createRouteTransaction;
160
160
  /**
161
- * Start app state aware idle transaction on the scope.
162
- */
161
+ * Start app state aware idle transaction on the scope.
162
+ */
163
163
  private _startIdleTransaction;
164
164
  }
@@ -8,30 +8,41 @@ import { StallTrackingInstrumentation } from './stalltracking';
8
8
  import { adjustTransactionDuration, getTimeOriginMilliseconds, isNearToNow } from './utils';
9
9
  import { getActiveTransaction, getCurrentHub } from '@sentry/core';
10
10
  const DEFAULT_TRACE_PROPAGATION_TARGETS = ['localhost', /^\/(?!\/)/];
11
- const defaultNativescriptTracingOptions = Object.assign(Object.assign({}, defaultRequestInstrumentationOptions), { idleTimeout: 1000, maxTransactionDuration: 600, idleTimeoutMs: 1000, finalTimeoutMs: 600000, ignoreEmptyBackNavigationTransactions: true, beforeNavigate: context => context, enableAppStartTracking: true, enableNativeFramesTracking: true, enableStallTracking: true, enableUserInteractionTracing: false });
11
+ const defaultNativescriptTracingOptions = {
12
+ ...defaultRequestInstrumentationOptions,
13
+ idleTimeout: 1000,
14
+ maxTransactionDuration: 600,
15
+ idleTimeoutMs: 1000,
16
+ finalTimeoutMs: 600000,
17
+ ignoreEmptyBackNavigationTransactions: true,
18
+ beforeNavigate: (context) => context,
19
+ enableAppStartTracking: true,
20
+ enableNativeFramesTracking: true,
21
+ enableStallTracking: true,
22
+ enableUserInteractionTracing: false
23
+ };
12
24
  /**
13
25
  * Tracing integration for React Native.
14
26
  */
15
27
  export class NativescriptTracing {
16
28
  constructor(options = {}) {
17
- var _a, _b, _c, _d;
18
29
  /**
19
- * @inheritDoc
20
- */
30
+ * @inheritDoc
31
+ */
21
32
  this.name = NativescriptTracing.id;
22
33
  this.useAppStartWithProfiler = false;
23
- this._hasSetTracePropagationTargets = !!(options &&
24
- options.tracePropagationTargets);
25
- this._hasSetTracingOrigins = !!(options &&
26
- options.tracingOrigins);
27
- this.options = Object.assign(Object.assign(Object.assign({}, defaultNativescriptTracingOptions), options), { finalTimeoutMs: (_b = (_a = options.finalTimeoutMs) !== null && _a !== void 0 ? _a : (typeof options.maxTransactionDuration === 'number'
28
- ?
29
- options.maxTransactionDuration * 1000
30
- : undefined)) !== null && _b !== void 0 ? _b : defaultNativescriptTracingOptions.finalTimeoutMs, idleTimeoutMs: (_d = (_c = options.idleTimeoutMs) !== null && _c !== void 0 ? _c : options.idleTimeout) !== null && _d !== void 0 ? _d : defaultNativescriptTracingOptions.idleTimeoutMs });
34
+ this._hasSetTracePropagationTargets = !!(options && options.tracePropagationTargets);
35
+ this._hasSetTracingOrigins = !!(options && options.tracingOrigins);
36
+ this.options = {
37
+ ...defaultNativescriptTracingOptions,
38
+ ...options,
39
+ finalTimeoutMs: options.finalTimeoutMs ?? (typeof options.maxTransactionDuration === 'number' ? options.maxTransactionDuration * 1000 : undefined) ?? defaultNativescriptTracingOptions.finalTimeoutMs,
40
+ idleTimeoutMs: options.idleTimeoutMs ?? options.idleTimeout ?? defaultNativescriptTracingOptions.idleTimeoutMs
41
+ };
31
42
  }
32
43
  /**
33
- * Registers routing and request instrumentation.
34
- */
44
+ * Registers routing and request instrumentation.
45
+ */
35
46
  setupOnce(
36
47
  // @ts-ignore TODO
37
48
  addGlobalEventProcessor, getCurrentHub) {
@@ -39,30 +50,28 @@ export class NativescriptTracing {
39
50
  const client = hub.getClient();
40
51
  const clientOptions = client && client.getOptions();
41
52
  // eslint-disable-next-line @typescript-eslint/unbound-method
42
- const { traceFetch, traceXHR, tracingOrigins, shouldCreateSpanForRequest, tracePropagationTargets: thisOptionsTracePropagationTargets, routingInstrumentation, enableAppStartTracking, enableNativeFramesTracking, enableStallTracking, } = this.options;
53
+ const { traceFetch, traceXHR, tracingOrigins, shouldCreateSpanForRequest, tracePropagationTargets: thisOptionsTracePropagationTargets, routingInstrumentation, enableAppStartTracking, enableNativeFramesTracking, enableStallTracking } = this.options;
43
54
  this._getCurrentHub = getCurrentHub;
44
55
  const clientOptionsTracePropagationTargets = clientOptions && clientOptions.tracePropagationTargets;
45
56
  // There are three ways to configure tracePropagationTargets:
46
57
  // 1. via top level client option `tracePropagationTargets`
47
- // 2. via ReactNativeTracing option `tracePropagationTargets`
48
- // 3. via ReactNativeTracing option `tracingOrigins` (deprecated)
58
+ // 2. via NativescriptTracing option `tracePropagationTargets`
59
+ // 3. via NativescriptTracing option `tracingOrigins` (deprecated)
49
60
  //
50
61
  // To avoid confusion, favour top level client option `tracePropagationTargets`, and fallback to
51
- // ReactNativeTracing option `tracePropagationTargets` and then `tracingOrigins` (deprecated).
62
+ // NativescriptTracing option `tracePropagationTargets` and then `tracingOrigins` (deprecated).
52
63
  //
53
64
  // If both 1 and either one of 2 or 3 are set (from above), we log out a warning.
54
65
  const tracePropagationTargets = clientOptionsTracePropagationTargets ||
55
66
  (this._hasSetTracePropagationTargets && thisOptionsTracePropagationTargets) ||
56
67
  (this._hasSetTracingOrigins && tracingOrigins) ||
57
68
  DEFAULT_TRACE_PROPAGATION_TARGETS;
58
- if (__DEV__ &&
59
- (this._hasSetTracePropagationTargets || this._hasSetTracingOrigins) &&
60
- clientOptionsTracePropagationTargets) {
61
- logger.warn('[ReactNativeTracing] The `tracePropagationTargets` option was set in the ReactNativeTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.');
69
+ if (__DEV__ && (this._hasSetTracePropagationTargets || this._hasSetTracingOrigins) && clientOptionsTracePropagationTargets) {
70
+ logger.warn('[NativescriptTracing] The `tracePropagationTargets` option was set in the NativescriptTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.');
62
71
  }
63
72
  if (enableAppStartTracking) {
64
73
  this._instrumentAppStart().then(undefined, (reason) => {
65
- logger.error('[ReactNativeTracing] Error while instrumenting app start:', reason);
74
+ logger.error('[NativescriptTracing] Error while instrumenting app start:', reason);
66
75
  });
67
76
  }
68
77
  if (enableNativeFramesTracking) {
@@ -85,69 +94,66 @@ export class NativescriptTracing {
85
94
  routingInstrumentation.registerRoutingInstrumentation(this._onRouteWillChange.bind(this), this.options.beforeNavigate, this._onConfirmRoute.bind(this));
86
95
  }
87
96
  else {
88
- logger.log('[ReactNativeTracing] Not instrumenting route changes as routingInstrumentation has not been set.');
97
+ logger.log('[NativescriptTracing] Not instrumenting route changes as routingInstrumentation has not been set.');
89
98
  }
90
99
  addGlobalEventProcessor(this._getCurrentViewEventProcessor.bind(this));
91
100
  instrumentOutgoingRequests({
92
101
  traceFetch,
93
102
  traceXHR,
94
103
  shouldCreateSpanForRequest,
95
- tracePropagationTargets,
104
+ tracePropagationTargets
96
105
  });
97
106
  }
98
107
  /**
99
- * To be called on a transaction start. Can have async methods
100
- */
108
+ * To be called on a transaction start. Can have async methods
109
+ */
101
110
  onTransactionStart(transaction) {
102
- var _a, _b;
103
111
  if (isNearToNow(transaction.startTimestamp)) {
104
112
  // Only if this method is called at or within margin of error to the start timestamp.
105
- (_a = this.nativeFramesInstrumentation) === null || _a === void 0 ? void 0 : _a.onTransactionStart(transaction);
106
- (_b = this.stallTrackingInstrumentation) === null || _b === void 0 ? void 0 : _b.onTransactionStart(transaction);
113
+ this.nativeFramesInstrumentation?.onTransactionStart(transaction);
114
+ this.stallTrackingInstrumentation?.onTransactionStart(transaction);
107
115
  }
108
116
  }
109
117
  /**
110
- * To be called on a transaction finish. Cannot have async methods.
111
- */
118
+ * To be called on a transaction finish. Cannot have async methods.
119
+ */
112
120
  onTransactionFinish(transaction, endTimestamp) {
113
- var _a, _b;
114
- (_a = this.nativeFramesInstrumentation) === null || _a === void 0 ? void 0 : _a.onTransactionFinish(transaction);
115
- (_b = this.stallTrackingInstrumentation) === null || _b === void 0 ? void 0 : _b.onTransactionFinish(transaction, endTimestamp);
121
+ this.nativeFramesInstrumentation?.onTransactionFinish(transaction);
122
+ this.stallTrackingInstrumentation?.onTransactionFinish(transaction, endTimestamp);
116
123
  }
117
124
  /**
118
- * Called by the NativescriptProfiler component on first component mount.
119
- */
125
+ * Called by the NativescriptProfiler component on first component mount.
126
+ */
120
127
  onAppStartFinish(endTimestamp) {
121
128
  this._appStartFinishTimestamp = endTimestamp;
122
129
  }
123
130
  /**
124
- * Starts a new transaction for a user interaction.
125
- * @param userInteractionId Consists of `op` representation UI Event and `elementId` unique element identifier on current screen.
126
- */
131
+ * Starts a new transaction for a user interaction.
132
+ * @param userInteractionId Consists of `op` representation UI Event and `elementId` unique element identifier on current screen.
133
+ */
127
134
  startUserInteractionTransaction(userInteractionId) {
128
- var _a, _b;
129
135
  const { elementId, op } = userInteractionId;
130
136
  if (!this.options.enableUserInteractionTracing) {
131
- logger.log('[ReactNativeTracing] User Interaction Tracing is disabled.');
137
+ logger.log('[NativescriptTracing] User Interaction Tracing is disabled.');
132
138
  return undefined;
133
139
  }
134
140
  if (!this.options.routingInstrumentation) {
135
- logger.error('[ReactNativeTracing] User Interaction Tracing is not working because no routing instrumentation is set.');
141
+ logger.error('[NativescriptTracing] User Interaction Tracing is not working because no routing instrumentation is set.');
136
142
  return undefined;
137
143
  }
138
144
  if (!elementId) {
139
- logger.log('[ReactNativeTracing] User Interaction Tracing can not create transaction with undefined elementId.');
145
+ logger.log('[NativescriptTracing] User Interaction Tracing can not create transaction with undefined elementId.');
140
146
  return undefined;
141
147
  }
142
148
  if (!this._currentRoute) {
143
- logger.log('[ReactNativeTracing] User Interaction Tracing can not create transaction without a current route.');
149
+ logger.log('[NativescriptTracing] User Interaction Tracing can not create transaction without a current route.');
144
150
  return undefined;
145
151
  }
146
- const hub = ((_a = this._getCurrentHub) === null || _a === void 0 ? void 0 : _a.call(this)) || getCurrentHub();
152
+ const hub = this._getCurrentHub?.() || getCurrentHub();
147
153
  const activeTransaction = getActiveTransaction(hub);
148
- const activeTransactionIsNotInteraction = (activeTransaction === null || activeTransaction === void 0 ? void 0 : activeTransaction.spanId) !== ((_b = this._inflightInteractionTransaction) === null || _b === void 0 ? void 0 : _b.spanId);
154
+ const activeTransactionIsNotInteraction = activeTransaction?.spanId !== this._inflightInteractionTransaction?.spanId;
149
155
  if (activeTransaction && activeTransactionIsNotInteraction) {
150
- logger.warn(`[ReactNativeTracing] Did not create ${op} transaction because active transaction ${activeTransaction.name} exists on the scope.`);
156
+ logger.warn(`[NativescriptTracing] Did not create ${op} transaction because active transaction ${activeTransaction.name} exists on the scope.`);
151
157
  return undefined;
152
158
  }
153
159
  if (this._inflightInteractionTransaction) {
@@ -158,7 +164,7 @@ export class NativescriptTracing {
158
164
  const context = {
159
165
  name,
160
166
  op,
161
- trimEnd: true,
167
+ trimEnd: true
162
168
  };
163
169
  this._inflightInteractionTransaction = this._startIdleTransaction(context);
164
170
  this._inflightInteractionTransaction.registerBeforeFinishCallback((transaction) => {
@@ -167,23 +173,23 @@ export class NativescriptTracing {
167
173
  });
168
174
  this._inflightInteractionTransaction.registerBeforeFinishCallback(onlySampleIfChildSpans);
169
175
  this.onTransactionStart(this._inflightInteractionTransaction);
170
- logger.log(`[ReactNativeTracing] User Interaction Tracing Created ${op} transaction ${name}.`);
176
+ logger.log(`[NativescriptTracing] User Interaction Tracing Created ${op} transaction ${name}.`);
171
177
  return this._inflightInteractionTransaction;
172
178
  }
173
179
  /**
174
- * Sets the current view name into the app context.
175
- * @param event Le event.
176
- */
180
+ * Sets the current view name into the app context.
181
+ * @param event Le event.
182
+ */
177
183
  _getCurrentViewEventProcessor(event) {
178
184
  if (event.contexts && this._currentViewName) {
179
- event.contexts.app = Object.assign({ view_names: [this._currentViewName] }, event.contexts.app);
185
+ event.contexts.app = { view_names: [this._currentViewName], ...event.contexts.app };
180
186
  }
181
187
  return event;
182
188
  }
183
189
  /**
184
- * Returns the App Start Duration in Milliseconds. Also returns undefined if not able do
185
- * define the duration.
186
- */
190
+ * Returns the App Start Duration in Milliseconds. Also returns undefined if not able do
191
+ * define the duration.
192
+ */
187
193
  _getAppStartDurationMilliseconds(appStart) {
188
194
  if (!this._appStartFinishTimestamp) {
189
195
  return undefined;
@@ -191,9 +197,9 @@ export class NativescriptTracing {
191
197
  return this._appStartFinishTimestamp * 1000 - appStart.appStartTime;
192
198
  }
193
199
  /**
194
- * Instruments the app start measurements on the first route transaction.
195
- * Starts a route transaction if there isn't routing instrumentation.
196
- */
200
+ * Instruments the app start measurements on the first route transaction.
201
+ * Starts a route transaction if there isn't routing instrumentation.
202
+ */
197
203
  async _instrumentAppStart() {
198
204
  if (!this.options.enableAppStartTracking || !NATIVE.enableNative) {
199
205
  return;
@@ -213,7 +219,7 @@ export class NativescriptTracing {
213
219
  const idleTransaction = this._createRouteTransaction({
214
220
  name: 'App Start',
215
221
  op: 'ui.load',
216
- startTimestamp: appStartTimeSeconds,
222
+ startTimestamp: appStartTimeSeconds
217
223
  });
218
224
  if (idleTransaction) {
219
225
  this._addAppStartData(idleTransaction, appStart);
@@ -221,8 +227,8 @@ export class NativescriptTracing {
221
227
  }
222
228
  }
223
229
  /**
224
- * Adds app start measurements and starts a child span on a transaction.
225
- */
230
+ * Adds app start measurements and starts a child span on a transaction.
231
+ */
226
232
  _addAppStartData(transaction, appStart) {
227
233
  if (!this._appStartFinishTimestamp) {
228
234
  logger.warn('App start was never finished.');
@@ -234,7 +240,7 @@ export class NativescriptTracing {
234
240
  description: appStart.isColdStart ? 'Cold App Start' : 'Warm App Start',
235
241
  op: appStartMode,
236
242
  startTimestamp: appStartTimeSeconds,
237
- endTimestamp: this._appStartFinishTimestamp,
243
+ endTimestamp: this._appStartFinishTimestamp
238
244
  });
239
245
  const appStartDurationMilliseconds = this._appStartFinishTimestamp * 1000 - appStart.appStartTime;
240
246
  transaction.setMeasurement(appStartMode, appStartDurationMilliseconds);
@@ -244,14 +250,12 @@ export class NativescriptTracing {
244
250
  return this._createRouteTransaction(context);
245
251
  }
246
252
  /**
247
- * Creates a breadcrumb and sets the current route as a tag.
248
- */
253
+ * Creates a breadcrumb and sets the current route as a tag.
254
+ */
249
255
  _onConfirmRoute(context) {
250
- var _a, _b, _c;
251
256
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
252
- this._currentRoute = (_b = (_a = context.data) === null || _a === void 0 ? void 0 : _a.route) === null || _b === void 0 ? void 0 : _b.name;
253
- (_c = this._getCurrentHub) === null || _c === void 0 ? void 0 : _c.call(this).configureScope(scope => {
254
- var _a;
257
+ this._currentRoute = context.data?.route?.name;
258
+ this._getCurrentHub?.().configureScope((scope) => {
255
259
  if (context.data) {
256
260
  const contextData = context.data;
257
261
  scope.addBreadcrumb({
@@ -260,38 +264,41 @@ export class NativescriptTracing {
260
264
  // We assume that context.name is the name of the route.
261
265
  message: `Navigation to ${context.name}`,
262
266
  data: {
263
- from: (_a = contextData.previousRoute) === null || _a === void 0 ? void 0 : _a.name,
264
- to: contextData.route.name,
265
- },
267
+ from: contextData.previousRoute?.name,
268
+ to: contextData.route.name
269
+ }
266
270
  });
267
271
  }
268
272
  this._currentViewName = context.name;
269
273
  /**
270
- * @deprecated tag routing.route.name will be removed in the future.
271
- */
274
+ * @deprecated tag routing.route.name will be removed in the future.
275
+ */
272
276
  scope.setTag('routing.route.name', context.name);
273
277
  });
274
278
  }
275
279
  /** Create routing idle transaction. */
276
280
  _createRouteTransaction(context) {
277
281
  if (!this._getCurrentHub) {
278
- logger.warn(`[ReactNativeTracing] Did not create ${context.op} transaction because _getCurrentHub is invalid.`);
282
+ logger.warn(`[NativescriptTracing] Did not create ${context.op} transaction because _getCurrentHub is invalid.`);
279
283
  return undefined;
280
284
  }
281
285
  if (this._inflightInteractionTransaction) {
282
- logger.log(`[ReactNativeTracing] Canceling ${this._inflightInteractionTransaction.op} transaction because navigation ${context.op}.`);
286
+ logger.log(`[NativescriptTracing] Canceling ${this._inflightInteractionTransaction.op} transaction because navigation ${context.op}.`);
283
287
  this._inflightInteractionTransaction.setStatus('cancelled');
284
288
  this._inflightInteractionTransaction.finish();
285
289
  }
286
290
  const { finalTimeoutMs } = this.options;
287
- const expandedContext = Object.assign(Object.assign({}, context), { trimEnd: true });
291
+ const expandedContext = {
292
+ ...context,
293
+ trimEnd: true
294
+ };
288
295
  const idleTransaction = this._startIdleTransaction(expandedContext);
289
296
  this.onTransactionStart(idleTransaction);
290
- logger.log(`[ReactNativeTracing] Starting ${context.op} transaction "${context.name}" on scope`);
297
+ logger.log(`[NativescriptTracing] Starting ${context.op} transaction "${context.name}" on scope`);
291
298
  idleTransaction.registerBeforeFinishCallback((transaction, endTimestamp) => {
292
299
  this.onTransactionFinish(transaction, endTimestamp);
293
300
  });
294
- idleTransaction.registerBeforeFinishCallback(transaction => {
301
+ idleTransaction.registerBeforeFinishCallback((transaction) => {
295
302
  if (this.options.enableAppStartTracking && this._awaitingAppStartData) {
296
303
  transaction.op = UI_LOAD;
297
304
  this._addAppStartData(transaction, this._awaitingAppStartData);
@@ -302,14 +309,12 @@ export class NativescriptTracing {
302
309
  adjustTransactionDuration(finalTimeoutMs, transaction, endTimestamp);
303
310
  });
304
311
  if (this.options.ignoreEmptyBackNavigationTransactions) {
305
- idleTransaction.registerBeforeFinishCallback(transaction => {
306
- var _a, _b;
312
+ idleTransaction.registerBeforeFinishCallback((transaction) => {
307
313
  if (
308
314
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
309
- ((_b = (_a = transaction.data) === null || _a === void 0 ? void 0 : _a.route) === null || _b === void 0 ? void 0 : _b.hasBeenSeen) &&
310
- (!transaction.spanRecorder ||
311
- transaction.spanRecorder.spans.filter(span => span.spanId !== transaction.spanId).length === 0)) {
312
- logger.log('[ReactNativeTracing] Not sampling transaction as route has been seen before. Pass ignoreEmptyBackNavigationTransactions = false to disable this feature.');
315
+ transaction.data?.route?.hasBeenSeen &&
316
+ (!transaction.spanRecorder || transaction.spanRecorder.spans.filter((span) => span.spanId !== transaction.spanId).length === 0)) {
317
+ logger.log('[NativescriptTracing] Not sampling transaction as route has been seen before. Pass ignoreEmptyBackNavigationTransactions = false to disable this feature.');
313
318
  // Route has been seen before and has no child spans.
314
319
  transaction.sampled = false;
315
320
  }
@@ -318,19 +323,18 @@ export class NativescriptTracing {
318
323
  return idleTransaction;
319
324
  }
320
325
  /**
321
- * Start app state aware idle transaction on the scope.
322
- */
326
+ * Start app state aware idle transaction on the scope.
327
+ */
323
328
  _startIdleTransaction(context) {
324
- var _a;
325
329
  const { idleTimeoutMs, finalTimeoutMs } = this.options;
326
- const hub = ((_a = this._getCurrentHub) === null || _a === void 0 ? void 0 : _a.call(this)) || getCurrentHub();
330
+ const hub = this._getCurrentHub?.() || getCurrentHub();
327
331
  const tx = startIdleTransaction(hub, context, idleTimeoutMs, finalTimeoutMs, true);
328
332
  cancelInBackground(tx);
329
333
  return tx;
330
334
  }
331
335
  }
332
336
  /**
333
- * @inheritDoc
334
- */
337
+ * @inheritDoc
338
+ */
335
339
  NativescriptTracing.id = 'NativescriptTracing';
336
340
  //# sourceMappingURL=nstracing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nstracing.js","sourceRoot":"","sources":["../../src/tracing/nstracing.ts"],"names":[],"mappings":"AAEA,OAAO,EAC0D,oCAAoC,EAAE,0BAA0B,EAAE,oBAAoB,EACtJ,MAAM,iBAAiB,CAAC;AAMzB,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvC,OAAO,EAAE,MAAM,EAA0B,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAA4E,OAAO,EAAE,MAAM,OAAO,CAAC;AAC1G,OAAO,E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,CAAC;AACjC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC;AACrC,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAEjD,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAC/C,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC"}
1
+ {"version":3,"file":"ops.js","sourceRoot":"","sources":["../../../src/sentry/tracing/ops.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;AAEvC,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC;AACrC,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAEjD,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAC/C,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC"}