@logbrew/react-native 0.1.39 → 0.1.40
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.
- package/android-native-diagnostics.d.ts +15 -5
- package/android-native-diagnostics.js +170 -94
- package/apollo.cjs +435 -226
- package/apollo.d.cts +2 -70
- package/apollo.d.ts +24 -12
- package/apollo.js +438 -221
- package/apple-native-diagnostics-config.js +176 -0
- package/apple-native-diagnostics-context.js +232 -0
- package/apple-native-diagnostics-module.js +229 -0
- package/apple-native-diagnostics.d.ts +42 -11
- package/apple-native-diagnostics.js +60 -389
- package/expo.cjs +29 -16
- package/expo.d.ts +10 -9
- package/expo.js +4 -3
- package/fatal-admission.cjs +113 -0
- package/fatal-record.cjs +317 -0
- package/fatal-replay.cjs +297 -508
- package/global-errors-capture.cjs +369 -0
- package/global-errors-event.cjs +174 -0
- package/global-errors-support.cjs +128 -0
- package/global-errors.cjs +75 -351
- package/global-errors.d.cts +29 -278
- package/global-errors.d.ts +57 -27
- package/global-errors.js +7 -2
- package/global-errors.native.js +83 -48
- package/index-breadcrumbs.cjs +139 -0
- package/index-errors.cjs +167 -0
- package/index-events.cjs +365 -0
- package/index-navigation.cjs +327 -0
- package/index-random.cjs +120 -0
- package/index-react.cjs +189 -0
- package/index-spans.cjs +190 -0
- package/index-trace-fetch.cjs +322 -0
- package/index-trace.cjs +335 -0
- package/index-transport.cjs +201 -0
- package/index-values.cjs +232 -0
- package/index.cjs +95 -1243
- package/index.d.cts +2 -505
- package/index.d.ts +130 -469
- package/index.native.d.ts +146 -22
- package/index.native.js +184 -159
- package/instrumentation-fetch.cjs +113 -0
- package/instrumentation-install.cjs +241 -0
- package/instrumentation-runtime.cjs +65 -0
- package/instrumentation-teardown.cjs +93 -0
- package/instrumentation-values.cjs +282 -0
- package/instrumentation-xhr-request.cjs +298 -0
- package/instrumentation-xhr.cjs +233 -0
- package/instrumentation.cjs +110 -599
- package/instrumentation.d.cts +2 -84
- package/instrumentation.d.ts +22 -8
- package/ios/AppleDiagnostics/LBRNAppleNativeDiagnostics.swift +1 -1
- package/lifecycle.cjs +181 -78
- package/lifecycle.d.cts +1 -50
- package/lifecycle.d.ts +17 -6
- package/metadata.cjs +279 -114
- package/metro-debug-id.cjs +296 -0
- package/metro-serializer.cjs +219 -0
- package/metro.cjs +153 -297
- package/metro.d.cts +2 -57
- package/metro.d.ts +27 -13
- package/metro.js +2 -3
- package/native-bridge-async.cjs +165 -0
- package/native-bridge-scope.cjs +148 -0
- package/native-bridge.cjs +83 -186
- package/native-bridge.d.cts +2 -94
- package/native-bridge.d.ts +28 -15
- package/native-client-bindings.js +230 -0
- package/native-diagnostics-values.js +120 -0
- package/native-module-lookup.js +31 -0
- package/native-null.js +3 -0
- package/null-value.cjs +4 -0
- package/package.json +43 -1
- package/persistent-delivery-store.js +247 -0
- package/persistent-delivery.native.js +183 -261
- package/promise-rejection-handlers.cjs +368 -0
- package/promise-rejections.cjs +169 -361
- package/react-native.config.js +3 -1
- package/release-artifacts-files.cjs +94 -0
- package/release-artifacts-options.cjs +182 -0
- package/release-artifacts.cjs +278 -207
- package/release-artifacts.d.cts +2 -55
- package/release-artifacts.d.ts +18 -7
- package/release-artifacts.js +2 -4
- package/resource-fetch-graphql.cjs +265 -0
- package/resource-fetch-size.cjs +156 -0
- package/resource-fetch.cjs +227 -428
- package/resource-fetch.d.cts +1 -60
- package/resource-fetch.d.ts +17 -6
- package/scripts/sync-apple-native-sources.mjs +101 -53
- package/types/capture.d.ts +95 -0
- package/types/config.d.ts +85 -0
- package/types/defaults.d.ts +55 -0
- package/types/events.d.ts +203 -0
- package/types/provider.d.ts +81 -0
- package/types/trace.d.ts +104 -0
package/index.d.ts
CHANGED
|
@@ -1,473 +1,41 @@
|
|
|
1
|
-
import type * as React from "react";
|
|
2
1
|
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
deliveryIntervalMs?: number;
|
|
41
|
-
deliveryQueueThreshold?: number;
|
|
42
|
-
/** Advanced synchronous persistence seam. React Native apps normally use the native entry's persistentQueue mode. */
|
|
43
|
-
eventStore?: EventStore;
|
|
44
|
-
maxBatchBytes?: number;
|
|
45
|
-
maxBatchEvents?: number;
|
|
46
|
-
maxQueueBytes?: number;
|
|
47
|
-
maxQueueSize?: number;
|
|
48
|
-
maxRetries?: number;
|
|
49
|
-
onEventDropped?: (drop: DroppedEvent) => void;
|
|
50
|
-
sdkName?: string;
|
|
51
|
-
sdkVersion?: string;
|
|
52
|
-
transport?: Transport;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export type ReactNativeFetchResponseLike = {
|
|
56
|
-
status: number;
|
|
57
|
-
headers?: {
|
|
58
|
-
get(name: string): string | null | undefined;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export type ReactNativeFetchLike = (
|
|
63
|
-
endpoint: string,
|
|
64
|
-
init: {
|
|
65
|
-
body: string;
|
|
66
|
-
headers: Record<string, string>;
|
|
67
|
-
method: "POST";
|
|
68
|
-
}
|
|
69
|
-
) => Promise<ReactNativeFetchResponseLike> | ReactNativeFetchResponseLike;
|
|
70
|
-
|
|
71
|
-
export type ReactNativeFetchTransportConfig = {
|
|
72
|
-
endpoint?: string;
|
|
73
|
-
fetchImpl?: ReactNativeFetchLike;
|
|
74
|
-
headers?: Record<string, string>;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
export type TracePropagationTarget = string | RegExp | ((url: string) => boolean);
|
|
78
|
-
|
|
79
|
-
export type ReactNativeTraceparentConfig = {
|
|
80
|
-
traceId?: string;
|
|
81
|
-
spanId?: string;
|
|
82
|
-
traceFlags?: string;
|
|
83
|
-
randomValues?: (length: number) => ArrayLike<number>;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
export type ReactNativeTraceContext = {
|
|
87
|
-
traceId: string;
|
|
88
|
-
spanId: string;
|
|
89
|
-
parentSpanId?: string;
|
|
90
|
-
traceFlags: string;
|
|
91
|
-
sampled: boolean;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export type ReactNativeTraceInput = ReactNativeTraceContext | string;
|
|
95
|
-
|
|
96
|
-
export type ReactNativeTraceContextConfig = ReactNativeTraceparentConfig & {
|
|
97
|
-
parentSpanId?: string;
|
|
98
|
-
traceparent?: string;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
export type ReactNativeSpanAttributesInput = {
|
|
102
|
-
durationMs?: number;
|
|
103
|
-
metadata?: Metadata;
|
|
104
|
-
name?: string;
|
|
105
|
-
spanId?: string;
|
|
106
|
-
status?: SpanAttributes["status"];
|
|
107
|
-
trace?: ReactNativeTraceInput;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
export type TraceparentFetchLike<TResponse = unknown> = (
|
|
111
|
-
input: any,
|
|
112
|
-
init?: any
|
|
113
|
-
) => Promise<TResponse> | TResponse;
|
|
114
|
-
|
|
115
|
-
export type TraceparentFetchConfig<TResponse = unknown> = {
|
|
116
|
-
fetchImpl?: TraceparentFetchLike<TResponse>;
|
|
117
|
-
randomValues?: (length: number) => ArrayLike<number>;
|
|
118
|
-
trace?: ReactNativeTraceInput;
|
|
119
|
-
traceFlags?: string;
|
|
120
|
-
traceparent?: string;
|
|
121
|
-
traceparentFactory?: (context: {
|
|
122
|
-
input: any;
|
|
123
|
-
init?: any;
|
|
124
|
-
url: string;
|
|
125
|
-
}) => string | undefined;
|
|
126
|
-
tracePropagationTargets?: TracePropagationTarget[];
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
export type ReactNavigationRouteLike = {
|
|
130
|
-
key?: string | number | null;
|
|
131
|
-
name?: string | null;
|
|
132
|
-
path?: string | null;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
export type ReactNavigationContainerLike = {
|
|
136
|
-
current?: ReactNavigationContainerLike | null;
|
|
137
|
-
addListener(
|
|
138
|
-
eventName: string,
|
|
139
|
-
listener: (event?: unknown) => void
|
|
140
|
-
): { remove(): void } | (() => void) | void;
|
|
141
|
-
getCurrentRoute(): ReactNavigationRouteLike | undefined | null;
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
export type ReactNativeContextOptions = {
|
|
145
|
-
platform?: ReactNativePlatformLike;
|
|
146
|
-
appState?: ReactNativeAppStateLike;
|
|
147
|
-
metadata?: Metadata;
|
|
148
|
-
trace?: ReactNativeTraceInput;
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
export type CaptureScreenViewOptions = ReactNativeContextOptions & {
|
|
152
|
-
id?: string;
|
|
153
|
-
timestamp?: string;
|
|
154
|
-
status?: ActionAttributes["status"];
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
export type CaptureAppStateChangeOptions = ReactNativeContextOptions & {
|
|
158
|
-
id?: string;
|
|
159
|
-
timestamp?: string;
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
export type CreateAppStateListenerOptions = CaptureAppStateChangeOptions & {
|
|
163
|
-
/** Flush the configured client transport when AppState becomes inactive or background. */
|
|
164
|
-
flushOnBackground?: boolean;
|
|
165
|
-
/** Observe a background flush failure without throwing from the AppState callback. */
|
|
166
|
-
onFlushError?: (error: unknown) => void;
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
export type ReactNativeActionEvent = {
|
|
170
|
-
id: string;
|
|
171
|
-
timestamp: string;
|
|
172
|
-
attributes: ActionAttributes;
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
export type ReactNativeActionInput = ReactNativeContextOptions & {
|
|
176
|
-
id?: string;
|
|
177
|
-
idFactory?: (context: ReactNativeActionIdFactoryContext) => string;
|
|
178
|
-
name?: string;
|
|
179
|
-
now?: () => string;
|
|
180
|
-
screen?: string;
|
|
181
|
-
sessionId?: string;
|
|
182
|
-
status?: ActionAttributes["status"];
|
|
183
|
-
timestamp?: string;
|
|
184
|
-
traceId?: string;
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
export type ReactNativeActionIdFactoryContext = {
|
|
188
|
-
name?: string;
|
|
189
|
-
screen?: string;
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
export type ReactNativeNetworkInput = ReactNativeContextOptions & {
|
|
193
|
-
durationMs?: number;
|
|
194
|
-
id?: string;
|
|
195
|
-
idFactory?: (context: ReactNativeNetworkIdFactoryContext) => string;
|
|
196
|
-
method?: string;
|
|
197
|
-
name?: string;
|
|
198
|
-
now?: () => string;
|
|
199
|
-
routeTemplate?: string;
|
|
200
|
-
screen?: string;
|
|
201
|
-
sessionId?: string;
|
|
202
|
-
status?: ActionAttributes["status"];
|
|
203
|
-
statusCode?: number;
|
|
204
|
-
timestamp?: string;
|
|
205
|
-
traceId?: string;
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
export type ReactNativeNetworkIdFactoryContext = {
|
|
209
|
-
method?: string;
|
|
210
|
-
routeTemplate?: string;
|
|
211
|
-
screen?: string;
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
export type ReactNativeSpanEvent = {
|
|
215
|
-
id: string;
|
|
216
|
-
timestamp: string;
|
|
217
|
-
attributes: SpanAttributes;
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
export type ReactNativeNavigationSpanInput = ReactNativeContextOptions & {
|
|
221
|
-
actionType?: string;
|
|
222
|
-
durationMs?: number;
|
|
223
|
-
id?: string;
|
|
224
|
-
idFactory?: (context: ReactNativeNavigationSpanIdFactoryContext) => string;
|
|
225
|
-
includeRouteKey?: boolean;
|
|
226
|
-
name?: string;
|
|
227
|
-
now?: () => string;
|
|
228
|
-
previousRouteKey?: string | number | null;
|
|
229
|
-
previousRouteName?: string;
|
|
230
|
-
routeKey?: string | number | null;
|
|
231
|
-
routeName?: string;
|
|
232
|
-
routePath?: string;
|
|
233
|
-
screen?: string;
|
|
234
|
-
status?: SpanAttributes["status"];
|
|
235
|
-
timestamp?: string;
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
export type ReactNativeNavigationSpanIdFactoryContext = {
|
|
239
|
-
routeName?: string;
|
|
240
|
-
routePath?: string;
|
|
241
|
-
screen?: string;
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
export type ReactNativeResourceSpanInput = ReactNativeContextOptions & {
|
|
245
|
-
durationMs?: number;
|
|
246
|
-
id?: string;
|
|
247
|
-
idFactory?: (context: ReactNativeResourceSpanIdFactoryContext) => string;
|
|
248
|
-
kind?: string;
|
|
249
|
-
method?: string;
|
|
250
|
-
name?: string;
|
|
251
|
-
now?: () => string;
|
|
252
|
-
responseSizeBytes?: number;
|
|
253
|
-
routeTemplate?: string;
|
|
254
|
-
screen?: string;
|
|
255
|
-
sessionId?: string;
|
|
256
|
-
status?: SpanAttributes["status"];
|
|
257
|
-
statusCode?: number;
|
|
258
|
-
timestamp?: string;
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
export type ReactNativeResourceSpanIdFactoryContext = {
|
|
262
|
-
method?: string;
|
|
263
|
-
routeTemplate?: string;
|
|
264
|
-
screen?: string;
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
export type ReactNavigationSpanListenerOptions = ReactNativeContextOptions & {
|
|
268
|
-
captureInitialRoute?: boolean;
|
|
269
|
-
includeRouteKey?: boolean;
|
|
270
|
-
now?: () => string;
|
|
271
|
-
nowMs?: () => number;
|
|
272
|
-
onError?: (error: unknown) => void;
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
export type ReactNativeErrorEvent = {
|
|
276
|
-
id: string;
|
|
277
|
-
timestamp: string;
|
|
278
|
-
attributes: IssueAttributes;
|
|
279
|
-
};
|
|
280
|
-
|
|
281
|
-
export type ReactNativeErrorIdFactoryContext = {
|
|
282
|
-
error: unknown;
|
|
283
|
-
message: string;
|
|
284
|
-
screen?: string;
|
|
285
|
-
};
|
|
286
|
-
|
|
287
|
-
export type CaptureReactNativeErrorOptions = ReactNativeContextOptions & {
|
|
288
|
-
debugIdMap?: Record<string, string>;
|
|
289
|
-
evidence?: IssueAttributes["evidence"];
|
|
290
|
-
environment?: string;
|
|
291
|
-
fingerprint?: string;
|
|
292
|
-
handled?: boolean;
|
|
293
|
-
id?: string;
|
|
294
|
-
idFactory?: (context: ReactNativeErrorIdFactoryContext) => string;
|
|
295
|
-
includeStack?: boolean;
|
|
296
|
-
level?: IssueAttributes["level"];
|
|
297
|
-
mechanism?: string;
|
|
298
|
-
now?: () => string;
|
|
299
|
-
release?: string;
|
|
300
|
-
runtime?: string;
|
|
301
|
-
screen?: string;
|
|
302
|
-
service?: string;
|
|
303
|
-
timestamp?: string;
|
|
304
|
-
};
|
|
305
|
-
|
|
306
|
-
export type LogBrewNativeProviderProps = {
|
|
307
|
-
client: LogBrewClient;
|
|
308
|
-
platform?: ReactNativePlatformLike;
|
|
309
|
-
appState?: ReactNativeAppStateLike;
|
|
310
|
-
trace?: ReactNativeTraceInput;
|
|
311
|
-
children?: React.ReactNode;
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
export type LogBrewNativeContextValue = {
|
|
315
|
-
client: LogBrewClient;
|
|
316
|
-
platform?: ReactNativePlatformLike;
|
|
317
|
-
appState?: ReactNativeAppStateLike;
|
|
318
|
-
trace?: ReactNativeTraceContext;
|
|
319
|
-
};
|
|
320
|
-
|
|
321
|
-
export type LogBrewNativeActions = {
|
|
322
|
-
release(id: string, timestamp: string, attributes: ReleaseAttributes): void;
|
|
323
|
-
environment(id: string, timestamp: string, attributes: EnvironmentAttributes): void;
|
|
324
|
-
issue(id: string, timestamp: string, attributes: IssueAttributes): void;
|
|
325
|
-
log(id: string, timestamp: string, attributes: LogAttributes): void;
|
|
326
|
-
span(id: string, timestamp: string, attributes: SpanAttributes): void;
|
|
327
|
-
action(id: string, timestamp: string, attributes: ActionAttributes): void;
|
|
328
|
-
flush(transport?: Transport): Promise<TransportResponse>;
|
|
329
|
-
shutdown(transport?: Transport): Promise<TransportResponse>;
|
|
330
|
-
deliveryHealth(): DeliveryHealthSnapshot;
|
|
331
|
-
droppedEvents(): number;
|
|
332
|
-
pendingBytes(): number;
|
|
333
|
-
previewJson(): string;
|
|
334
|
-
pendingEvents(): number;
|
|
335
|
-
trace?: ReactNativeTraceContext;
|
|
336
|
-
captureScreenView(screenName: string, options?: CaptureScreenViewOptions): void;
|
|
337
|
-
captureAppStateChange(state: string, options?: CaptureAppStateChangeOptions): void;
|
|
338
|
-
captureReactNativeAction(input?: ReactNativeActionInput): ReactNativeActionEvent;
|
|
339
|
-
captureReactNativeNetwork(input?: ReactNativeNetworkInput): ReactNativeActionEvent;
|
|
340
|
-
captureReactNativeNavigationSpan(input?: ReactNativeNavigationSpanInput): ReactNativeSpanEvent;
|
|
341
|
-
captureReactNativeResourceSpan(input?: ReactNativeResourceSpanInput): ReactNativeSpanEvent;
|
|
342
|
-
captureReactNativeError(error: unknown, options?: CaptureReactNativeErrorOptions): ReactNativeErrorEvent;
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
export declare function createLogBrewReactNativeClient(
|
|
346
|
-
config: CreateLogBrewReactNativeClientConfig
|
|
347
|
-
): LogBrewClient;
|
|
348
|
-
export declare function createReactNativeFetchTransport(
|
|
349
|
-
config?: ReactNativeFetchTransportConfig
|
|
350
|
-
): Transport;
|
|
351
|
-
export declare function createReactNativeTraceparent(config?: ReactNativeTraceparentConfig): string;
|
|
352
|
-
export declare function createReactNativeTraceContext(
|
|
353
|
-
config?: ReactNativeTraceContextConfig
|
|
354
|
-
): ReactNativeTraceContext;
|
|
355
|
-
export declare function getActiveLogBrewTrace(): ReactNativeTraceContext | undefined;
|
|
356
|
-
export declare function withLogBrewTrace<T>(
|
|
357
|
-
trace: ReactNativeTraceInput | undefined,
|
|
358
|
-
callback: (trace: ReactNativeTraceContext) => T
|
|
359
|
-
): T;
|
|
360
|
-
export declare function bindLogBrewTrace<TArgs extends unknown[], TResult>(
|
|
361
|
-
trace: ReactNativeTraceInput | undefined,
|
|
362
|
-
callback: (...args: TArgs) => TResult
|
|
363
|
-
): (...args: TArgs) => TResult;
|
|
364
|
-
export declare function getReactNativeTraceMetadata(trace?: ReactNativeTraceInput): Metadata;
|
|
365
|
-
export declare function createReactNativeSpanAttributes(
|
|
366
|
-
input?: ReactNativeSpanAttributesInput
|
|
367
|
-
): SpanAttributes;
|
|
368
|
-
export declare function createReactNativeTraceHeaders(
|
|
369
|
-
trace?: ReactNativeTraceInput
|
|
370
|
-
): { traceparent: string };
|
|
371
|
-
export declare function createTraceparentFetch<TResponse = unknown>(
|
|
372
|
-
config?: TraceparentFetchConfig<TResponse>
|
|
373
|
-
): TraceparentFetchLike<TResponse>;
|
|
374
|
-
export declare function shouldPropagateTraceparent(
|
|
375
|
-
url: string,
|
|
376
|
-
tracePropagationTargets?: TracePropagationTarget[]
|
|
377
|
-
): boolean;
|
|
378
|
-
export declare function getReactNativeContext(options?: ReactNativeContextOptions): Metadata;
|
|
379
|
-
export declare function captureScreenView(
|
|
380
|
-
client: LogBrewClient,
|
|
381
|
-
screenName: string,
|
|
382
|
-
options?: CaptureScreenViewOptions
|
|
383
|
-
): void;
|
|
384
|
-
export declare function captureAppStateChange(
|
|
385
|
-
client: LogBrewClient,
|
|
386
|
-
state: string,
|
|
387
|
-
options?: CaptureAppStateChangeOptions
|
|
388
|
-
): void;
|
|
389
|
-
export declare function createReactNativeActionEvent(
|
|
390
|
-
input?: ReactNativeActionInput
|
|
391
|
-
): ReactNativeActionEvent;
|
|
392
|
-
export declare function captureReactNativeAction(
|
|
393
|
-
client: LogBrewClient,
|
|
394
|
-
input?: ReactNativeActionInput
|
|
395
|
-
): ReactNativeActionEvent;
|
|
396
|
-
export declare function createReactNativeNetworkEvent(
|
|
397
|
-
input?: ReactNativeNetworkInput
|
|
398
|
-
): ReactNativeActionEvent;
|
|
399
|
-
export declare function captureReactNativeNetwork(
|
|
400
|
-
client: LogBrewClient,
|
|
401
|
-
input?: ReactNativeNetworkInput
|
|
402
|
-
): ReactNativeActionEvent;
|
|
403
|
-
export declare function createReactNativeNavigationSpanEvent(
|
|
404
|
-
input?: ReactNativeNavigationSpanInput
|
|
405
|
-
): ReactNativeSpanEvent;
|
|
406
|
-
export declare function captureReactNativeNavigationSpan(
|
|
407
|
-
client: LogBrewClient,
|
|
408
|
-
input?: ReactNativeNavigationSpanInput
|
|
409
|
-
): ReactNativeSpanEvent;
|
|
410
|
-
export declare function createReactNativeResourceSpanEvent(
|
|
411
|
-
input?: ReactNativeResourceSpanInput
|
|
412
|
-
): ReactNativeSpanEvent;
|
|
413
|
-
export declare function captureReactNativeResourceSpan(
|
|
414
|
-
client: LogBrewClient,
|
|
415
|
-
input?: ReactNativeResourceSpanInput
|
|
416
|
-
): ReactNativeSpanEvent;
|
|
417
|
-
export declare function createReactNavigationSpanListener(
|
|
418
|
-
client: LogBrewClient,
|
|
419
|
-
navigationContainer: ReactNavigationContainerLike,
|
|
420
|
-
options?: ReactNavigationSpanListenerOptions
|
|
421
|
-
): () => void;
|
|
422
|
-
export declare function createReactNativeErrorEvent(
|
|
423
|
-
error: unknown,
|
|
424
|
-
options?: CaptureReactNativeErrorOptions
|
|
425
|
-
): ReactNativeErrorEvent;
|
|
426
|
-
export declare function captureReactNativeError(
|
|
427
|
-
client: LogBrewClient,
|
|
428
|
-
error: unknown,
|
|
429
|
-
options?: CaptureReactNativeErrorOptions
|
|
430
|
-
): ReactNativeErrorEvent;
|
|
431
|
-
export declare function createAppStateListener(
|
|
432
|
-
client: LogBrewClient,
|
|
433
|
-
appState: ReactNativeAppStateLike,
|
|
434
|
-
options?: CreateAppStateListenerOptions
|
|
435
|
-
): () => void;
|
|
436
|
-
export declare function LogBrewNativeProvider(props: LogBrewNativeProviderProps): React.ReactElement;
|
|
437
|
-
export declare function useLogBrewNative(): LogBrewNativeContextValue;
|
|
438
|
-
export declare function useLogBrewNativeActions(): LogBrewNativeActions;
|
|
439
|
-
|
|
440
|
-
export declare function createDefaultLogBrewReactNativeClient(
|
|
441
|
-
config: CreateLogBrewReactNativeClientConfig
|
|
442
|
-
): LogBrewClient;
|
|
443
|
-
export declare function getDefaultReactNativeContext(options?: { metadata?: Metadata }): Metadata;
|
|
444
|
-
export declare function captureDefaultScreenView(
|
|
445
|
-
client: LogBrewClient,
|
|
446
|
-
screenName: string,
|
|
447
|
-
options?: Omit<CaptureScreenViewOptions, "platform" | "appState">
|
|
448
|
-
): void;
|
|
449
|
-
export declare function captureDefaultAppStateChange(
|
|
450
|
-
client: LogBrewClient,
|
|
451
|
-
state: string,
|
|
452
|
-
options?: Omit<CaptureAppStateChangeOptions, "platform" | "appState">
|
|
453
|
-
): void;
|
|
454
|
-
export declare function captureDefaultReactNativeAction(
|
|
455
|
-
client: LogBrewClient,
|
|
456
|
-
input?: Omit<ReactNativeActionInput, "platform" | "appState">
|
|
457
|
-
): ReactNativeActionEvent;
|
|
458
|
-
export declare function captureDefaultReactNativeNetwork(
|
|
459
|
-
client: LogBrewClient,
|
|
460
|
-
input?: Omit<ReactNativeNetworkInput, "platform" | "appState">
|
|
461
|
-
): ReactNativeActionEvent;
|
|
462
|
-
export declare function captureDefaultReactNativeError(
|
|
463
|
-
client: LogBrewClient,
|
|
464
|
-
error: unknown,
|
|
465
|
-
options?: Omit<CaptureReactNativeErrorOptions, "platform" | "appState">
|
|
466
|
-
): ReactNativeErrorEvent;
|
|
467
|
-
export declare function createDefaultAppStateListener(
|
|
468
|
-
client: LogBrewClient,
|
|
469
|
-
options?: Omit<CreateAppStateListenerOptions, "appState">
|
|
470
|
-
): () => void;
|
|
2
|
+
LogBrewNativeProvider,
|
|
3
|
+
useLogBrewNative,
|
|
4
|
+
useLogBrewNativeActions
|
|
5
|
+
} from "./types/provider.js";
|
|
6
|
+
import type {
|
|
7
|
+
bindLogBrewTrace,
|
|
8
|
+
createReactNativeSpanAttributes,
|
|
9
|
+
createReactNativeTraceContext,
|
|
10
|
+
createReactNativeTraceHeaders,
|
|
11
|
+
createReactNativeTraceparent,
|
|
12
|
+
createTraceparentFetch,
|
|
13
|
+
getActiveLogBrewTrace,
|
|
14
|
+
getReactNativeTraceMetadata,
|
|
15
|
+
shouldPropagateTraceparent,
|
|
16
|
+
withLogBrewTrace
|
|
17
|
+
} from "./types/trace.js";
|
|
18
|
+
import type {
|
|
19
|
+
captureAppStateChange,
|
|
20
|
+
captureReactNativeAction,
|
|
21
|
+
captureReactNativeError,
|
|
22
|
+
captureReactNativeNavigationSpan,
|
|
23
|
+
captureReactNativeNetwork,
|
|
24
|
+
captureReactNativeResourceSpan,
|
|
25
|
+
captureScreenView,
|
|
26
|
+
createAppStateListener,
|
|
27
|
+
createReactNativeActionEvent,
|
|
28
|
+
createReactNativeErrorEvent,
|
|
29
|
+
createReactNativeNavigationSpanEvent,
|
|
30
|
+
createReactNativeNetworkEvent,
|
|
31
|
+
createReactNativeResourceSpanEvent,
|
|
32
|
+
createReactNavigationSpanListener,
|
|
33
|
+
getReactNativeContext
|
|
34
|
+
} from "./types/capture.js";
|
|
35
|
+
import type {
|
|
36
|
+
createLogBrewReactNativeClient,
|
|
37
|
+
createReactNativeFetchTransport
|
|
38
|
+
} from "./types/config.js";
|
|
471
39
|
|
|
472
40
|
declare const defaultExport: {
|
|
473
41
|
LogBrewNativeProvider: typeof LogBrewNativeProvider;
|
|
@@ -502,4 +70,97 @@ declare const defaultExport: {
|
|
|
502
70
|
withLogBrewTrace: typeof withLogBrewTrace;
|
|
503
71
|
};
|
|
504
72
|
|
|
73
|
+
export type {
|
|
74
|
+
CreateLogBrewReactNativeClientConfig,
|
|
75
|
+
ReactNativeAppStateLike,
|
|
76
|
+
ReactNativeFetchLike,
|
|
77
|
+
ReactNativeFetchResponseLike,
|
|
78
|
+
ReactNativeFetchTransportConfig,
|
|
79
|
+
ReactNativePlatformLike
|
|
80
|
+
} from "./types/config.js";
|
|
81
|
+
export {
|
|
82
|
+
createLogBrewReactNativeClient,
|
|
83
|
+
createReactNativeFetchTransport
|
|
84
|
+
} from "./types/config.js";
|
|
85
|
+
export type {
|
|
86
|
+
ReactNativeSpanAttributesInput,
|
|
87
|
+
ReactNativeTraceContext,
|
|
88
|
+
ReactNativeTraceContextConfig,
|
|
89
|
+
ReactNativeTraceInput,
|
|
90
|
+
ReactNativeTraceparentConfig,
|
|
91
|
+
TracePropagationTarget,
|
|
92
|
+
TraceparentFetchConfig,
|
|
93
|
+
TraceparentFetchLike
|
|
94
|
+
} from "./types/trace.js";
|
|
95
|
+
export {
|
|
96
|
+
bindLogBrewTrace,
|
|
97
|
+
createReactNativeSpanAttributes,
|
|
98
|
+
createReactNativeTraceContext,
|
|
99
|
+
createReactNativeTraceHeaders,
|
|
100
|
+
createReactNativeTraceparent,
|
|
101
|
+
createTraceparentFetch,
|
|
102
|
+
getActiveLogBrewTrace,
|
|
103
|
+
getReactNativeTraceMetadata,
|
|
104
|
+
shouldPropagateTraceparent,
|
|
105
|
+
withLogBrewTrace
|
|
106
|
+
} from "./types/trace.js";
|
|
107
|
+
export type {
|
|
108
|
+
CaptureAppStateChangeOptions,
|
|
109
|
+
CaptureReactNativeErrorOptions,
|
|
110
|
+
CaptureScreenViewOptions,
|
|
111
|
+
CreateAppStateListenerOptions,
|
|
112
|
+
ReactNativeActionEvent,
|
|
113
|
+
ReactNativeActionIdFactoryContext,
|
|
114
|
+
ReactNativeActionInput,
|
|
115
|
+
ReactNativeContextOptions,
|
|
116
|
+
ReactNativeErrorEvent,
|
|
117
|
+
ReactNativeErrorIdFactoryContext,
|
|
118
|
+
ReactNativeNavigationSpanIdFactoryContext,
|
|
119
|
+
ReactNativeNavigationSpanInput,
|
|
120
|
+
ReactNativeNetworkIdFactoryContext,
|
|
121
|
+
ReactNativeNetworkInput,
|
|
122
|
+
ReactNativeResourceSpanIdFactoryContext,
|
|
123
|
+
ReactNativeResourceSpanInput,
|
|
124
|
+
ReactNativeSpanEvent,
|
|
125
|
+
ReactNavigationContainerLike,
|
|
126
|
+
ReactNavigationRouteLike,
|
|
127
|
+
ReactNavigationSpanListenerOptions
|
|
128
|
+
} from "./types/events.js";
|
|
129
|
+
export {
|
|
130
|
+
captureAppStateChange,
|
|
131
|
+
captureReactNativeAction,
|
|
132
|
+
captureReactNativeError,
|
|
133
|
+
captureReactNativeNavigationSpan,
|
|
134
|
+
captureReactNativeNetwork,
|
|
135
|
+
captureReactNativeResourceSpan,
|
|
136
|
+
captureScreenView,
|
|
137
|
+
createAppStateListener,
|
|
138
|
+
createReactNativeActionEvent,
|
|
139
|
+
createReactNativeErrorEvent,
|
|
140
|
+
createReactNativeNavigationSpanEvent,
|
|
141
|
+
createReactNativeNetworkEvent,
|
|
142
|
+
createReactNativeResourceSpanEvent,
|
|
143
|
+
createReactNavigationSpanListener,
|
|
144
|
+
getReactNativeContext
|
|
145
|
+
} from "./types/capture.js";
|
|
146
|
+
export type {
|
|
147
|
+
LogBrewNativeActions,
|
|
148
|
+
LogBrewNativeContextValue,
|
|
149
|
+
LogBrewNativeProviderProps
|
|
150
|
+
} from "./types/provider.js";
|
|
151
|
+
export {
|
|
152
|
+
LogBrewNativeProvider,
|
|
153
|
+
useLogBrewNative,
|
|
154
|
+
useLogBrewNativeActions
|
|
155
|
+
} from "./types/provider.js";
|
|
156
|
+
export {
|
|
157
|
+
captureDefaultAppStateChange,
|
|
158
|
+
captureDefaultReactNativeAction,
|
|
159
|
+
captureDefaultReactNativeError,
|
|
160
|
+
captureDefaultReactNativeNetwork,
|
|
161
|
+
captureDefaultScreenView,
|
|
162
|
+
createDefaultAppStateListener,
|
|
163
|
+
createDefaultLogBrewReactNativeClient,
|
|
164
|
+
getDefaultReactNativeContext
|
|
165
|
+
} from "./types/defaults.js";
|
|
505
166
|
export default defaultExport;
|