Skip to content

Commit 1f6989c

Browse files
committed
chore: tsc
1 parent 895be6b commit 1f6989c

File tree

4 files changed

+138
-159
lines changed

4 files changed

+138
-159
lines changed

packages/sentry/integrations/default.js

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/sentry/tracing/nstracing.d.ts

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ import { StallTrackingInstrumentation } from './stalltracking';
77
import { BeforeNavigate } from './types';
88
export interface NativescriptTracingOptions extends RequestInstrumentationOptions {
99
/**
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+
*/
1616
idleTimeout: number;
1717
/**
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+
*/
2424
maxTransactionDuration: number;
2525
/**
2626
* 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
4040
*/
4141
finalTimeoutMs: number;
4242
/**
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+
*/
4646
routingInstrumentation?: RoutingInstrumentationInstance;
4747
/**
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+
*/
5353
ignoreEmptyBackNavigationTransactions: boolean;
5454
/**
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+
*/
6262
beforeNavigate: BeforeNavigate;
6363
/**
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+
*/
6969
enableAppStartTracking: boolean;
7070
/**
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+
*/
7373
enableNativeFramesTracking: boolean;
7474
/**
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+
*/
7777
enableStallTracking: boolean;
7878
/**
7979
* Trace User Interaction events like touch and gestures.
@@ -85,12 +85,12 @@ export interface NativescriptTracingOptions extends RequestInstrumentationOption
8585
*/
8686
export declare class NativescriptTracing implements Integration {
8787
/**
88-
* @inheritDoc
89-
*/
88+
* @inheritDoc
89+
*/
9090
static id: string;
9191
/**
92-
* @inheritDoc
93-
*/
92+
* @inheritDoc
93+
*/
9494
name: string;
9595
/** NativescriptTracing options */
9696
options: NativescriptTracingOptions;
@@ -107,58 +107,58 @@ export declare class NativescriptTracing implements Integration {
107107
private _currentViewName;
108108
constructor(options?: Partial<NativescriptTracingOptions>);
109109
/**
110-
* Registers routing and request instrumentation.
111-
*/
110+
* Registers routing and request instrumentation.
111+
*/
112112
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
113113
/**
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+
*/
116116
onTransactionStart(transaction: Transaction): void;
117117
/**
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+
*/
120120
onTransactionFinish(transaction: Transaction, endTimestamp?: number): void;
121121
/**
122-
* Called by the NativescriptProfiler component on first component mount.
123-
*/
122+
* Called by the NativescriptProfiler component on first component mount.
123+
*/
124124
onAppStartFinish(endTimestamp: number): void;
125125
/**
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+
*/
129129
startUserInteractionTransaction(userInteractionId: {
130130
elementId: string | undefined;
131131
op: string;
132132
}): TransactionType | undefined;
133133
/**
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+
*/
137137
private _getCurrentViewEventProcessor;
138138
/**
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+
*/
142142
private _getAppStartDurationMilliseconds;
143143
/**
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+
*/
147147
private _instrumentAppStart;
148148
/**
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+
*/
151151
private _addAppStartData;
152152
/** To be called when the route changes, but BEFORE the components of the new route mount. */
153153
private _onRouteWillChange;
154154
/**
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+
*/
157157
private _onConfirmRoute;
158158
/** Create routing idle transaction. */
159159
private _createRouteTransaction;
160160
/**
161-
* Start app state aware idle transaction on the scope.
162-
*/
161+
* Start app state aware idle transaction on the scope.
162+
*/
163163
private _startIdleTransaction;
164164
}

0 commit comments

Comments
 (0)