@logbrew/react-native 0.1.39 → 0.1.41
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/README.md +3 -3
- 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 +97 -1245
- 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/ios/GeneratedAppleDiagnostics/LogBrew/DeliveryLifecycle.swift +1 -1
- package/ios/GeneratedAppleDiagnostics/SOURCE-MANIFEST.json +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.cts
CHANGED
|
@@ -1,505 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
ActionAttributes,
|
|
4
|
-
DeliveryHealthSnapshot,
|
|
5
|
-
DroppedEvent,
|
|
6
|
-
EnvironmentAttributes,
|
|
7
|
-
EventStore,
|
|
8
|
-
IssueAttributes,
|
|
9
|
-
LogAttributes,
|
|
10
|
-
LogBrewClient,
|
|
11
|
-
Metadata,
|
|
12
|
-
ReleaseAttributes,
|
|
13
|
-
SpanAttributes,
|
|
14
|
-
TelemetryContext,
|
|
15
|
-
Transport,
|
|
16
|
-
TransportResponse
|
|
17
|
-
} from "@logbrew/sdk";
|
|
18
|
-
|
|
19
|
-
export type ReactNativePlatformLike = {
|
|
20
|
-
OS?: string;
|
|
21
|
-
Version?: string | number;
|
|
22
|
-
isPad?: boolean;
|
|
23
|
-
constants?: { isTesting?: boolean; [key: string]: unknown };
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export type ReactNativeAppStateLike = {
|
|
27
|
-
currentState?: string | null;
|
|
28
|
-
addEventListener?: (
|
|
29
|
-
type: "change",
|
|
30
|
-
listener: (state: string) => void
|
|
31
|
-
) => { remove(): void } | (() => void);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export type CreateLogBrewReactNativeClientConfig = {
|
|
35
|
-
automaticDelivery?: boolean;
|
|
36
|
-
apiKey?: string;
|
|
37
|
-
clientKey?: string;
|
|
38
|
-
context?: TelemetryContext;
|
|
39
|
-
/** Automatic delivery interval in milliseconds. Defaults to 5000 on mobile to save battery. */
|
|
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;
|
|
471
|
-
|
|
472
|
-
declare const defaultExport: {
|
|
473
|
-
LogBrewNativeProvider: typeof LogBrewNativeProvider;
|
|
474
|
-
bindLogBrewTrace: typeof bindLogBrewTrace;
|
|
475
|
-
captureAppStateChange: typeof captureAppStateChange;
|
|
476
|
-
captureReactNativeAction: typeof captureReactNativeAction;
|
|
477
|
-
captureReactNativeError: typeof captureReactNativeError;
|
|
478
|
-
captureReactNativeNetwork: typeof captureReactNativeNetwork;
|
|
479
|
-
captureReactNativeNavigationSpan: typeof captureReactNativeNavigationSpan;
|
|
480
|
-
captureReactNativeResourceSpan: typeof captureReactNativeResourceSpan;
|
|
481
|
-
captureScreenView: typeof captureScreenView;
|
|
482
|
-
createAppStateListener: typeof createAppStateListener;
|
|
483
|
-
createLogBrewReactNativeClient: typeof createLogBrewReactNativeClient;
|
|
484
|
-
createReactNavigationSpanListener: typeof createReactNavigationSpanListener;
|
|
485
|
-
createReactNativeFetchTransport: typeof createReactNativeFetchTransport;
|
|
486
|
-
createReactNativeSpanAttributes: typeof createReactNativeSpanAttributes;
|
|
487
|
-
createReactNativeTraceContext: typeof createReactNativeTraceContext;
|
|
488
|
-
createReactNativeTraceHeaders: typeof createReactNativeTraceHeaders;
|
|
489
|
-
createReactNativeActionEvent: typeof createReactNativeActionEvent;
|
|
490
|
-
createReactNativeErrorEvent: typeof createReactNativeErrorEvent;
|
|
491
|
-
createReactNativeNetworkEvent: typeof createReactNativeNetworkEvent;
|
|
492
|
-
createReactNativeNavigationSpanEvent: typeof createReactNativeNavigationSpanEvent;
|
|
493
|
-
createReactNativeResourceSpanEvent: typeof createReactNativeResourceSpanEvent;
|
|
494
|
-
createReactNativeTraceparent: typeof createReactNativeTraceparent;
|
|
495
|
-
createTraceparentFetch: typeof createTraceparentFetch;
|
|
496
|
-
getActiveLogBrewTrace: typeof getActiveLogBrewTrace;
|
|
497
|
-
getReactNativeContext: typeof getReactNativeContext;
|
|
498
|
-
getReactNativeTraceMetadata: typeof getReactNativeTraceMetadata;
|
|
499
|
-
shouldPropagateTraceparent: typeof shouldPropagateTraceparent;
|
|
500
|
-
useLogBrewNative: typeof useLogBrewNative;
|
|
501
|
-
useLogBrewNativeActions: typeof useLogBrewNativeActions;
|
|
502
|
-
withLogBrewTrace: typeof withLogBrewTrace;
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
export default defaultExport;
|
|
1
|
+
export * from "./index.js";
|
|
2
|
+
export { default } from "./index.js";
|