@glasstrace/sdk 1.12.0 → 1.14.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 +55 -20
- package/dist/async-context/index.cjs.map +1 -1
- package/dist/async-context/index.js +2 -2
- package/dist/{capture-error-CRQSqKgd.d.cts → capture-error-03qDnC5v.d.cts} +2 -2
- package/dist/{capture-error-CqCbjoMq.d.ts → capture-error-CAfFUyIU.d.ts} +2 -2
- package/dist/{chunk-6NKMAKMI.js → chunk-6ST4QV7T.js} +3 -3
- package/dist/{chunk-BN5DVIUO.js → chunk-7LE2O4ZJ.js} +12 -7
- package/dist/{chunk-BN5DVIUO.js.map → chunk-7LE2O4ZJ.js.map} +1 -1
- package/dist/{chunk-CZQN6G4I.js → chunk-E2F4S5IJ.js} +362 -11
- package/dist/chunk-E2F4S5IJ.js.map +1 -0
- package/dist/{chunk-J3ZCVE67.js → chunk-F7A3QXCT.js} +2 -2
- package/dist/{chunk-M3ZTG4P5.js → chunk-HMEHYSTS.js} +2 -2
- package/dist/{chunk-4YRYR32D.js → chunk-LQZRGBN5.js} +2 -2
- package/dist/{chunk-ZIL2IY4C.js → chunk-MP3QNDXQ.js} +2 -2
- package/dist/{chunk-FFNGE5RR.js → chunk-VMK2G6QR.js} +2 -2
- package/dist/{chunk-KBHGPQZ2.js → chunk-XMD5OYD6.js} +2 -2
- package/dist/{chunk-V75ZB4G4.js → chunk-ZIYT2Y4B.js} +3 -3
- package/dist/cli/init.cjs +4 -4
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +7 -7
- package/dist/cli/mcp-add.cjs +1 -1
- package/dist/cli/mcp-add.cjs.map +1 -1
- package/dist/cli/mcp-add.js +3 -3
- package/dist/cli/uninit.js +3 -3
- package/dist/cli/upgrade-instructions.cjs +1 -1
- package/dist/cli/upgrade-instructions.js +3 -3
- package/dist/cli/validate.cjs.map +1 -1
- package/dist/cli/validate.js +2 -2
- package/dist/{correlation-id-CFpyJsKv.d.cts → correlation-id-CZ2bstzA.d.cts} +1 -1
- package/dist/{correlation-id-DPXyY9-3.d.ts → correlation-id-YcfcqOru.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 +4 -4
- package/dist/index.cjs +1033 -960
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-D-jdiIPU.d.cts → index.d-BQIJ5Dvc.d.cts} +44 -9
- package/dist/{index.d-D-jdiIPU.d.ts → index.d-BQIJ5Dvc.d.ts} +44 -9
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +10 -297
- package/dist/index.js.map +1 -1
- package/dist/middleware/index.cjs.map +1 -1
- package/dist/middleware/index.js +2 -2
- package/dist/node-entry.cjs +12 -5
- package/dist/node-entry.cjs.map +1 -1
- package/dist/node-entry.d.cts +3 -3
- package/dist/node-entry.d.ts +3 -3
- 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-K67LTPBG.js → source-map-uploader-NUONOEJG.js} +3 -3
- package/dist/trpc/index.cjs.map +1 -1
- package/dist/trpc/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-CZQN6G4I.js.map +0 -1
- /package/dist/{chunk-6NKMAKMI.js.map → chunk-6ST4QV7T.js.map} +0 -0
- /package/dist/{chunk-J3ZCVE67.js.map → chunk-F7A3QXCT.js.map} +0 -0
- /package/dist/{chunk-M3ZTG4P5.js.map → chunk-HMEHYSTS.js.map} +0 -0
- /package/dist/{chunk-4YRYR32D.js.map → chunk-LQZRGBN5.js.map} +0 -0
- /package/dist/{chunk-ZIL2IY4C.js.map → chunk-MP3QNDXQ.js.map} +0 -0
- /package/dist/{chunk-FFNGE5RR.js.map → chunk-VMK2G6QR.js.map} +0 -0
- /package/dist/{chunk-KBHGPQZ2.js.map → chunk-XMD5OYD6.js.map} +0 -0
- /package/dist/{chunk-V75ZB4G4.js.map → chunk-ZIYT2Y4B.js.map} +0 -0
- /package/dist/{source-map-uploader-K67LTPBG.js.map → source-map-uploader-NUONOEJG.js.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
_resetForTesting,
|
|
3
3
|
withAsyncCausality
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-LQZRGBN5.js";
|
|
5
5
|
import "../chunk-CL3OVHPO.js";
|
|
6
6
|
import "../chunk-DQ25VOKK.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-7LE2O4ZJ.js";
|
|
8
8
|
import "../chunk-NSBPE2FW.js";
|
|
9
9
|
export {
|
|
10
10
|
_resetForTesting,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { G as GlasstraceEnvVars,
|
|
1
|
+
import { G as GlasstraceEnvVars, j as GlasstraceOptions, A as AnonApiKey, k as SdkInitResponse, C as CaptureConfig, l as SdkHealthReport, I as ImportGraphPayload, g as SdkDiagnosticCode } from './index.d-BQIJ5Dvc.cjs';
|
|
2
2
|
import { ReadableSpan } from './export/ReadableSpan';
|
|
3
3
|
import { SpanExporter } from './export/SpanExporter';
|
|
4
4
|
import { ExportResult } from './ExportResult';
|
|
5
|
-
import { a as SessionManager } from './correlation-id-
|
|
5
|
+
import { a as SessionManager } from './correlation-id-CZ2bstzA.cjs';
|
|
6
6
|
import { SpanProcessor } from './SpanProcessor';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { G as GlasstraceEnvVars,
|
|
1
|
+
import { G as GlasstraceEnvVars, j as GlasstraceOptions, A as AnonApiKey, k as SdkInitResponse, C as CaptureConfig, l as SdkHealthReport, I as ImportGraphPayload, g as SdkDiagnosticCode } from './index.d-BQIJ5Dvc.js';
|
|
2
2
|
import { ReadableSpan } from './export/ReadableSpan';
|
|
3
3
|
import { SpanExporter } from './export/SpanExporter';
|
|
4
4
|
import { ExportResult } from './ExportResult';
|
|
5
|
-
import { a as SessionManager } from './correlation-id-
|
|
5
|
+
import { a as SessionManager } from './correlation-id-YcfcqOru.js';
|
|
6
6
|
import { SpanProcessor } from './SpanProcessor';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
atomicWriteFile,
|
|
3
3
|
refreshGenericMcpConfigAtRuntime,
|
|
4
4
|
resolveEffectiveMcpCredential
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-F7A3QXCT.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_CAPTURE_CONFIG,
|
|
8
8
|
SdkCachedConfigSchema,
|
|
9
9
|
SdkInitResponseSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7LE2O4ZJ.js";
|
|
11
11
|
import {
|
|
12
12
|
__require
|
|
13
13
|
} from "./chunk-NSBPE2FW.js";
|
|
@@ -692,4 +692,4 @@ export {
|
|
|
692
692
|
didLastInitSucceed,
|
|
693
693
|
verifyInitReachable
|
|
694
694
|
};
|
|
695
|
-
//# sourceMappingURL=chunk-
|
|
695
|
+
//# sourceMappingURL=chunk-6ST4QV7T.js.map
|
|
@@ -15034,18 +15034,23 @@ var SIDE_EFFECT_OPERATION_KINDS = [
|
|
|
15034
15034
|
"queue",
|
|
15035
15035
|
"after_callback"
|
|
15036
15036
|
];
|
|
15037
|
-
var
|
|
15037
|
+
var SIDE_EFFECT_SEMANTIC_FIELD_STABLE_CORE_KEYS = [
|
|
15038
15038
|
"templateKey",
|
|
15039
15039
|
"providerOperation",
|
|
15040
15040
|
"role",
|
|
15041
15041
|
"locale",
|
|
15042
15042
|
"timezone",
|
|
15043
15043
|
"status",
|
|
15044
|
-
"phase"
|
|
15045
|
-
"recipientClass",
|
|
15046
|
-
"participantCount",
|
|
15047
|
-
"activeParticipantCount"
|
|
15044
|
+
"phase"
|
|
15048
15045
|
];
|
|
15046
|
+
var SIDE_EFFECT_SEMANTIC_FIELD_OPEN_PATTERN = /^[a-z][A-Za-z0-9]*(Class|Count|Kind|Role)$/;
|
|
15047
|
+
var MAX_SIDE_EFFECT_SEMANTIC_FIELD_KEY_LENGTH = 80;
|
|
15048
|
+
function isSideEffectSemanticFieldKey(key) {
|
|
15049
|
+
if (key.length > MAX_SIDE_EFFECT_SEMANTIC_FIELD_KEY_LENGTH) return false;
|
|
15050
|
+
return SIDE_EFFECT_SEMANTIC_FIELD_STABLE_CORE_KEYS.includes(
|
|
15051
|
+
key
|
|
15052
|
+
) || SIDE_EFFECT_SEMANTIC_FIELD_OPEN_PATTERN.test(key);
|
|
15053
|
+
}
|
|
15049
15054
|
var SIDE_EFFECT_OMISSION_REASONS = [
|
|
15050
15055
|
"pii",
|
|
15051
15056
|
"secret",
|
|
@@ -15083,9 +15088,9 @@ export {
|
|
|
15083
15088
|
SourceMapManifestResponseSchema,
|
|
15084
15089
|
deriveSessionId,
|
|
15085
15090
|
SIDE_EFFECT_OPERATION_KINDS,
|
|
15086
|
-
|
|
15091
|
+
isSideEffectSemanticFieldKey,
|
|
15087
15092
|
SIDE_EFFECT_OMISSION_REASONS,
|
|
15088
15093
|
SIDE_EFFECT_OPERATION_STATUSES,
|
|
15089
15094
|
SIDE_EFFECT_OPERATION_PHASES
|
|
15090
15095
|
};
|
|
15091
|
-
//# sourceMappingURL=chunk-
|
|
15096
|
+
//# sourceMappingURL=chunk-7LE2O4ZJ.js.map
|