-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathindex.ts
93 lines (91 loc) · 2.42 KB
/
index.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// For use in cloudflare workers and other edge environments
//
// These are essentially the same as the node server exports, but using imports from @sentry/core
// instead of @sentry/node.
//
// This is expected to be used together with something like the @sentry/cloudflare package, to initialize Sentry
// in the worker.
//
// -------------------------
// SvelteKit SDK exports:
export { handleErrorWithSentry } from '../server-common/handleError';
export { wrapLoadWithSentry, wrapServerLoadWithSentry } from '../server-common/load';
export { sentryHandle } from '../server-common/handle';
export { initCloudflareSentryHandle } from './cloudflare';
export { wrapServerRouteWithSentry } from '../server-common/serverRoute';
// Re-export some functions from Cloudflare SDK
export {
addBreadcrumb,
addEventProcessor,
addIntegration,
captureCheckIn,
captureConsoleIntegration,
captureEvent,
captureException,
captureFeedback,
captureMessage,
close,
continueTrace,
createTransport,
dedupeIntegration,
extraErrorDataIntegration,
flush,
functionToStringIntegration,
getActiveSpan,
getClient,
getCurrentScope,
getDefaultIntegrations,
getGlobalScope,
getIsolationScope,
getRootSpan,
getSpanDescendants,
getSpanStatusFromHttpCode,
getTraceData,
getTraceMetaTags,
// eslint-disable-next-line deprecation/deprecation
inboundFiltersIntegration,
isInitialized,
lastEventId,
linkedErrorsIntegration,
requestDataIntegration,
rewriteFramesIntegration,
Scope,
SDK_VERSION,
SEMANTIC_ATTRIBUTE_SENTRY_OP,
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
setContext,
setCurrentClient,
setExtra,
setExtras,
setHttpStatus,
setMeasurement,
setTag,
setTags,
setUser,
spanToBaggageHeader,
spanToJSON,
spanToTraceHeader,
startInactiveSpan,
startNewTrace,
suppressTracing,
startSpan,
startSpanManual,
trpcMiddleware,
withActiveSpan,
withIsolationScope,
withMonitor,
withScope,
supabaseIntegration,
instrumentSupabaseClient,
zodErrorsIntegration,
} from '@sentry/cloudflare';
/**
* Tracks the Svelte component's initialization and mounting operation as well as
* updates and records them as spans. These spans are only recorded on the client-side.
* Sever-side, during SSR, this function will not record any spans.
*/
export function trackComponent(_options?: unknown): void {
// no-op on the server side
}