@glasstrace/sdk 1.3.0 → 1.3.2
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/dist/{chunk-AGCYKZFY.js → chunk-CRM3EYOL.js} +2 -2
- package/dist/{chunk-JMYKR5Z3.js → chunk-DQGNUENK.js} +14 -9
- package/dist/chunk-DQGNUENK.js.map +1 -0
- package/dist/{chunk-FVHVDBGX.js → chunk-GCFOY7T2.js} +3 -3
- package/dist/{chunk-FVHVDBGX.js.map → chunk-GCFOY7T2.js.map} +1 -1
- package/dist/{chunk-FMEWG3FY.js → chunk-JFR42QG5.js} +2 -2
- package/dist/{chunk-GTPTKN5A.js → chunk-MQHLWSIX.js} +1 -1
- package/dist/{chunk-GTPTKN5A.js.map → chunk-MQHLWSIX.js.map} +1 -1
- package/dist/{chunk-A63WX7NR.js → chunk-REEU6CNO.js} +3 -3
- package/dist/{chunk-AYUL5QMZ.js → chunk-UFZEISZB.js} +11 -2
- package/dist/chunk-UFZEISZB.js.map +1 -0
- package/dist/{chunk-AKZGMT33.js → chunk-XS3BO7RY.js} +2 -2
- package/dist/cli/init.cjs +1 -1
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +6 -6
- package/dist/cli/mcp-add.cjs.map +1 -1
- package/dist/cli/mcp-add.js +2 -2
- package/dist/cli/uninit.cjs.map +1 -1
- package/dist/cli/uninit.js +3 -3
- package/dist/cli/validate.cjs.map +1 -1
- package/dist/cli/validate.js +2 -2
- package/dist/{edge-entry-DYl05SJ-.d.cts → edge-entry-DT9OhPTC.d.cts} +1 -1
- package/dist/{edge-entry-CFq085RZ.d.ts → edge-entry-shCc8_Y1.d.ts} +1 -1
- package/dist/edge-entry.cjs.map +1 -1
- package/dist/edge-entry.d.cts +2 -2
- package/dist/edge-entry.d.ts +2 -2
- package/dist/edge-entry.js +2 -2
- package/dist/index.cjs +16 -4
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-CYYe3PxB.d.ts → index.d-DiI6uVEW.d.cts} +1 -1
- package/dist/{index.d-CYYe3PxB.d.cts → index.d-DiI6uVEW.d.ts} +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +5 -5
- package/dist/node-entry.cjs +16 -4
- package/dist/node-entry.cjs.map +1 -1
- package/dist/node-entry.d.cts +2 -2
- package/dist/node-entry.d.ts +2 -2
- package/dist/node-entry.js +7 -7
- package/dist/node-subpath.cjs.map +1 -1
- package/dist/node-subpath.d.cts +1 -1
- package/dist/node-subpath.d.ts +1 -1
- package/dist/node-subpath.js +3 -3
- package/dist/{source-map-uploader-M2P5CDOB.js → source-map-uploader-LACAGKIW.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-AYUL5QMZ.js.map +0 -1
- package/dist/chunk-JMYKR5Z3.js.map +0 -1
- /package/dist/{chunk-AGCYKZFY.js.map → chunk-CRM3EYOL.js.map} +0 -0
- /package/dist/{chunk-FMEWG3FY.js.map → chunk-JFR42QG5.js.map} +0 -0
- /package/dist/{chunk-A63WX7NR.js.map → chunk-REEU6CNO.js.map} +0 -0
- /package/dist/{chunk-AKZGMT33.js.map → chunk-XS3BO7RY.js.map} +0 -0
- /package/dist/{source-map-uploader-M2P5CDOB.js.map → source-map-uploader-LACAGKIW.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-DQ25VOKK.js";
|
|
4
4
|
import {
|
|
5
5
|
GLASSTRACE_ATTRIBUTE_NAMES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MQHLWSIX.js";
|
|
7
7
|
|
|
8
8
|
// src/errors.ts
|
|
9
9
|
var SdkError = class extends Error {
|
|
@@ -102,4 +102,4 @@ export {
|
|
|
102
102
|
GlasstraceSpanProcessor,
|
|
103
103
|
captureCorrelationId
|
|
104
104
|
};
|
|
105
|
-
//# sourceMappingURL=chunk-
|
|
105
|
+
//# sourceMappingURL=chunk-CRM3EYOL.js.map
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
performInit,
|
|
34
34
|
recordSpansDropped,
|
|
35
35
|
recordSpansExported
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-REEU6CNO.js";
|
|
37
37
|
import {
|
|
38
38
|
isAnonymousMode,
|
|
39
39
|
isProductionDisabled,
|
|
@@ -42,12 +42,13 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
atomicWriteFileSync,
|
|
44
44
|
getOrCreateAnonKey,
|
|
45
|
+
isSyncFsAvailable,
|
|
45
46
|
readAnonKey
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-UFZEISZB.js";
|
|
47
48
|
import {
|
|
48
49
|
GLASSTRACE_ATTRIBUTE_NAMES,
|
|
49
50
|
deriveSessionId
|
|
50
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-MQHLWSIX.js";
|
|
51
52
|
import {
|
|
52
53
|
__require
|
|
53
54
|
} from "./chunk-NSBPE2FW.js";
|
|
@@ -4139,6 +4140,10 @@ var _debounceTimer = null;
|
|
|
4139
4140
|
var _started = false;
|
|
4140
4141
|
function startRuntimeStateWriter(options) {
|
|
4141
4142
|
if (_started) return;
|
|
4143
|
+
if (!isSyncFsAvailable()) {
|
|
4144
|
+
_started = true;
|
|
4145
|
+
return;
|
|
4146
|
+
}
|
|
4142
4147
|
_started = true;
|
|
4143
4148
|
_projectRoot = options.projectRoot;
|
|
4144
4149
|
_sdkVersion = options.sdkVersion;
|
|
@@ -4224,7 +4229,7 @@ function registerGlasstrace(options) {
|
|
|
4224
4229
|
setCoreState(CoreState.REGISTERING);
|
|
4225
4230
|
startRuntimeStateWriter({
|
|
4226
4231
|
projectRoot: process.cwd(),
|
|
4227
|
-
sdkVersion: "1.3.
|
|
4232
|
+
sdkVersion: "1.3.2"
|
|
4228
4233
|
});
|
|
4229
4234
|
const config = resolveConfig(options);
|
|
4230
4235
|
if (config.verbose) {
|
|
@@ -4390,8 +4395,8 @@ async function backgroundInit(config, anonKeyForInit, generation) {
|
|
|
4390
4395
|
if (config.verbose) {
|
|
4391
4396
|
console.info("[glasstrace] Background init firing.");
|
|
4392
4397
|
}
|
|
4393
|
-
const healthReport = collectHealthReport("1.3.
|
|
4394
|
-
const initResult = await performInit(config, anonKeyForInit, "1.3.
|
|
4398
|
+
const healthReport = collectHealthReport("1.3.2");
|
|
4399
|
+
const initResult = await performInit(config, anonKeyForInit, "1.3.2", healthReport);
|
|
4395
4400
|
if (generation !== registrationGeneration) return;
|
|
4396
4401
|
const currentState = getCoreState();
|
|
4397
4402
|
if (currentState === CoreState.SHUTTING_DOWN || currentState === CoreState.SHUTDOWN) {
|
|
@@ -4414,7 +4419,7 @@ async function backgroundInit(config, anonKeyForInit, generation) {
|
|
|
4414
4419
|
}
|
|
4415
4420
|
maybeInstallConsoleCapture();
|
|
4416
4421
|
if (didLastInitSucceed()) {
|
|
4417
|
-
startHeartbeat(config, anonKeyForInit, "1.3.
|
|
4422
|
+
startHeartbeat(config, anonKeyForInit, "1.3.2", generation, (newApiKey, accountId) => {
|
|
4418
4423
|
setAuthState(AuthState.CLAIMING);
|
|
4419
4424
|
emitLifecycleEvent("auth:claim_started", { accountId });
|
|
4420
4425
|
setResolvedApiKey(newApiKey);
|
|
@@ -4709,7 +4714,7 @@ async function handleSourceMapUpload(distDir) {
|
|
|
4709
4714
|
);
|
|
4710
4715
|
return;
|
|
4711
4716
|
}
|
|
4712
|
-
const { discoverSourceMapFiles, computeBuildHash, uploadSourceMaps } = await import("./source-map-uploader-
|
|
4717
|
+
const { discoverSourceMapFiles, computeBuildHash, uploadSourceMaps } = await import("./source-map-uploader-LACAGKIW.js");
|
|
4713
4718
|
const files = await discoverSourceMapFiles(distDir);
|
|
4714
4719
|
if (files.length === 0) {
|
|
4715
4720
|
console.info("[glasstrace] No source map files found. Skipping upload.");
|
|
@@ -4812,4 +4817,4 @@ export {
|
|
|
4812
4817
|
withGlasstraceConfig,
|
|
4813
4818
|
captureError
|
|
4814
4819
|
};
|
|
4815
|
-
//# sourceMappingURL=chunk-
|
|
4820
|
+
//# sourceMappingURL=chunk-DQGNUENK.js.map
|