@glasstrace/sdk 0.15.1 → 0.17.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.
Files changed (78) hide show
  1. package/README.md +148 -1
  2. package/dist/adapters/drizzle.js +2 -5
  3. package/dist/adapters/drizzle.js.map +1 -1
  4. package/dist/{chunk-PD2SKFQQ.js → chunk-55FBXXER.js} +4 -8
  5. package/dist/{chunk-PD2SKFQQ.js.map → chunk-55FBXXER.js.map} +1 -1
  6. package/dist/{chunk-ZNOD6FC7.js → chunk-CTJI2YKA.js} +8 -15
  7. package/dist/{chunk-ZNOD6FC7.js.map → chunk-CTJI2YKA.js.map} +1 -1
  8. package/dist/{chunk-WK7MPK2T.js → chunk-DQ25VOKK.js} +1 -89
  9. package/dist/chunk-DQ25VOKK.js.map +1 -0
  10. package/dist/{chunk-BL3YDC6V.js → chunk-DXRZKKSO.js} +1 -6
  11. package/dist/{chunk-BL3YDC6V.js.map → chunk-DXRZKKSO.js.map} +1 -1
  12. package/dist/{chunk-2LDBR3F3.js → chunk-E33Y7BQH.js} +36 -74
  13. package/dist/chunk-E33Y7BQH.js.map +1 -0
  14. package/dist/{chunk-YMEXDDTA.js → chunk-GSGX76Q5.js} +4 -99
  15. package/dist/chunk-GSGX76Q5.js.map +1 -0
  16. package/dist/{chunk-ECEN724Y.js → chunk-J5BW7V2D.js} +4 -8
  17. package/dist/{chunk-ECEN724Y.js.map → chunk-J5BW7V2D.js.map} +1 -1
  18. package/dist/{chunk-BGZ7J74D.js → chunk-NSBPE2FW.js} +2 -16
  19. package/dist/{chunk-A2AZL6MZ.js → chunk-O63DJKIJ.js} +169 -18
  20. package/dist/chunk-O63DJKIJ.js.map +1 -0
  21. package/dist/chunk-UUUKI65I.js +851 -0
  22. package/dist/chunk-UUUKI65I.js.map +1 -0
  23. package/dist/chunk-VUZCLMIX.js +57 -0
  24. package/dist/chunk-VUZCLMIX.js.map +1 -0
  25. package/dist/{chunk-OSXIUKD5.js → chunk-WZXVS2EO.js} +1 -6
  26. package/dist/{chunk-OSXIUKD5.js.map → chunk-WZXVS2EO.js.map} +1 -1
  27. package/dist/{chunk-ROFOJQWN.js → chunk-XNDHQN4S.js} +7 -11
  28. package/dist/{chunk-ROFOJQWN.js.map → chunk-XNDHQN4S.js.map} +1 -1
  29. package/dist/cli/init.cjs +673 -161
  30. package/dist/cli/init.cjs.map +1 -1
  31. package/dist/cli/init.d.cts +54 -1
  32. package/dist/cli/init.d.ts +54 -1
  33. package/dist/cli/init.js +146 -37
  34. package/dist/cli/init.js.map +1 -1
  35. package/dist/cli/mcp-add.cjs +16 -16
  36. package/dist/cli/mcp-add.cjs.map +1 -1
  37. package/dist/cli/mcp-add.js +10 -13
  38. package/dist/cli/mcp-add.js.map +1 -1
  39. package/dist/cli/status.cjs +2 -2
  40. package/dist/cli/status.js +4 -7
  41. package/dist/cli/status.js.map +1 -1
  42. package/dist/cli/uninit.cjs +56 -59
  43. package/dist/cli/uninit.cjs.map +1 -1
  44. package/dist/cli/uninit.js +4 -4
  45. package/dist/cli/validate.cjs +2 -2
  46. package/dist/cli/validate.js +3 -6
  47. package/dist/cli/validate.js.map +1 -1
  48. package/dist/{esm-MDK7CZID.js → esm-KBPHCVB4.js} +3 -3
  49. package/dist/{getMachineId-bsd-4NIRBWME.js → getMachineId-bsd-345PYXFX.js} +4 -7
  50. package/dist/{getMachineId-bsd-4NIRBWME.js.map → getMachineId-bsd-345PYXFX.js.map} +1 -1
  51. package/dist/{getMachineId-darwin-2XNOCCJQ.js → getMachineId-darwin-5L2D25AD.js} +4 -7
  52. package/dist/{getMachineId-darwin-2XNOCCJQ.js.map → getMachineId-darwin-5L2D25AD.js.map} +1 -1
  53. package/dist/{getMachineId-linux-V6YSQEY7.js → getMachineId-linux-KJR4P5HN.js} +3 -6
  54. package/dist/{getMachineId-linux-V6YSQEY7.js.map → getMachineId-linux-KJR4P5HN.js.map} +1 -1
  55. package/dist/{getMachineId-unsupported-4FKBJNVO.js → getMachineId-unsupported-NDNXDYDY.js} +3 -6
  56. package/dist/{getMachineId-unsupported-4FKBJNVO.js.map → getMachineId-unsupported-NDNXDYDY.js.map} +1 -1
  57. package/dist/{getMachineId-win-WLRZBKVG.js → getMachineId-win-T7PJNJXG.js} +4 -7
  58. package/dist/{getMachineId-win-WLRZBKVG.js.map → getMachineId-win-T7PJNJXG.js.map} +1 -1
  59. package/dist/index.cjs +565 -463
  60. package/dist/index.cjs.map +1 -1
  61. package/dist/index.d.cts +93 -4
  62. package/dist/index.d.ts +93 -4
  63. package/dist/index.js +286 -702
  64. package/dist/index.js.map +1 -1
  65. package/dist/{monorepo-YILKGQXQ.js → monorepo-N5Z63XP7.js} +4 -4
  66. package/dist/{source-map-uploader-3GWUQDTS.js → source-map-uploader-26QPRSCG.js} +5 -4
  67. package/dist/source-map-uploader-26QPRSCG.js.map +1 -0
  68. package/package.json +1 -1
  69. package/dist/chunk-2LDBR3F3.js.map +0 -1
  70. package/dist/chunk-A2AZL6MZ.js.map +0 -1
  71. package/dist/chunk-BGZ7J74D.js.map +0 -1
  72. package/dist/chunk-UPS5BGER.js +0 -182
  73. package/dist/chunk-UPS5BGER.js.map +0 -1
  74. package/dist/chunk-WK7MPK2T.js.map +0 -1
  75. package/dist/chunk-YMEXDDTA.js.map +0 -1
  76. /package/dist/{esm-MDK7CZID.js.map → chunk-NSBPE2FW.js.map} +0 -0
  77. /package/dist/{monorepo-YILKGQXQ.js.map → esm-KBPHCVB4.js.map} +0 -0
  78. /package/dist/{source-map-uploader-3GWUQDTS.js.map → monorepo-N5Z63XP7.js.map} +0 -0
package/dist/index.d.cts CHANGED
@@ -292,6 +292,13 @@ declare function saveCachedConfig(response: SdkInitResponse, projectRoot?: strin
292
292
  /**
293
293
  * Sends a POST request to `/v1/sdk/init`.
294
294
  * Validates the response against `SdkInitResponseSchema`.
295
+ *
296
+ * Uses `node:https` via {@link httpsPostJson} rather than the global
297
+ * `fetch` because Next.js 16 patches `fetch` for caching/revalidation
298
+ * and can cause the init request to silently hang (DISC-493 Issue 3).
299
+ * Retries transport-level failures (DNS, TCP, TLS) twice with 500ms +
300
+ * 1500ms backoff, capped at a 20-second total deadline. Server responses
301
+ * (HTTP 4xx/5xx) are never retried and are surfaced immediately.
295
302
  */
296
303
  declare function sendInitRequest(config: ResolvedConfig, anonKey: AnonApiKey | null, sdkVersion: string, importGraph?: ImportGraphPayload, healthReport?: SdkHealthReport, diagnostics?: Array<{
297
304
  code: SdkDiagnosticCode;
@@ -520,6 +527,31 @@ type NextConfig = object;
520
527
  * The build NEVER fails because of Glasstrace — all errors are caught
521
528
  * and logged as warnings.
522
529
  *
530
+ * ## What the wrapper configures for you
531
+ *
532
+ * - `experimental.serverSourceMaps: true` — enables server-side source maps
533
+ * so Glasstrace can resolve stack traces back to your source.
534
+ * - `serverExternalPackages: ["@glasstrace/sdk"]` — tells Next to load the
535
+ * SDK via Node's `require()` at runtime instead of bundling it through
536
+ * webpack or Turbopack on the RSC / Route Handler paths. This is the same
537
+ * pattern Prisma, `@vercel/otel`, Sentry, `sharp`, and `bcrypt` ship with.
538
+ * - A webpack `externals` entry that marks every Node.js built-in import
539
+ * (both `node:*` and bare forms like `zlib` or `stream`) as a runtime
540
+ * `commonjs` require. `serverExternalPackages` does not apply to the
541
+ * instrumentation path under `next dev --webpack`
542
+ * (vercel/next.js#58003, #28774), so any bundled SDK chunk that imports
543
+ * `node:child_process` or the bare `zlib` specifier used by
544
+ * `@opentelemetry/otlp-exporter-base` would otherwise crash with
545
+ * `UnhandledSchemeError` or `Can't resolve 'zlib'`. This entry is the
546
+ * actual DISC-1257 fix for the dev-webpack path. Turbopack is
547
+ * unaffected — it ignores `config.webpack` and resolves Node built-ins
548
+ * natively.
549
+ * - An empty `turbopack: {}` when none is set, so Next 16 does not reject
550
+ * the config for setting `webpack` without a companion `turbopack` key
551
+ * (DISC-1256).
552
+ * - A `webpack` hook that collects and uploads `.map` files on client-side
553
+ * production builds.
554
+ *
523
555
  * ## Turbopack
524
556
  *
525
557
  * Next.js 16 made Turbopack the default bundler for `next build`, and Next
@@ -570,10 +602,13 @@ declare function getStatus(): {
570
602
  * manually integrate Glasstrace with their existing OTel provider
571
603
  * (e.g., Sentry's openTelemetrySpanProcessors config option).
572
604
  *
573
- * Also provides nudge messaging that guides developers toward this
574
- * clean integration path when auto-attach is used.
605
+ * Also provides the auto-attach path (tryAutoAttachGlasstraceProcessor)
606
+ * that configureOtel() uses when it detects a pre-registered provider
607
+ * at runtime (Next.js 16 production, Sentry, Datadog, New Relic). Both
608
+ * entry points reuse the same span-processor factory so the manual and
609
+ * automatic paths stay in lockstep.
575
610
  *
576
- * Design: sdk-otel-coexistence.md Sections 3, 5, 6
611
+ * Design: sdk-otel-coexistence.md Sections 3, 4, 5, 6
577
612
  */
578
613
 
579
614
  /**
@@ -738,6 +773,60 @@ declare function uploadSourceMapsAuto(apiKey: string, endpoint: string, buildHas
738
773
  */
739
774
  declare function captureError(error: unknown): void;
740
775
 
776
+ /**
777
+ * Minimal Fetch-API `Headers`-like interface supporting case-insensitive
778
+ * single-value lookup. Matches `Headers` from `undici` / the Web Fetch API.
779
+ */
780
+ interface FetchHeadersLike {
781
+ get(name: string): string | null;
782
+ }
783
+ /**
784
+ * Minimal Node `IncomingMessage.headers`-like shape: a dictionary mapping
785
+ * (typically lower-cased) header names to a value, a list of values, or
786
+ * `undefined`.
787
+ */
788
+ type NodeHeadersLike = Record<string, string | string[] | undefined>;
789
+ /**
790
+ * Accepted request shape for {@link captureCorrelationId}. Intentionally
791
+ * loose so callers can pass either a Fetch `Request` (or `NextRequest`)
792
+ * or a Node `IncomingMessage` without adapting the type.
793
+ */
794
+ interface CorrelationIdRequest {
795
+ headers: FetchHeadersLike | NodeHeadersLike | undefined;
796
+ }
797
+ /**
798
+ * Captures the Glasstrace correlation ID header (`x-gt-cid`) from an
799
+ * incoming request and materializes it as the
800
+ * `glasstrace.correlation.id` attribute on the currently active OTel span
801
+ * (DISC-1253).
802
+ *
803
+ * The SDK does not own any HTTP instrumentation, so it cannot read this
804
+ * header itself. Users opt in by calling this helper from a hook that
805
+ * runs inside the request's OTel context — typically a Next.js
806
+ * `middleware.ts` or a custom server request handler.
807
+ *
808
+ * The function is intentionally forgiving:
809
+ * - No active span → no-op.
810
+ * - Missing / empty header → no-op.
811
+ * - Array header values (Node IncomingMessage) → the first non-empty
812
+ * value is used; subsequent values are ignored because a correlation
813
+ * ID is a single logical value.
814
+ * - Malformed or unexpected `headers` shapes → caught and ignored; the
815
+ * helper never throws.
816
+ *
817
+ * @example
818
+ * ```ts
819
+ * // Next.js middleware.ts
820
+ * import { captureCorrelationId } from "@glasstrace/sdk";
821
+ *
822
+ * export function middleware(req: Request) {
823
+ * captureCorrelationId(req);
824
+ * return NextResponse.next();
825
+ * }
826
+ * ```
827
+ */
828
+ declare function captureCorrelationId(req: CorrelationIdRequest | null | undefined): void;
829
+
741
830
  /**
742
831
  * Discovers test files by scanning the project directory for conventional
743
832
  * test file patterns. Also reads vitest/jest config files for custom include
@@ -767,4 +856,4 @@ declare function extractImports(fileContent: string): string[];
767
856
  */
768
857
  declare function buildImportGraph(projectRoot: string): Promise<ImportGraphPayload>;
769
858
 
770
- export { type AutoUploadOptions, type BlobUploader, type ClaimState, type FetchTarget, GlasstraceExporter, type GlasstraceExporterOptions, GlasstraceSpanProcessor, type InitClaimResult, PRESIGNED_THRESHOLD_BYTES, type ResolvedConfig, SdkError, SessionManager, type SourceMapEntry, type SourceMapFileInfo, buildImportGraph, captureError, classifyFetchTarget, collectSourceMaps, computeBuildHash, createDiscoveryHandler, createGlasstraceSpanProcessor, deriveSessionId, discoverSourceMapFiles, discoverTestFiles, extractImports, getActiveConfig, getDateString, getDiscoveryHandler, getLinkedAccountId, getOrCreateAnonKey, getOrigin, getStatus, isAnonymousMode, isProductionDisabled, isReady, loadCachedConfig, performInit, readAnonKey, readEnvVars, registerGlasstrace, resolveConfig, saveCachedConfig, sendInitRequest, uploadSourceMaps, uploadSourceMapsAuto, uploadSourceMapsPresigned, waitForReady, withGlasstraceConfig };
859
+ export { type AutoUploadOptions, type BlobUploader, type ClaimState, type CorrelationIdRequest, type FetchTarget, GlasstraceExporter, type GlasstraceExporterOptions, GlasstraceSpanProcessor, type InitClaimResult, PRESIGNED_THRESHOLD_BYTES, type ResolvedConfig, SdkError, SessionManager, type SourceMapEntry, type SourceMapFileInfo, buildImportGraph, captureCorrelationId, captureError, classifyFetchTarget, collectSourceMaps, computeBuildHash, createDiscoveryHandler, createGlasstraceSpanProcessor, deriveSessionId, discoverSourceMapFiles, discoverTestFiles, extractImports, getActiveConfig, getDateString, getDiscoveryHandler, getLinkedAccountId, getOrCreateAnonKey, getOrigin, getStatus, isAnonymousMode, isProductionDisabled, isReady, loadCachedConfig, performInit, readAnonKey, readEnvVars, registerGlasstrace, resolveConfig, saveCachedConfig, sendInitRequest, uploadSourceMaps, uploadSourceMapsAuto, uploadSourceMapsPresigned, waitForReady, withGlasstraceConfig };
package/dist/index.d.ts CHANGED
@@ -292,6 +292,13 @@ declare function saveCachedConfig(response: SdkInitResponse, projectRoot?: strin
292
292
  /**
293
293
  * Sends a POST request to `/v1/sdk/init`.
294
294
  * Validates the response against `SdkInitResponseSchema`.
295
+ *
296
+ * Uses `node:https` via {@link httpsPostJson} rather than the global
297
+ * `fetch` because Next.js 16 patches `fetch` for caching/revalidation
298
+ * and can cause the init request to silently hang (DISC-493 Issue 3).
299
+ * Retries transport-level failures (DNS, TCP, TLS) twice with 500ms +
300
+ * 1500ms backoff, capped at a 20-second total deadline. Server responses
301
+ * (HTTP 4xx/5xx) are never retried and are surfaced immediately.
295
302
  */
296
303
  declare function sendInitRequest(config: ResolvedConfig, anonKey: AnonApiKey | null, sdkVersion: string, importGraph?: ImportGraphPayload, healthReport?: SdkHealthReport, diagnostics?: Array<{
297
304
  code: SdkDiagnosticCode;
@@ -520,6 +527,31 @@ type NextConfig = object;
520
527
  * The build NEVER fails because of Glasstrace — all errors are caught
521
528
  * and logged as warnings.
522
529
  *
530
+ * ## What the wrapper configures for you
531
+ *
532
+ * - `experimental.serverSourceMaps: true` — enables server-side source maps
533
+ * so Glasstrace can resolve stack traces back to your source.
534
+ * - `serverExternalPackages: ["@glasstrace/sdk"]` — tells Next to load the
535
+ * SDK via Node's `require()` at runtime instead of bundling it through
536
+ * webpack or Turbopack on the RSC / Route Handler paths. This is the same
537
+ * pattern Prisma, `@vercel/otel`, Sentry, `sharp`, and `bcrypt` ship with.
538
+ * - A webpack `externals` entry that marks every Node.js built-in import
539
+ * (both `node:*` and bare forms like `zlib` or `stream`) as a runtime
540
+ * `commonjs` require. `serverExternalPackages` does not apply to the
541
+ * instrumentation path under `next dev --webpack`
542
+ * (vercel/next.js#58003, #28774), so any bundled SDK chunk that imports
543
+ * `node:child_process` or the bare `zlib` specifier used by
544
+ * `@opentelemetry/otlp-exporter-base` would otherwise crash with
545
+ * `UnhandledSchemeError` or `Can't resolve 'zlib'`. This entry is the
546
+ * actual DISC-1257 fix for the dev-webpack path. Turbopack is
547
+ * unaffected — it ignores `config.webpack` and resolves Node built-ins
548
+ * natively.
549
+ * - An empty `turbopack: {}` when none is set, so Next 16 does not reject
550
+ * the config for setting `webpack` without a companion `turbopack` key
551
+ * (DISC-1256).
552
+ * - A `webpack` hook that collects and uploads `.map` files on client-side
553
+ * production builds.
554
+ *
523
555
  * ## Turbopack
524
556
  *
525
557
  * Next.js 16 made Turbopack the default bundler for `next build`, and Next
@@ -570,10 +602,13 @@ declare function getStatus(): {
570
602
  * manually integrate Glasstrace with their existing OTel provider
571
603
  * (e.g., Sentry's openTelemetrySpanProcessors config option).
572
604
  *
573
- * Also provides nudge messaging that guides developers toward this
574
- * clean integration path when auto-attach is used.
605
+ * Also provides the auto-attach path (tryAutoAttachGlasstraceProcessor)
606
+ * that configureOtel() uses when it detects a pre-registered provider
607
+ * at runtime (Next.js 16 production, Sentry, Datadog, New Relic). Both
608
+ * entry points reuse the same span-processor factory so the manual and
609
+ * automatic paths stay in lockstep.
575
610
  *
576
- * Design: sdk-otel-coexistence.md Sections 3, 5, 6
611
+ * Design: sdk-otel-coexistence.md Sections 3, 4, 5, 6
577
612
  */
578
613
 
579
614
  /**
@@ -738,6 +773,60 @@ declare function uploadSourceMapsAuto(apiKey: string, endpoint: string, buildHas
738
773
  */
739
774
  declare function captureError(error: unknown): void;
740
775
 
776
+ /**
777
+ * Minimal Fetch-API `Headers`-like interface supporting case-insensitive
778
+ * single-value lookup. Matches `Headers` from `undici` / the Web Fetch API.
779
+ */
780
+ interface FetchHeadersLike {
781
+ get(name: string): string | null;
782
+ }
783
+ /**
784
+ * Minimal Node `IncomingMessage.headers`-like shape: a dictionary mapping
785
+ * (typically lower-cased) header names to a value, a list of values, or
786
+ * `undefined`.
787
+ */
788
+ type NodeHeadersLike = Record<string, string | string[] | undefined>;
789
+ /**
790
+ * Accepted request shape for {@link captureCorrelationId}. Intentionally
791
+ * loose so callers can pass either a Fetch `Request` (or `NextRequest`)
792
+ * or a Node `IncomingMessage` without adapting the type.
793
+ */
794
+ interface CorrelationIdRequest {
795
+ headers: FetchHeadersLike | NodeHeadersLike | undefined;
796
+ }
797
+ /**
798
+ * Captures the Glasstrace correlation ID header (`x-gt-cid`) from an
799
+ * incoming request and materializes it as the
800
+ * `glasstrace.correlation.id` attribute on the currently active OTel span
801
+ * (DISC-1253).
802
+ *
803
+ * The SDK does not own any HTTP instrumentation, so it cannot read this
804
+ * header itself. Users opt in by calling this helper from a hook that
805
+ * runs inside the request's OTel context — typically a Next.js
806
+ * `middleware.ts` or a custom server request handler.
807
+ *
808
+ * The function is intentionally forgiving:
809
+ * - No active span → no-op.
810
+ * - Missing / empty header → no-op.
811
+ * - Array header values (Node IncomingMessage) → the first non-empty
812
+ * value is used; subsequent values are ignored because a correlation
813
+ * ID is a single logical value.
814
+ * - Malformed or unexpected `headers` shapes → caught and ignored; the
815
+ * helper never throws.
816
+ *
817
+ * @example
818
+ * ```ts
819
+ * // Next.js middleware.ts
820
+ * import { captureCorrelationId } from "@glasstrace/sdk";
821
+ *
822
+ * export function middleware(req: Request) {
823
+ * captureCorrelationId(req);
824
+ * return NextResponse.next();
825
+ * }
826
+ * ```
827
+ */
828
+ declare function captureCorrelationId(req: CorrelationIdRequest | null | undefined): void;
829
+
741
830
  /**
742
831
  * Discovers test files by scanning the project directory for conventional
743
832
  * test file patterns. Also reads vitest/jest config files for custom include
@@ -767,4 +856,4 @@ declare function extractImports(fileContent: string): string[];
767
856
  */
768
857
  declare function buildImportGraph(projectRoot: string): Promise<ImportGraphPayload>;
769
858
 
770
- export { type AutoUploadOptions, type BlobUploader, type ClaimState, type FetchTarget, GlasstraceExporter, type GlasstraceExporterOptions, GlasstraceSpanProcessor, type InitClaimResult, PRESIGNED_THRESHOLD_BYTES, type ResolvedConfig, SdkError, SessionManager, type SourceMapEntry, type SourceMapFileInfo, buildImportGraph, captureError, classifyFetchTarget, collectSourceMaps, computeBuildHash, createDiscoveryHandler, createGlasstraceSpanProcessor, deriveSessionId, discoverSourceMapFiles, discoverTestFiles, extractImports, getActiveConfig, getDateString, getDiscoveryHandler, getLinkedAccountId, getOrCreateAnonKey, getOrigin, getStatus, isAnonymousMode, isProductionDisabled, isReady, loadCachedConfig, performInit, readAnonKey, readEnvVars, registerGlasstrace, resolveConfig, saveCachedConfig, sendInitRequest, uploadSourceMaps, uploadSourceMapsAuto, uploadSourceMapsPresigned, waitForReady, withGlasstraceConfig };
859
+ export { type AutoUploadOptions, type BlobUploader, type ClaimState, type CorrelationIdRequest, type FetchTarget, GlasstraceExporter, type GlasstraceExporterOptions, GlasstraceSpanProcessor, type InitClaimResult, PRESIGNED_THRESHOLD_BYTES, type ResolvedConfig, SdkError, SessionManager, type SourceMapEntry, type SourceMapFileInfo, buildImportGraph, captureCorrelationId, captureError, classifyFetchTarget, collectSourceMaps, computeBuildHash, createDiscoveryHandler, createGlasstraceSpanProcessor, deriveSessionId, discoverSourceMapFiles, discoverTestFiles, extractImports, getActiveConfig, getDateString, getDiscoveryHandler, getLinkedAccountId, getOrCreateAnonKey, getOrigin, getStatus, isAnonymousMode, isProductionDisabled, isReady, loadCachedConfig, performInit, readAnonKey, readEnvVars, registerGlasstrace, resolveConfig, saveCachedConfig, sendInitRequest, uploadSourceMaps, uploadSourceMapsAuto, uploadSourceMapsPresigned, waitForReady, withGlasstraceConfig };