sentry-vir 0.0.3 → 0.1.0
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 +7 -5
- package/dist/cjs/auto.d.ts +15 -0
- package/dist/cjs/auto.js +63 -0
- package/dist/cjs/browser.d.ts +93 -0
- package/dist/cjs/browser.js +48 -0
- package/dist/cjs/env/execution-env.d.ts +2 -170
- package/dist/cjs/env/execution-env.js +1 -38
- package/dist/cjs/event-context/event-context.d.ts +1 -1
- package/dist/cjs/index.d.ts +5 -5
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/init-sentry/base-sentry-init.d.ts +38 -0
- package/dist/cjs/init-sentry/{init-sentry.js → base-sentry-init.js} +7 -8
- package/dist/cjs/node.d.ts +82 -0
- package/dist/cjs/node.js +48 -0
- package/dist/cjs/{init-sentry → processing}/event-processor.d.ts +1 -1
- package/dist/cjs/{init-sentry → processing}/sentry-config.js +2 -0
- package/dist/cjs/{init-sentry → processing}/sentry-logger.js +50 -33
- package/dist/esm/auto.d.ts +15 -0
- package/dist/esm/auto.js +36 -0
- package/dist/esm/browser.d.ts +93 -0
- package/dist/esm/browser.js +21 -0
- package/dist/esm/env/execution-env.d.ts +13 -0
- package/dist/esm/env/execution-env.js +0 -13
- package/dist/{types → esm}/event-context/event-context.d.ts +1 -1
- package/dist/{types → esm}/index.d.ts +5 -5
- package/dist/esm/index.js +5 -5
- package/dist/esm/init-sentry/base-sentry-init.d.ts +38 -0
- package/dist/esm/init-sentry/{init-sentry.js → base-sentry-init.js} +5 -6
- package/dist/esm/node.d.ts +82 -0
- package/dist/esm/node.js +21 -0
- package/dist/{types/init-sentry → esm/processing}/event-processor.d.ts +1 -1
- package/dist/esm/{init-sentry → processing}/sentry-config.js +2 -0
- package/dist/esm/{init-sentry → processing}/sentry-logger.js +50 -33
- package/package.json +6 -3
- package/dist/cjs/init-sentry/init-sentry.d.ts +0 -194
- package/dist/types/env/execution-env.d.ts +0 -181
- package/dist/types/init-sentry/init-sentry.d.ts +0 -194
- /package/dist/cjs/{init-sentry → processing}/event-processor.js +0 -0
- /package/dist/cjs/{init-sentry → processing}/handle-sentry-send.d.ts +0 -0
- /package/dist/cjs/{init-sentry → processing}/handle-sentry-send.js +0 -0
- /package/dist/cjs/{init-sentry → processing}/sentry-config.d.ts +0 -0
- /package/dist/cjs/{init-sentry → processing}/sentry-logger.d.ts +0 -0
- /package/dist/{types → esm}/env/release-env.d.ts +0 -0
- /package/dist/{types → esm}/event-context/event-severity.d.ts +0 -0
- /package/dist/{types → esm}/event-context/extra-context.error.d.ts +0 -0
- /package/dist/{types → esm}/event-context/extra-event-context.d.ts +0 -0
- /package/dist/esm/{init-sentry → processing}/event-processor.js +0 -0
- /package/dist/{types/init-sentry → esm/processing}/handle-sentry-send.d.ts +0 -0
- /package/dist/esm/{init-sentry → processing}/handle-sentry-send.js +0 -0
- /package/dist/{types/init-sentry → esm/processing}/sentry-config.d.ts +0 -0
- /package/dist/{types/init-sentry → esm/processing}/sentry-logger.d.ts +0 -0
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import type { Options } from '@sentry/types';
|
|
2
|
-
import { SentryExecutionEnvEnum } from '../env/execution-env';
|
|
3
|
-
import { SentryReleaseEnvEnum } from '../env/release-env';
|
|
4
|
-
import { EventExtraContextCreator } from '../event-context/event-context';
|
|
5
|
-
import { UserOverrides } from './sentry-config';
|
|
6
|
-
/** Configuration for initializing Sentry. */
|
|
7
|
-
export type InitSentryInput = {
|
|
8
|
-
/**
|
|
9
|
-
* The environment wherein the Sentry client will execute. Used to determine which Sentry client
|
|
10
|
-
* to load: browser or node.
|
|
11
|
-
*/
|
|
12
|
-
executionEnv: SentryExecutionEnvEnum;
|
|
13
|
-
/**
|
|
14
|
-
* The release environment, prod vs dev rather than browser vs node. In dev, events won't be
|
|
15
|
-
* sent to sentry. In both options, all events will be logged to the local console.
|
|
16
|
-
*/
|
|
17
|
-
releaseEnv: SentryReleaseEnvEnum;
|
|
18
|
-
/** Name for the current release. */
|
|
19
|
-
releaseName: Required<Options>['release'];
|
|
20
|
-
/** DSN needed for Sentry to hook up to your sentry project. */
|
|
21
|
-
dsn: Required<Options>['dsn'];
|
|
22
|
-
/**
|
|
23
|
-
* Optionally create extra context to be included in all Sentry events. This will execute for
|
|
24
|
-
* each event that is processed.
|
|
25
|
-
*/
|
|
26
|
-
createUniversalContext?: EventExtraContextCreator | undefined;
|
|
27
|
-
/** Optionally override any Sentry config properties that this package sets. */
|
|
28
|
-
sentryConfigOverrides?: UserOverrides;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Setup a sentry client with all the default sentry-vir integrations and configs.
|
|
32
|
-
*
|
|
33
|
-
* To override any default sentry-vir settings, include them in the userConfig input.
|
|
34
|
-
*/
|
|
35
|
-
export declare function initSentry({ executionEnv, dsn, releaseEnv, releaseName, sentryConfigOverrides, createUniversalContext, }: InitSentryInput): Promise<{
|
|
36
|
-
default: typeof import("@sentry/browser");
|
|
37
|
-
Integrations: {
|
|
38
|
-
GlobalHandlers: typeof import("@sentry/browser").GlobalHandlers;
|
|
39
|
-
TryCatch: typeof import("@sentry/browser").TryCatch;
|
|
40
|
-
Breadcrumbs: typeof import("@sentry/browser").Breadcrumbs;
|
|
41
|
-
LinkedErrors: typeof import("@sentry/browser").LinkedErrors;
|
|
42
|
-
HttpContext: typeof import("@sentry/browser").HttpContext;
|
|
43
|
-
Dedupe: typeof import("@sentry/browser").Dedupe;
|
|
44
|
-
FunctionToString: typeof import("@sentry/core").FunctionToString;
|
|
45
|
-
InboundFilters: typeof import("@sentry/core").InboundFilters;
|
|
46
|
-
};
|
|
47
|
-
Replay: typeof import("@sentry/replay").Replay;
|
|
48
|
-
BrowserTracing: typeof import("@sentry-internal/tracing").BrowserTracing;
|
|
49
|
-
defaultRequestInstrumentationOptions: import("@sentry-internal/tracing").RequestInstrumentationOptions;
|
|
50
|
-
instrumentOutgoingRequests: typeof import("@sentry-internal/tracing").instrumentOutgoingRequests;
|
|
51
|
-
addTracingExtensions: typeof import("@sentry/core").addTracingExtensions;
|
|
52
|
-
setMeasurement: typeof import("@sentry/core").setMeasurement;
|
|
53
|
-
extractTraceparentData: typeof import("@sentry/utils").extractTraceparentData;
|
|
54
|
-
getActiveTransaction: typeof import("@sentry/core").getActiveTransaction;
|
|
55
|
-
spanStatusfromHttpCode: typeof import("@sentry/core").spanStatusfromHttpCode;
|
|
56
|
-
trace: typeof import("@sentry/core").trace;
|
|
57
|
-
makeMultiplexedTransport: typeof import("@sentry/core").makeMultiplexedTransport;
|
|
58
|
-
ModuleMetadata: typeof import("@sentry/core").ModuleMetadata;
|
|
59
|
-
makeBrowserOfflineTransport: typeof import("@sentry/browser").makeBrowserOfflineTransport;
|
|
60
|
-
onProfilingStartRouteTransaction: typeof import("@sentry/browser").onProfilingStartRouteTransaction;
|
|
61
|
-
BrowserProfilingIntegration: typeof import("@sentry/browser").BrowserProfilingIntegration;
|
|
62
|
-
addGlobalEventProcessor: typeof import("@sentry/core").addGlobalEventProcessor;
|
|
63
|
-
addBreadcrumb: typeof import("@sentry/core").addBreadcrumb;
|
|
64
|
-
captureException: typeof import("@sentry/core").captureException;
|
|
65
|
-
captureEvent: typeof import("@sentry/core").captureEvent;
|
|
66
|
-
captureMessage: typeof import("@sentry/core").captureMessage;
|
|
67
|
-
close: typeof import("@sentry/core").close;
|
|
68
|
-
configureScope: typeof import("@sentry/core").configureScope;
|
|
69
|
-
createTransport: typeof import("@sentry/core").createTransport;
|
|
70
|
-
flush: typeof import("@sentry/core").flush;
|
|
71
|
-
getHubFromCarrier: typeof import("@sentry/core").getHubFromCarrier;
|
|
72
|
-
getCurrentHub: typeof import("@sentry/core").getCurrentHub;
|
|
73
|
-
Hub: typeof import("@sentry/core").Hub;
|
|
74
|
-
lastEventId: typeof import("@sentry/core").lastEventId;
|
|
75
|
-
makeMain: typeof import("@sentry/core").makeMain;
|
|
76
|
-
Scope: typeof import("@sentry/core").Scope;
|
|
77
|
-
startTransaction: typeof import("@sentry/core").startTransaction;
|
|
78
|
-
getActiveSpan: typeof import("@sentry/core").getActiveSpan;
|
|
79
|
-
startSpan: typeof import("@sentry/core").startSpan;
|
|
80
|
-
startInactiveSpan: typeof import("@sentry/core").startInactiveSpan;
|
|
81
|
-
startSpanManual: typeof import("@sentry/core").startSpanManual;
|
|
82
|
-
SDK_VERSION: "7.73.0";
|
|
83
|
-
setContext: typeof import("@sentry/core").setContext;
|
|
84
|
-
setExtra: typeof import("@sentry/core").setExtra;
|
|
85
|
-
setExtras: typeof import("@sentry/core").setExtras;
|
|
86
|
-
setTag: typeof import("@sentry/core").setTag;
|
|
87
|
-
setTags: typeof import("@sentry/core").setTags;
|
|
88
|
-
setUser: typeof import("@sentry/core").setUser;
|
|
89
|
-
withScope: typeof import("@sentry/core").withScope;
|
|
90
|
-
FunctionToString: typeof import("@sentry/core").FunctionToString;
|
|
91
|
-
InboundFilters: typeof import("@sentry/core").InboundFilters;
|
|
92
|
-
WINDOW: import("@sentry/utils").InternalGlobal & Window;
|
|
93
|
-
BrowserClient: typeof import("@sentry/browser").BrowserClient;
|
|
94
|
-
makeFetchTransport: typeof import("@sentry/browser").makeFetchTransport;
|
|
95
|
-
makeXHRTransport: typeof import("@sentry/browser").makeXHRTransport;
|
|
96
|
-
defaultStackParser: import("@sentry/types").StackParser;
|
|
97
|
-
defaultStackLineParsers: import("@sentry/types").StackLineParser[];
|
|
98
|
-
chromeStackLineParser: import("@sentry/types").StackLineParser;
|
|
99
|
-
geckoStackLineParser: import("@sentry/types").StackLineParser;
|
|
100
|
-
opera10StackLineParser: import("@sentry/types").StackLineParser;
|
|
101
|
-
opera11StackLineParser: import("@sentry/types").StackLineParser;
|
|
102
|
-
winjsStackLineParser: import("@sentry/types").StackLineParser;
|
|
103
|
-
eventFromException: typeof import("@sentry/browser").eventFromException;
|
|
104
|
-
eventFromMessage: typeof import("@sentry/browser").eventFromMessage;
|
|
105
|
-
exceptionFromError: typeof import("@sentry/browser").exceptionFromError;
|
|
106
|
-
createUserFeedbackEnvelope: typeof import("@sentry/browser").createUserFeedbackEnvelope;
|
|
107
|
-
defaultIntegrations: (import("@sentry/browser").HttpContext | import("@sentry/browser").Dedupe | import("@sentry/core").InboundFilters | import("@sentry/core").FunctionToString | import("@sentry/browser").GlobalHandlers | import("@sentry/browser").TryCatch | import("@sentry/browser").Breadcrumbs | import("@sentry/browser").LinkedErrors)[];
|
|
108
|
-
forceLoad: typeof import("@sentry/browser").forceLoad;
|
|
109
|
-
init: typeof import("@sentry/browser").init;
|
|
110
|
-
onLoad: typeof import("@sentry/browser").onLoad;
|
|
111
|
-
showReportDialog: typeof import("@sentry/browser").showReportDialog;
|
|
112
|
-
captureUserFeedback: typeof import("@sentry/browser").captureUserFeedback;
|
|
113
|
-
wrap: typeof import("@sentry/browser").wrap;
|
|
114
|
-
GlobalHandlers: typeof import("@sentry/browser").GlobalHandlers;
|
|
115
|
-
TryCatch: typeof import("@sentry/browser").TryCatch;
|
|
116
|
-
Breadcrumbs: typeof import("@sentry/browser").Breadcrumbs;
|
|
117
|
-
LinkedErrors: typeof import("@sentry/browser").LinkedErrors;
|
|
118
|
-
HttpContext: typeof import("@sentry/browser").HttpContext;
|
|
119
|
-
Dedupe: typeof import("@sentry/browser").Dedupe;
|
|
120
|
-
} | {
|
|
121
|
-
default: typeof import("@sentry/node");
|
|
122
|
-
addGlobalEventProcessor: typeof import("@sentry/core").addGlobalEventProcessor;
|
|
123
|
-
addBreadcrumb: typeof import("@sentry/core").addBreadcrumb;
|
|
124
|
-
captureException: typeof import("@sentry/core").captureException;
|
|
125
|
-
captureEvent: typeof import("@sentry/core").captureEvent;
|
|
126
|
-
captureMessage: typeof import("@sentry/core").captureMessage;
|
|
127
|
-
close: typeof import("@sentry/core").close;
|
|
128
|
-
configureScope: typeof import("@sentry/core").configureScope;
|
|
129
|
-
createTransport: typeof import("@sentry/core").createTransport;
|
|
130
|
-
extractTraceparentData: typeof import("@sentry/utils").extractTraceparentData;
|
|
131
|
-
flush: typeof import("@sentry/core").flush;
|
|
132
|
-
getActiveTransaction: typeof import("@sentry/core").getActiveTransaction;
|
|
133
|
-
getHubFromCarrier: typeof import("@sentry/core").getHubFromCarrier;
|
|
134
|
-
getCurrentHub: typeof import("@sentry/core").getCurrentHub;
|
|
135
|
-
Hub: typeof import("@sentry/core").Hub;
|
|
136
|
-
lastEventId: typeof import("@sentry/core").lastEventId;
|
|
137
|
-
makeMain: typeof import("@sentry/core").makeMain;
|
|
138
|
-
runWithAsyncContext: typeof import("@sentry/core").runWithAsyncContext;
|
|
139
|
-
Scope: typeof import("@sentry/core").Scope;
|
|
140
|
-
startTransaction: typeof import("@sentry/core").startTransaction;
|
|
141
|
-
SDK_VERSION: "7.73.0";
|
|
142
|
-
setContext: typeof import("@sentry/core").setContext;
|
|
143
|
-
setExtra: typeof import("@sentry/core").setExtra;
|
|
144
|
-
setExtras: typeof import("@sentry/core").setExtras;
|
|
145
|
-
setTag: typeof import("@sentry/core").setTag;
|
|
146
|
-
setTags: typeof import("@sentry/core").setTags;
|
|
147
|
-
setUser: typeof import("@sentry/core").setUser;
|
|
148
|
-
spanStatusfromHttpCode: typeof import("@sentry/core").spanStatusfromHttpCode;
|
|
149
|
-
trace: typeof import("@sentry/core").trace;
|
|
150
|
-
withScope: typeof import("@sentry/core").withScope;
|
|
151
|
-
captureCheckIn: typeof import("@sentry/core").captureCheckIn;
|
|
152
|
-
setMeasurement: typeof import("@sentry/core").setMeasurement;
|
|
153
|
-
getActiveSpan: typeof import("@sentry/core").getActiveSpan;
|
|
154
|
-
startSpan: typeof import("@sentry/core").startSpan;
|
|
155
|
-
startActiveSpan: typeof import("@sentry/core").startSpan;
|
|
156
|
-
startInactiveSpan: typeof import("@sentry/core").startInactiveSpan;
|
|
157
|
-
startSpanManual: typeof import("@sentry/core").startSpanManual;
|
|
158
|
-
autoDiscoverNodePerformanceMonitoringIntegrations: typeof import("@sentry/node").autoDiscoverNodePerformanceMonitoringIntegrations;
|
|
159
|
-
NodeClient: typeof import("@sentry/node").NodeClient;
|
|
160
|
-
makeNodeTransport: typeof import("@sentry/node").makeNodeTransport;
|
|
161
|
-
defaultIntegrations: (import("@sentry/core").InboundFilters | import("@sentry/core").FunctionToString | import("@sentry/node/types/integrations").OnUncaughtException | import("@sentry/node/types/integrations").OnUnhandledRejection | import("@sentry/node/types/integrations").ContextLines | import("@sentry/node/types/integrations").Context | import("@sentry/node/types/integrations").Console | import("@sentry/node/types/integrations").Http | import("@sentry/node/types/integrations").LinkedErrors | import("@sentry/node/types/integrations").Modules | import("@sentry/node/types/integrations").RequestData | import("@sentry/node/types/integrations").LocalVariables | import("@sentry/node/types/integrations").Undici)[];
|
|
162
|
-
init: typeof import("@sentry/node").init;
|
|
163
|
-
defaultStackParser: import("@sentry/types").StackParser;
|
|
164
|
-
getSentryRelease: typeof import("@sentry/node").getSentryRelease;
|
|
165
|
-
addRequestDataToEvent: typeof import("@sentry/node").addRequestDataToEvent;
|
|
166
|
-
DEFAULT_USER_INCLUDES: string[];
|
|
167
|
-
extractRequestData: typeof import("@sentry/node").extractRequestData;
|
|
168
|
-
deepReadDirSync: typeof import("@sentry/node").deepReadDirSync;
|
|
169
|
-
getModuleFromFilename: typeof import("@sentry/node").getModuleFromFilename;
|
|
170
|
-
enableAnrDetection: typeof import("@sentry/node").enableAnrDetection;
|
|
171
|
-
Integrations: {
|
|
172
|
-
Apollo: typeof import("@sentry-internal/tracing").Apollo;
|
|
173
|
-
Express: typeof import("@sentry-internal/tracing").Express;
|
|
174
|
-
GraphQL: typeof import("@sentry-internal/tracing").GraphQL;
|
|
175
|
-
Mongo: typeof import("@sentry-internal/tracing").Mongo;
|
|
176
|
-
Mysql: typeof import("@sentry-internal/tracing").Mysql;
|
|
177
|
-
Postgres: typeof import("@sentry-internal/tracing").Postgres;
|
|
178
|
-
Prisma: typeof import("@sentry-internal/tracing").Prisma;
|
|
179
|
-
Console: typeof import("@sentry/node/types/integrations").Console;
|
|
180
|
-
Http: typeof import("@sentry/node/types/integrations").Http;
|
|
181
|
-
OnUncaughtException: typeof import("@sentry/node/types/integrations").OnUncaughtException;
|
|
182
|
-
OnUnhandledRejection: typeof import("@sentry/node/types/integrations").OnUnhandledRejection;
|
|
183
|
-
LinkedErrors: typeof import("@sentry/node/types/integrations").LinkedErrors;
|
|
184
|
-
Modules: typeof import("@sentry/node/types/integrations").Modules;
|
|
185
|
-
ContextLines: typeof import("@sentry/node/types/integrations").ContextLines;
|
|
186
|
-
Context: typeof import("@sentry/node/types/integrations").Context;
|
|
187
|
-
RequestData: typeof import("@sentry/node/types/integrations").RequestData;
|
|
188
|
-
LocalVariables: typeof import("@sentry/node/types/integrations").LocalVariables;
|
|
189
|
-
Undici: typeof import("@sentry/node/types/integrations").Undici;
|
|
190
|
-
FunctionToString: typeof import("@sentry/core").FunctionToString;
|
|
191
|
-
InboundFilters: typeof import("@sentry/core").InboundFilters;
|
|
192
|
-
};
|
|
193
|
-
Handlers: typeof import("@sentry/node/types/handlers");
|
|
194
|
-
}>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|