-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathtypes.ts
69 lines (62 loc) · 1.87 KB
/
types.ts
1
2
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import type { ClientOptions, Options, TracePropagationTargets } from '@sentry/core';
import type { BunClient } from './client';
import type { BunTransportOptions } from './transports';
export interface BaseBunOptions {
/**
* List of strings/regex controlling to which outgoing requests
* the SDK will attach tracing headers.
*
* By default the SDK will attach those headers to all outgoing
* requests. If this option is provided, the SDK will match the
* request URL of outgoing requests against the items in this
* array, and only attach tracing headers if a match was found.
*
* @example
* ```js
* Sentry.init({
* tracePropagationTargets: ['api.site.com'],
* });
* ```
*/
tracePropagationTargets?: TracePropagationTargets;
/** Sets an optional server name (device name) */
serverName?: string;
/**
* Specify a custom BunClient to be used. Must extend BunClient!
* This is not a public, supported API, but used internally only.
*
* @hidden
* */
clientClass?: typeof BunClient;
/** Callback that is executed when a fatal global error occurs. */
onFatalError?(this: void, error: Error): void;
}
/**
* Configuration options for the Sentry Bun SDK
* @see @sentry/core Options for more information.
*/
export interface BunOptions
extends Options<
BunTransportOptions,
[
'InboundFilters',
'FunctionToString',
'LinkedErrors',
'RequestData',
'Console',
'Http',
'NodeFetch',
'OnUncaughtException',
'OnUnhandledRejection',
'ContextLines',
'Context',
'Modules',
'BunServer',
]
>,
BaseBunOptions {}
/**
* Configuration options for the Sentry Bun SDK Client class
* @see BunClient for more information.
*/
export interface BunClientOptions extends ClientOptions<BunTransportOptions>, BaseBunOptions {}