-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathtypes.ts
40 lines (35 loc) · 1.31 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
import type { ClientOptions, Options, TracePropagationTargets } from '@sentry/core';
import type { DenoTransportOptions } from './transports';
export interface BaseDenoOptions {
/**
* 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;
/** Callback that is executed when a fatal global error occurs. */
onFatalError?(this: void, error: Error): void;
}
/**
* Configuration options for the Sentry Deno SDK
* @see @sentry/core Options for more information.
*/
export interface DenoOptions extends Options<DenoTransportOptions>, BaseDenoOptions {}
/**
* Configuration options for the Sentry Deno SDK Client class
* @see DenoClient for more information.
*/
export interface DenoClientOptions extends ClientOptions<DenoTransportOptions>, BaseDenoOptions {}