We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94cf092 commit 672d38bCopy full SHA for 672d38b
2 files changed
src/node/sdk.ts
@@ -13,6 +13,11 @@ import { getOsPlatform } from "./helpers";
13
*
14
*/
15
export const init = (options: TraceoOptions): void => {
16
+ if (options?.offline) {
17
+ //SDK is not initialized
18
+ return;
19
+ }
20
+
21
if (!isClientConnected()) {
22
setGlobalClientData({
23
...options,
src/transport/options.ts
@@ -2,6 +2,7 @@ import { Environment } from "./types";
2
3
export interface TraceoOptions {
4
version?: string;
5
+ offline?: boolean;
6
environment: Environment;
7
dsn: string;
8
}
0 commit comments