@fml-inc/fml 0.7.0 → 0.8.0-rc.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.
Files changed (45) hide show
  1. package/.claude-plugin/plugin.json +2 -4
  2. package/README.md +323 -79
  3. package/agent-assets/fml/SKILL.md +180 -0
  4. package/bin/fml +4 -18
  5. package/bin/hook-handler +7 -0
  6. package/bin/mcp-server +4 -18
  7. package/bin/observer +6 -0
  8. package/dist/chunk-3KISRT57.js +140 -0
  9. package/dist/chunk-56TPYMNK.js +4657 -0
  10. package/dist/chunk-7V7G7NVF.js +142 -0
  11. package/dist/chunk-A6HAEVJX.js +1606 -0
  12. package/dist/chunk-DZKYW327.js +1037 -0
  13. package/dist/chunk-ENW2GJNO.js +109 -0
  14. package/dist/{chunk-PZ5AY32C.js → chunk-MLKGABMK.js} +0 -1
  15. package/dist/{chunk-PTUZMKSN.js → chunk-R45CWWZO.js} +34 -23
  16. package/dist/chunk-WZLLO563.js +953 -0
  17. package/dist/chunk-YSU5CS2V.js +3331 -0
  18. package/dist/cli.js +7742 -1072
  19. package/dist/{esm-2EUDFZWP.js → esm-4YKLKFRX.js} +546 -741
  20. package/dist/hook-handler.js +440 -0
  21. package/dist/mcp/server.js +112 -98
  22. package/dist/observer-server.js +1566 -0
  23. package/dist/sync-cycle.js +31 -0
  24. package/dist/{token-store-3IQSLOTQ.js → token-store-BT5THIAJ.js} +10 -3
  25. package/hooks/hooks.json +290 -0
  26. package/package.json +24 -27
  27. package/dist/chunk-PTUZMKSN.js.map +0 -1
  28. package/dist/chunk-PZ5AY32C.js.map +0 -1
  29. package/dist/chunk-S4TJNLEN.js +0 -61
  30. package/dist/chunk-S4TJNLEN.js.map +0 -1
  31. package/dist/chunk-VV4JHH4H.js +0 -437
  32. package/dist/chunk-VV4JHH4H.js.map +0 -1
  33. package/dist/chunk-YH5ROR7G.js +0 -69
  34. package/dist/chunk-YH5ROR7G.js.map +0 -1
  35. package/dist/cli.js.map +0 -1
  36. package/dist/daemon-MSLDHLMH.js +0 -21
  37. package/dist/daemon-MSLDHLMH.js.map +0 -1
  38. package/dist/daemon-utils-OODBIYB7.js +0 -10
  39. package/dist/daemon-utils-OODBIYB7.js.map +0 -1
  40. package/dist/esm-2EUDFZWP.js.map +0 -1
  41. package/dist/mcp/server.js.map +0 -1
  42. package/dist/postinstall.js +0 -16
  43. package/dist/postinstall.js.map +0 -1
  44. package/dist/token-store-3IQSLOTQ.js.map +0 -1
  45. package/scripts/postinstall.cjs +0 -25
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  __export
3
- } from "./chunk-PZ5AY32C.js";
3
+ } from "./chunk-MLKGABMK.js";
4
4
 
5
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/debug-build.js
5
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/debug-build.js
6
6
  var DEBUG_BUILD = typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__;
7
7
 
8
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/worldwide.js
8
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/worldwide.js
9
9
  var GLOBAL_OBJ = globalThis;
10
10
 
11
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/version.js
12
- var SDK_VERSION = "10.47.0";
11
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/version.js
12
+ var SDK_VERSION = "10.43.0";
13
13
 
14
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/carrier.js
14
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/carrier.js
15
15
  function getMainCarrier() {
16
16
  getSentryCarrier(GLOBAL_OBJ);
17
17
  return GLOBAL_OBJ;
@@ -27,7 +27,7 @@ function getGlobalSingleton(name, creator, obj = GLOBAL_OBJ) {
27
27
  return carrier[name] || (carrier[name] = creator());
28
28
  }
29
29
 
30
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/debug-logger.js
30
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/debug-logger.js
31
31
  var CONSOLE_LEVELS = [
32
32
  "debug",
33
33
  "info",
@@ -108,7 +108,7 @@ var debug = {
108
108
  error
109
109
  };
110
110
 
111
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/stacktrace.js
111
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/stacktrace.js
112
112
  var STACKTRACE_FRAME_LIMIT = 50;
113
113
  var UNKNOWN_FUNCTION = "?";
114
114
  var WEBPACK_ERROR_REGEXP = /\(error: (.*)\)/;
@@ -211,7 +211,7 @@ function normalizeStackTracePath(path) {
211
211
  return filename;
212
212
  }
213
213
 
214
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/instrument/handlers.js
214
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/instrument/handlers.js
215
215
  var handlers = {};
216
216
  var instrumented = {};
217
217
  function addHandler(type, handler) {
@@ -253,7 +253,7 @@ Error:`,
253
253
  }
254
254
  }
255
255
 
256
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/instrument/globalError.js
256
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/instrument/globalError.js
257
257
  var _oldOnErrorHandler = null;
258
258
  function addGlobalErrorInstrumentationHandler(handler) {
259
259
  const type = "error";
@@ -279,7 +279,7 @@ function instrumentError() {
279
279
  GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__ = true;
280
280
  }
281
281
 
282
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/instrument/globalUnhandledRejection.js
282
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/instrument/globalUnhandledRejection.js
283
283
  var _oldOnUnhandledRejectionHandler = null;
284
284
  function addGlobalUnhandledRejectionInstrumentationHandler(handler) {
285
285
  const type = "unhandledrejection";
@@ -299,7 +299,7 @@ function instrumentUnhandledRejection() {
299
299
  GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;
300
300
  }
301
301
 
302
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/is.js
302
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/is.js
303
303
  var objectToString = Object.prototype.toString;
304
304
  function isError(wat) {
305
305
  switch (objectToString.call(wat)) {
@@ -365,7 +365,7 @@ function isRequest(request) {
365
365
  return typeof Request !== "undefined" && isInstanceOf(request, Request);
366
366
  }
367
367
 
368
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/browser.js
368
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/browser.js
369
369
  var WINDOW = GLOBAL_OBJ;
370
370
  var DEFAULT_MAX_STRING_LENGTH = 80;
371
371
  function htmlTreeAsString(elem, options = {}) {
@@ -431,7 +431,8 @@ function _htmlElementAsString(el, keyAttrs) {
431
431
  }
432
432
  }
433
433
  }
434
- for (const k of ["aria-label", "type", "name", "title", "alt"]) {
434
+ const allowedAttrs = ["aria-label", "type", "name", "title", "alt"];
435
+ for (const k of allowedAttrs) {
435
436
  const attr = elem.getAttribute(k);
436
437
  if (attr) {
437
438
  out.push(`[${k}="${attr}"]`);
@@ -469,7 +470,7 @@ function getComponentName(elem) {
469
470
  return null;
470
471
  }
471
472
 
472
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/object.js
473
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/object.js
473
474
  function fill(source, name, replacementFactory) {
474
475
  if (!(name in source)) {
475
476
  return;
@@ -543,9 +544,16 @@ function serializeEventTarget(target) {
543
544
  }
544
545
  function getOwnProperties(obj) {
545
546
  if (typeof obj === "object" && obj !== null) {
546
- return Object.fromEntries(Object.entries(obj));
547
+ const extractedProps = {};
548
+ for (const property in obj) {
549
+ if (Object.prototype.hasOwnProperty.call(obj, property)) {
550
+ extractedProps[property] = obj[property];
551
+ }
552
+ }
553
+ return extractedProps;
554
+ } else {
555
+ return {};
547
556
  }
548
- return {};
549
557
  }
550
558
  function extractExceptionKeysForMessage(exception) {
551
559
  const keys = Object.keys(convertToPlainObject(exception));
@@ -615,7 +623,7 @@ function objectify(wat) {
615
623
  return objectified;
616
624
  }
617
625
 
618
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/randomSafeContext.js
626
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/randomSafeContext.js
619
627
  var RESOLVED_RUNNER;
620
628
  function withRandomSafeContext(cb) {
621
629
  if (RESOLVED_RUNNER !== void 0) {
@@ -637,7 +645,7 @@ function safeDateNow() {
637
645
  return withRandomSafeContext(() => Date.now());
638
646
  }
639
647
 
640
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/string.js
648
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/string.js
641
649
  function truncate(str, max = 0) {
642
650
  if (typeof str !== "string" || max === 0) {
643
651
  return str;
@@ -708,7 +716,7 @@ function stringMatchesSomePattern(testString, patterns = [], requireExactStringM
708
716
  return patterns.some((pattern) => isMatchingPattern(testString, pattern, requireExactStringMatch));
709
717
  }
710
718
 
711
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/misc.js
719
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/misc.js
712
720
  function getCrypto() {
713
721
  const gbl = GLOBAL_OBJ;
714
722
  return gbl.crypto || gbl.msCrypto;
@@ -821,7 +829,7 @@ function isAlreadyCaptured(exception) {
821
829
  }
822
830
  }
823
831
 
824
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/time.js
832
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/time.js
825
833
  var ONE_SECOND_IN_MS = 1e3;
826
834
  function dateTimestampInSeconds() {
827
835
  return safeDateNow() / ONE_SECOND_IN_MS;
@@ -873,7 +881,7 @@ function browserPerformanceTimeOrigin() {
873
881
  return cachedTimeOrigin;
874
882
  }
875
883
 
876
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/session.js
884
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/session.js
877
885
  function makeSession(context) {
878
886
  const startingTime = timestampInSeconds();
879
887
  const session = {
@@ -977,7 +985,7 @@ function sessionToJSON(session) {
977
985
  };
978
986
  }
979
987
 
980
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/merge.js
988
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/merge.js
981
989
  function merge(initialObj, mergeObj, levels = 2) {
982
990
  if (!mergeObj || typeof mergeObj !== "object" || levels <= 0) {
983
991
  return mergeObj;
@@ -994,7 +1002,7 @@ function merge(initialObj, mergeObj, levels = 2) {
994
1002
  return output;
995
1003
  }
996
1004
 
997
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/propagationContext.js
1005
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/propagationContext.js
998
1006
  function generateTraceId() {
999
1007
  return uuid4();
1000
1008
  }
@@ -1002,7 +1010,7 @@ function generateSpanId() {
1002
1010
  return uuid4().substring(16);
1003
1011
  }
1004
1012
 
1005
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/spanOnScope.js
1013
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/spanOnScope.js
1006
1014
  var SCOPE_SPAN_FIELD = "_sentrySpan";
1007
1015
  function _setSpanForScope(scope, span) {
1008
1016
  if (span) {
@@ -1015,7 +1023,7 @@ function _getSpanForScope(scope) {
1015
1023
  return scope[SCOPE_SPAN_FIELD];
1016
1024
  }
1017
1025
 
1018
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/scope.js
1026
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/scope.js
1019
1027
  var DEFAULT_MAX_BREADCRUMBS = 100;
1020
1028
  var Scope = class _Scope {
1021
1029
  /** Flag if notifying is happening. */
@@ -1579,7 +1587,7 @@ var Scope = class _Scope {
1579
1587
  }
1580
1588
  };
1581
1589
 
1582
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/defaultScopes.js
1590
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/defaultScopes.js
1583
1591
  function getDefaultCurrentScope() {
1584
1592
  return getGlobalSingleton("defaultCurrentScope", () => new Scope());
1585
1593
  }
@@ -1587,44 +1595,7 @@ function getDefaultIsolationScope() {
1587
1595
  return getGlobalSingleton("defaultIsolationScope", () => new Scope());
1588
1596
  }
1589
1597
 
1590
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/chain-and-copy-promiselike.js
1591
- var isActualPromise = (p) => p instanceof Promise && !p[kChainedCopy];
1592
- var kChainedCopy = /* @__PURE__ */ Symbol("chained PromiseLike");
1593
- var chainAndCopyPromiseLike = (original, onSuccess, onError) => {
1594
- const chained = original.then(
1595
- (value) => {
1596
- onSuccess(value);
1597
- return value;
1598
- },
1599
- (err) => {
1600
- onError(err);
1601
- throw err;
1602
- }
1603
- );
1604
- return isActualPromise(chained) && isActualPromise(original) ? chained : copyProps(original, chained);
1605
- };
1606
- var copyProps = (original, chained) => {
1607
- let mutated = false;
1608
- for (const key in original) {
1609
- if (key in chained) continue;
1610
- mutated = true;
1611
- const value = original[key];
1612
- if (typeof value === "function") {
1613
- Object.defineProperty(chained, key, {
1614
- value: (...args) => value.apply(original, args),
1615
- enumerable: true,
1616
- configurable: true,
1617
- writable: true
1618
- });
1619
- } else {
1620
- chained[key] = value;
1621
- }
1622
- }
1623
- if (mutated) Object.assign(chained, { [kChainedCopy]: true });
1624
- return chained;
1625
- };
1626
-
1627
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/asyncContext/stackStrategy.js
1598
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/asyncContext/stackStrategy.js
1628
1599
  var AsyncContextStack = class {
1629
1600
  constructor(scope, isolationScope) {
1630
1601
  let assignedScope;
@@ -1655,10 +1626,15 @@ var AsyncContextStack = class {
1655
1626
  throw e;
1656
1627
  }
1657
1628
  if (isThenable(maybePromiseResult)) {
1658
- return chainAndCopyPromiseLike(
1659
- maybePromiseResult,
1660
- () => this._popScope(),
1661
- () => this._popScope()
1629
+ return maybePromiseResult.then(
1630
+ (res) => {
1631
+ this._popScope();
1632
+ return res;
1633
+ },
1634
+ (e) => {
1635
+ this._popScope();
1636
+ throw e;
1637
+ }
1662
1638
  );
1663
1639
  }
1664
1640
  this._popScope();
@@ -1740,7 +1716,7 @@ function getStackAsyncContextStrategy() {
1740
1716
  };
1741
1717
  }
1742
1718
 
1743
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/asyncContext/index.js
1719
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/asyncContext/index.js
1744
1720
  function setAsyncContextStrategy(strategy) {
1745
1721
  const registry = getMainCarrier();
1746
1722
  const sentry = getSentryCarrier(registry);
@@ -1754,17 +1730,7 @@ function getAsyncContextStrategy(carrier) {
1754
1730
  return getStackAsyncContextStrategy();
1755
1731
  }
1756
1732
 
1757
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/currentScopes.js
1758
- var _externalPropagationContextProvider;
1759
- function registerExternalPropagationContext(fn) {
1760
- _externalPropagationContextProvider = fn;
1761
- }
1762
- function getExternalPropagationContext() {
1763
- return _externalPropagationContextProvider?.();
1764
- }
1765
- function hasExternalPropagationContext() {
1766
- return _externalPropagationContextProvider !== void 0;
1767
- }
1733
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/currentScopes.js
1768
1734
  function getCurrentScope() {
1769
1735
  const carrier = getMainCarrier();
1770
1736
  const acs = getAsyncContextStrategy(carrier);
@@ -1806,10 +1772,6 @@ function getClient() {
1806
1772
  return getCurrentScope().getClient();
1807
1773
  }
1808
1774
  function getTraceContextFromScope(scope) {
1809
- const externalContext = getExternalPropagationContext();
1810
- if (externalContext) {
1811
- return { trace_id: externalContext.traceId, span_id: externalContext.spanId };
1812
- }
1813
1775
  const propagationContext = scope.getPropagationContext();
1814
1776
  const { traceId, parentSpanId, propagationSpanId } = propagationContext;
1815
1777
  const traceContext = {
@@ -1822,7 +1784,7 @@ function getTraceContextFromScope(scope) {
1822
1784
  return traceContext;
1823
1785
  }
1824
1786
 
1825
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/semanticAttributes.js
1787
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/semanticAttributes.js
1826
1788
  var SEMANTIC_ATTRIBUTE_SENTRY_SOURCE = "sentry.source";
1827
1789
  var SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE = "sentry.sample_rate";
1828
1790
  var SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE = "sentry.previous_trace_sample_rate";
@@ -1842,7 +1804,7 @@ var SEMANTIC_ATTRIBUTE_URL_FULL = "url.full";
1842
1804
  var SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE = "sentry.link.type";
1843
1805
  var GEN_AI_CONVERSATION_ID_ATTRIBUTE = "gen_ai.conversation.id";
1844
1806
 
1845
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/spanstatus.js
1807
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/spanstatus.js
1846
1808
  var SPAN_STATUS_UNSET = 0;
1847
1809
  var SPAN_STATUS_OK = 1;
1848
1810
  var SPAN_STATUS_ERROR = 2;
@@ -1892,7 +1854,7 @@ function setHttpStatus(span, httpStatus) {
1892
1854
  }
1893
1855
  }
1894
1856
 
1895
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/utils.js
1857
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/utils.js
1896
1858
  var SCOPE_ON_START_SPAN_FIELD = "_sentryScope";
1897
1859
  var ISOLATION_SCOPE_ON_START_SPAN_FIELD = "_sentryIsolationScope";
1898
1860
  function wrapScopeWithWeakRef(scope) {
@@ -1932,7 +1894,7 @@ function getCapturedScopesOnSpan(span) {
1932
1894
  };
1933
1895
  }
1934
1896
 
1935
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/baggage.js
1897
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/baggage.js
1936
1898
  var SENTRY_BAGGAGE_KEY_PREFIX = "sentry-";
1937
1899
  var SENTRY_BAGGAGE_KEY_PREFIX_REGEX = /^sentry-/;
1938
1900
  var MAX_BAGGAGE_STRING_LENGTH = 8192;
@@ -1942,7 +1904,7 @@ function baggageHeaderToDynamicSamplingContext(baggageHeader) {
1942
1904
  return void 0;
1943
1905
  }
1944
1906
  const dynamicSamplingContext = Object.entries(baggageObject).reduce((acc, [key, value]) => {
1945
- if (key.startsWith(SENTRY_BAGGAGE_KEY_PREFIX)) {
1907
+ if (key.match(SENTRY_BAGGAGE_KEY_PREFIX_REGEX)) {
1946
1908
  const nonPrefixedKey = key.slice(SENTRY_BAGGAGE_KEY_PREFIX.length);
1947
1909
  acc[nonPrefixedKey] = value;
1948
1910
  }
@@ -2024,7 +1986,7 @@ function objectToBaggageHeader(object) {
2024
1986
  }, "");
2025
1987
  }
2026
1988
 
2027
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/dsn.js
1989
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/dsn.js
2028
1990
  var ORG_ID_REGEX = /^o(\d+)\./;
2029
1991
  var DSN_REGEX = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;
2030
1992
  function isValidProtocol(protocol) {
@@ -2122,7 +2084,7 @@ function makeDsn(from) {
2122
2084
  return components;
2123
2085
  }
2124
2086
 
2125
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/parseSampleRate.js
2087
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/parseSampleRate.js
2126
2088
  function parseSampleRate(sampleRate) {
2127
2089
  if (typeof sampleRate === "boolean") {
2128
2090
  return Number(sampleRate);
@@ -2134,7 +2096,7 @@ function parseSampleRate(sampleRate) {
2134
2096
  return rate;
2135
2097
  }
2136
2098
 
2137
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/tracing.js
2099
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/tracing.js
2138
2100
  var TRACEPARENT_REGEXP = new RegExp(
2139
2101
  "^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$"
2140
2102
  // whitespace
@@ -2230,7 +2192,7 @@ function shouldContinueTrace(client, baggageOrgId) {
2230
2192
  return true;
2231
2193
  }
2232
2194
 
2233
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/spanUtils.js
2195
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/spanUtils.js
2234
2196
  var TRACE_FLAG_NONE = 0;
2235
2197
  var TRACE_FLAG_SAMPLED = 1;
2236
2198
  var hasShownSpanDropWarning = false;
@@ -2409,7 +2371,7 @@ function updateSpanName(span, name) {
2409
2371
  });
2410
2372
  }
2411
2373
 
2412
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/errors.js
2374
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/errors.js
2413
2375
  var errorsInstrumented = false;
2414
2376
  function registerSpanErrorInstrumentation() {
2415
2377
  if (errorsInstrumented) {
@@ -2430,7 +2392,7 @@ function registerSpanErrorInstrumentation() {
2430
2392
  addGlobalUnhandledRejectionInstrumentationHandler(errorCallback);
2431
2393
  }
2432
2394
 
2433
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/hasSpansEnabled.js
2395
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/hasSpansEnabled.js
2434
2396
  function hasSpansEnabled(maybeOptions) {
2435
2397
  if (typeof __SENTRY_TRACING__ === "boolean" && !__SENTRY_TRACING__) {
2436
2398
  return false;
@@ -2440,7 +2402,7 @@ function hasSpansEnabled(maybeOptions) {
2440
2402
  (options.tracesSampleRate != null || !!options.tracesSampler);
2441
2403
  }
2442
2404
 
2443
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/should-ignore-span.js
2405
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/should-ignore-span.js
2444
2406
  function logIgnoredSpan(droppedSpan) {
2445
2407
  debug.log(`Ignoring span ${droppedSpan.op} - ${droppedSpan.description} because it matches \`ignoreSpans\`.`);
2446
2408
  }
@@ -2484,11 +2446,11 @@ function isStringOrRegExp(value) {
2484
2446
  return typeof value === "string" || value instanceof RegExp;
2485
2447
  }
2486
2448
 
2487
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/constants.js
2449
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/constants.js
2488
2450
  var DEFAULT_ENVIRONMENT = "production";
2489
2451
  var DEV_ENVIRONMENT = "development";
2490
2452
 
2491
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/dynamicSamplingContext.js
2453
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/dynamicSamplingContext.js
2492
2454
  var FROZEN_DSC_FIELD = "_frozenDsc";
2493
2455
  function freezeDscOnSpan(span, dsc) {
2494
2456
  const spanWithMaybeDsc = span;
@@ -2558,7 +2520,7 @@ function spanToBaggageHeader(span) {
2558
2520
  return dynamicSamplingContextToSentryBaggageHeader(dsc);
2559
2521
  }
2560
2522
 
2561
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/sentryNonRecordingSpan.js
2523
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/sentryNonRecordingSpan.js
2562
2524
  var SentryNonRecordingSpan = class {
2563
2525
  constructor(spanContext = {}) {
2564
2526
  this._traceId = spanContext.traceId || generateTraceId();
@@ -2618,7 +2580,7 @@ var SentryNonRecordingSpan = class {
2618
2580
  }
2619
2581
  };
2620
2582
 
2621
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/normalize.js
2583
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/normalize.js
2622
2584
  function normalize(input, depth = 100, maxProperties = Infinity) {
2623
2585
  try {
2624
2586
  return visit("", input, depth, maxProperties);
@@ -2757,7 +2719,7 @@ function memoBuilder() {
2757
2719
  return [memoize, unmemoize];
2758
2720
  }
2759
2721
 
2760
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/envelope.js
2722
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/envelope.js
2761
2723
  function createEnvelope(headers, items = []) {
2762
2724
  return [headers, items];
2763
2725
  }
@@ -2868,24 +2830,28 @@ function createAttachmentEnvelopeItem(attachment) {
2868
2830
  buffer
2869
2831
  ];
2870
2832
  }
2871
- var DATA_CATEGORY_OVERRIDES = {
2833
+ var ITEM_TYPE_TO_DATA_CATEGORY_MAP = {
2834
+ session: "session",
2872
2835
  sessions: "session",
2836
+ attachment: "attachment",
2837
+ transaction: "transaction",
2873
2838
  event: "error",
2874
2839
  client_report: "internal",
2875
2840
  user_report: "default",
2841
+ profile: "profile",
2876
2842
  profile_chunk: "profile",
2877
2843
  replay_event: "replay",
2878
2844
  replay_recording: "replay",
2879
2845
  check_in: "monitor",
2846
+ feedback: "feedback",
2847
+ span: "span",
2880
2848
  raw_security: "security",
2881
2849
  log: "log_item",
2850
+ metric: "metric",
2882
2851
  trace_metric: "metric"
2883
2852
  };
2884
- function _isOverriddenType(type) {
2885
- return type in DATA_CATEGORY_OVERRIDES;
2886
- }
2887
2853
  function envelopeItemTypeToDataCategory(type) {
2888
- return _isOverriddenType(type) ? DATA_CATEGORY_OVERRIDES[type] : type;
2854
+ return ITEM_TYPE_TO_DATA_CATEGORY_MAP[type];
2889
2855
  }
2890
2856
  function getSdkMetadataForEnvelopeHeader(metadataOrEvent) {
2891
2857
  if (!metadataOrEvent?.sdk) {
@@ -2907,7 +2873,7 @@ function createEventEnvelopeHeaders(event, sdkInfo, tunnel, dsn) {
2907
2873
  };
2908
2874
  }
2909
2875
 
2910
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/envelope.js
2876
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/envelope.js
2911
2877
  function _enhanceEventWithSdkInfo(event, newSdkInfo) {
2912
2878
  if (!newSdkInfo) {
2913
2879
  return event;
@@ -2982,7 +2948,7 @@ function createSpanEnvelope(spans, client) {
2982
2948
  return createEnvelope(headers, items);
2983
2949
  }
2984
2950
 
2985
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/logSpans.js
2951
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/logSpans.js
2986
2952
  function logSpanStart(span) {
2987
2953
  if (!DEBUG_BUILD) return;
2988
2954
  const { description = "< unknown name >", op = "< unknown op >", parent_span_id: parentSpanId } = spanToJSON(span);
@@ -3018,7 +2984,7 @@ function logSpanEnd(span) {
3018
2984
  debug.log(msg);
3019
2985
  }
3020
2986
 
3021
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/measurement.js
2987
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/measurement.js
3022
2988
  function setMeasurement(name, value, unit, activeSpan = getActiveSpan()) {
3023
2989
  const rootSpan = activeSpan && getRootSpan(activeSpan);
3024
2990
  if (rootSpan) {
@@ -3045,7 +3011,7 @@ function timedEventsToMeasurements(events) {
3045
3011
  return measurements;
3046
3012
  }
3047
3013
 
3048
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/sentrySpan.js
3014
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/sentrySpan.js
3049
3015
  var MAX_SPAN_COUNT = 1e3;
3050
3016
  var SentrySpan = class {
3051
3017
  /** Epoch timestamp in seconds when the span started. */
@@ -3339,7 +3305,7 @@ function sendSpanEnvelope(envelope) {
3339
3305
  client.sendEnvelope(envelope);
3340
3306
  }
3341
3307
 
3342
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/handleCallbackErrors.js
3308
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/handleCallbackErrors.js
3343
3309
  function handleCallbackErrors(fn, onError, onFinally = () => {
3344
3310
  }, onSuccess = () => {
3345
3311
  }) {
@@ -3355,15 +3321,16 @@ function handleCallbackErrors(fn, onError, onFinally = () => {
3355
3321
  }
3356
3322
  function maybeHandlePromiseRejection(value, onError, onFinally, onSuccess) {
3357
3323
  if (isThenable(value)) {
3358
- return chainAndCopyPromiseLike(
3359
- value,
3360
- (result) => {
3324
+ return value.then(
3325
+ (res) => {
3361
3326
  onFinally();
3362
- onSuccess(result);
3327
+ onSuccess(res);
3328
+ return res;
3363
3329
  },
3364
- (err) => {
3365
- onError(err);
3330
+ (e) => {
3331
+ onError(e);
3366
3332
  onFinally();
3333
+ throw e;
3367
3334
  }
3368
3335
  );
3369
3336
  }
@@ -3372,7 +3339,7 @@ function maybeHandlePromiseRejection(value, onError, onFinally, onSuccess) {
3372
3339
  return value;
3373
3340
  }
3374
3341
 
3375
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/sampling.js
3342
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/sampling.js
3376
3343
  function sampleSpan(options, samplingContext, sampleRand) {
3377
3344
  if (!hasSpansEnabled(options)) {
3378
3345
  return [false];
@@ -3425,7 +3392,7 @@ function sampleSpan(options, samplingContext, sampleRand) {
3425
3392
  return [shouldSample, parsedSampleRate, localSampleRateWasApplied];
3426
3393
  }
3427
3394
 
3428
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/trace.js
3395
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/trace.js
3429
3396
  var SUPPRESS_TRACING_KEY = "__SENTRY_SUPPRESS_TRACING__";
3430
3397
  function startSpan(options, callback) {
3431
3398
  const acs = getAcs();
@@ -3565,10 +3532,6 @@ function suppressTracing(callback) {
3565
3532
  });
3566
3533
  }
3567
3534
  function startNewTrace(callback) {
3568
- const acs = getAcs();
3569
- if (acs.startNewTrace) {
3570
- return acs.startNewTrace(callback);
3571
- }
3572
3535
  return withScope2((scope) => {
3573
3536
  scope.setPropagationContext({
3574
3537
  traceId: generateTraceId(),
@@ -3741,7 +3704,7 @@ function getActiveSpanWrapper(parentSpan) {
3741
3704
  } : (callback) => callback();
3742
3705
  }
3743
3706
 
3744
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/idleSpan.js
3707
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/idleSpan.js
3745
3708
  var TRACING_DEFAULTS = {
3746
3709
  idleTimeout: 1e3,
3747
3710
  finalTimeout: 3e4,
@@ -3952,7 +3915,7 @@ function _startIdleSpan(options) {
3952
3915
  return span;
3953
3916
  }
3954
3917
 
3955
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/syncpromise.js
3918
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/syncpromise.js
3956
3919
  var STATE_PENDING = 0;
3957
3920
  var STATE_RESOLVED = 1;
3958
3921
  var STATE_REJECTED = 2;
@@ -4084,7 +4047,7 @@ var SyncPromise = class _SyncPromise {
4084
4047
  }
4085
4048
  };
4086
4049
 
4087
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/eventProcessors.js
4050
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/eventProcessors.js
4088
4051
  function notifyEventProcessors(processors, event, hint, index = 0) {
4089
4052
  try {
4090
4053
  const result = _notifyEventProcessors(event, hint, processors, index);
@@ -4106,7 +4069,7 @@ function _notifyEventProcessors(event, hint, processors, index) {
4106
4069
  return _notifyEventProcessors(result, hint, processors, index + 1);
4107
4070
  }
4108
4071
 
4109
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/debug-ids.js
4072
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/debug-ids.js
4110
4073
  var parsedStackResults;
4111
4074
  var lastSentryKeysCount;
4112
4075
  var lastNativeKeysCount;
@@ -4178,7 +4141,7 @@ function getDebugImagesForResources(stackParser, resource_paths) {
4178
4141
  return images;
4179
4142
  }
4180
4143
 
4181
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/scopeData.js
4144
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/scopeData.js
4182
4145
  function applyScopeDataToEvent(event, data) {
4183
4146
  const { fingerprint, span, breadcrumbs, sdkProcessingMetadata } = data;
4184
4147
  applyDataToEvent(event, data);
@@ -4300,7 +4263,7 @@ function applyFingerprintToEvent(event, fingerprint) {
4300
4263
  }
4301
4264
  }
4302
4265
 
4303
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/prepareEvent.js
4266
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/prepareEvent.js
4304
4267
  function prepareEvent(options, event, hint, scope, client, isolationScope) {
4305
4268
  const { normalizeDepth = 3, normalizeMaxBreadth = 1e3 } = options;
4306
4269
  const prepared = {
@@ -4493,7 +4456,7 @@ function hintIsScopeContext(hint) {
4493
4456
  return Object.keys(hint).some((key) => captureContextKeys.includes(key));
4494
4457
  }
4495
4458
 
4496
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/exports.js
4459
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/exports.js
4497
4460
  function captureException(exception, hint) {
4498
4461
  return getCurrentScope().captureException(exception, parseEventHintOrCaptureContext(hint));
4499
4462
  }
@@ -4641,7 +4604,7 @@ function captureSession(end = false) {
4641
4604
  _sendSessionUpdate();
4642
4605
  }
4643
4606
 
4644
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/api.js
4607
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/api.js
4645
4608
  var SENTRY_API_VERSION = "7";
4646
4609
  function getBaseApiEndpoint(dsn) {
4647
4610
  const protocol = dsn.protocol ? `${dsn.protocol}:` : "";
@@ -4698,7 +4661,7 @@ function getReportDialogEndpoint(dsnLike, dialogOptions) {
4698
4661
  return `${endpoint}?${encodedOptions}`;
4699
4662
  }
4700
4663
 
4701
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integration.js
4664
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integration.js
4702
4665
  var installedIntegrations = [];
4703
4666
  function filterDuplicates(integrations) {
4704
4667
  const integrationsByName = {};
@@ -4783,7 +4746,7 @@ function defineIntegration(fn) {
4783
4746
  return fn;
4784
4747
  }
4785
4748
 
4786
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/attributes.js
4749
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/attributes.js
4787
4750
  function isAttributeObject(maybeObj) {
4788
4751
  return typeof maybeObj === "object" && maybeObj != null && !Array.isArray(maybeObj) && Object.keys(maybeObj).includes("value");
4789
4752
  }
@@ -4825,25 +4788,7 @@ function getTypedAttributeValue(value) {
4825
4788
  }
4826
4789
  }
4827
4790
 
4828
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/timestampSequence.js
4829
- var SEQUENCE_ATTR_KEY = "sentry.timestamp.sequence";
4830
- var _sequenceNumber = 0;
4831
- var _previousTimestampMs;
4832
- function getSequenceAttribute(timestampInSeconds2) {
4833
- const nowMs = Math.floor(timestampInSeconds2 * 1e3);
4834
- if (_previousTimestampMs !== void 0 && nowMs !== _previousTimestampMs) {
4835
- _sequenceNumber = 0;
4836
- }
4837
- const value = _sequenceNumber;
4838
- _sequenceNumber++;
4839
- _previousTimestampMs = nowMs;
4840
- return {
4841
- key: SEQUENCE_ATTR_KEY,
4842
- value: { value, type: "integer" }
4843
- };
4844
- }
4845
-
4846
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/trace-info.js
4791
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/trace-info.js
4847
4792
  function _getTraceInfoFromScope(client, scope) {
4848
4793
  if (!scope) {
4849
4794
  return [void 0, void 0];
@@ -4856,7 +4801,7 @@ function _getTraceInfoFromScope(client, scope) {
4856
4801
  });
4857
4802
  }
4858
4803
 
4859
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/logs/constants.js
4804
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/logs/constants.js
4860
4805
  var SEVERITY_TEXT_TO_SEVERITY_NUMBER = {
4861
4806
  trace: 1,
4862
4807
  debug: 5,
@@ -4866,7 +4811,7 @@ var SEVERITY_TEXT_TO_SEVERITY_NUMBER = {
4866
4811
  fatal: 21
4867
4812
  };
4868
4813
 
4869
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/logs/envelope.js
4814
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/logs/envelope.js
4870
4815
  function createLogContainerEnvelopeItem(items) {
4871
4816
  return [
4872
4817
  {
@@ -4893,7 +4838,7 @@ function createLogEnvelope(logs, metadata, tunnel, dsn) {
4893
4838
  return createEnvelope(headers, [createLogContainerEnvelopeItem(logs)]);
4894
4839
  }
4895
4840
 
4896
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/logs/internal.js
4841
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/logs/internal.js
4897
4842
  var MAX_LOG_BUFFER_SIZE = 100;
4898
4843
  function setLogAttribute(logAttributes, key, value, setEvenIfPresent = true) {
4899
4844
  if (value && (!logAttributes[key] || setEvenIfPresent)) {
@@ -4968,18 +4913,15 @@ function _INTERNAL_captureLog(beforeLog, currentScope = getCurrentScope(), captu
4968
4913
  return;
4969
4914
  }
4970
4915
  const { level, message, attributes: logAttributes = {}, severityNumber } = log2;
4971
- const timestamp = timestampInSeconds();
4972
- const sequenceAttr = getSequenceAttribute(timestamp);
4973
4916
  const serializedLog = {
4974
- timestamp,
4917
+ timestamp: timestampInSeconds(),
4975
4918
  level,
4976
4919
  body: message,
4977
4920
  trace_id: traceContext?.trace_id,
4978
4921
  severity_number: severityNumber ?? SEVERITY_TEXT_TO_SEVERITY_NUMBER[level],
4979
4922
  attributes: {
4980
4923
  ...serializeAttributes(scopeAttributes),
4981
- ...serializeAttributes(logAttributes, true),
4982
- [sequenceAttr.key]: sequenceAttr.value
4924
+ ...serializeAttributes(logAttributes, true)
4983
4925
  }
4984
4926
  };
4985
4927
  captureSerializedLog(client, serializedLog);
@@ -5003,7 +4945,7 @@ function _getBufferMap() {
5003
4945
  return getGlobalSingleton("clientToLogBufferMap", () => /* @__PURE__ */ new WeakMap());
5004
4946
  }
5005
4947
 
5006
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/metrics/envelope.js
4948
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/metrics/envelope.js
5007
4949
  function createMetricContainerEnvelopeItem(items) {
5008
4950
  return [
5009
4951
  {
@@ -5030,7 +4972,7 @@ function createMetricEnvelope(metrics, metadata, tunnel, dsn) {
5030
4972
  return createEnvelope(headers, [createMetricContainerEnvelopeItem(metrics)]);
5031
4973
  }
5032
4974
 
5033
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/metrics/internal.js
4975
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/metrics/internal.js
5034
4976
  var MAX_METRIC_BUFFER_SIZE = 1e3;
5035
4977
  function setMetricAttribute(metricAttributes, key, value, setEvenIfPresent = true) {
5036
4978
  if (value && (setEvenIfPresent || !(key in metricAttributes))) {
@@ -5080,10 +5022,8 @@ function _buildSerializedMetric(metric, client, currentScope, scopeAttributes) {
5080
5022
  const span = _getSpanForScope(currentScope);
5081
5023
  const traceId = span ? span.spanContext().traceId : traceContext?.trace_id;
5082
5024
  const spanId = span ? span.spanContext().spanId : void 0;
5083
- const timestamp = timestampInSeconds();
5084
- const sequenceAttr = getSequenceAttribute(timestamp);
5085
5025
  return {
5086
- timestamp,
5026
+ timestamp: timestampInSeconds(),
5087
5027
  trace_id: traceId ?? "",
5088
5028
  span_id: spanId,
5089
5029
  name: metric.name,
@@ -5092,8 +5032,7 @@ function _buildSerializedMetric(metric, client, currentScope, scopeAttributes) {
5092
5032
  value: metric.value,
5093
5033
  attributes: {
5094
5034
  ...serializeAttributes(scopeAttributes),
5095
- ...serializeAttributes(metric.attributes, "skip-undefined"),
5096
- [sequenceAttr.key]: sequenceAttr.value
5035
+ ...serializeAttributes(metric.attributes, "skip-undefined")
5097
5036
  }
5098
5037
  };
5099
5038
  }
@@ -5143,7 +5082,7 @@ function _getBufferMap2() {
5143
5082
  return getGlobalSingleton("clientToMetricBufferMap", () => /* @__PURE__ */ new WeakMap());
5144
5083
  }
5145
5084
 
5146
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/timer.js
5085
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/timer.js
5147
5086
  function safeUnref(timer) {
5148
5087
  if (typeof timer === "object" && typeof timer.unref === "function") {
5149
5088
  timer.unref();
@@ -5151,7 +5090,7 @@ function safeUnref(timer) {
5151
5090
  return timer;
5152
5091
  }
5153
5092
 
5154
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/promisebuffer.js
5093
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/promisebuffer.js
5155
5094
  var SENTRY_BUFFER_FULL_ERROR = /* @__PURE__ */ Symbol.for("SentryBufferFullError");
5156
5095
  function makePromiseBuffer(limit = 100) {
5157
5096
  const buffer = /* @__PURE__ */ new Set();
@@ -5196,7 +5135,7 @@ function makePromiseBuffer(limit = 100) {
5196
5135
  };
5197
5136
  }
5198
5137
 
5199
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/ratelimit.js
5138
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/ratelimit.js
5200
5139
  var DEFAULT_RETRY_AFTER = 60 * 1e3;
5201
5140
  function parseRetryAfterHeader(header, now = safeDateNow()) {
5202
5141
  const headerDelay = parseInt(`${header}`, 10);
@@ -5248,7 +5187,7 @@ function updateRateLimits(limits, { statusCode, headers }, now = safeDateNow())
5248
5187
  return updatedRateLimits;
5249
5188
  }
5250
5189
 
5251
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/transports/base.js
5190
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/transports/base.js
5252
5191
  var DEFAULT_TRANSPORT_BUFFER_SIZE = 64;
5253
5192
  function createTransport(options, makeRequest, buffer = makePromiseBuffer(
5254
5193
  options.bufferSize || DEFAULT_TRANSPORT_BUFFER_SIZE
@@ -5318,7 +5257,7 @@ function createTransport(options, makeRequest, buffer = makePromiseBuffer(
5318
5257
  };
5319
5258
  }
5320
5259
 
5321
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/clientreport.js
5260
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/clientreport.js
5322
5261
  function createClientReportEnvelope(discarded_events, dsn, timestamp) {
5323
5262
  const clientReportItem = [
5324
5263
  { type: "client_report" },
@@ -5330,7 +5269,7 @@ function createClientReportEnvelope(discarded_events, dsn, timestamp) {
5330
5269
  return createEnvelope(dsn ? { dsn } : {}, [clientReportItem]);
5331
5270
  }
5332
5271
 
5333
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/eventUtils.js
5272
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/eventUtils.js
5334
5273
  function getPossibleEventMessages(event) {
5335
5274
  const possibleMessages = [];
5336
5275
  if (event.message) {
@@ -5349,7 +5288,7 @@ function getPossibleEventMessages(event) {
5349
5288
  return possibleMessages;
5350
5289
  }
5351
5290
 
5352
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/transactionEvent.js
5291
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/transactionEvent.js
5353
5292
  function convertTransactionEventToSpanJson(event) {
5354
5293
  const { trace_id, parent_span_id, span_id, status, origin, data, op } = event.contexts?.trace ?? {};
5355
5294
  return {
@@ -5394,7 +5333,7 @@ function convertSpanJsonToTransactionEvent(span) {
5394
5333
  };
5395
5334
  }
5396
5335
 
5397
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/client.js
5336
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/client.js
5398
5337
  var ALREADY_SEEN_ERROR = "Not capturing exception because it's already been captured.";
5399
5338
  var MISSING_RELEASE_FOR_SESSION_ERROR = "Discarded session because of missing or non-string release";
5400
5339
  var INTERNAL_ERROR_SYMBOL = /* @__PURE__ */ Symbol.for("SentryInternalError");
@@ -5947,7 +5886,7 @@ var Client = class {
5947
5886
  this.recordDroppedEvent("event_processor", dataCategory);
5948
5887
  throw _makeDoNotSendEventError("An event processor returned `null`, will not send event.");
5949
5888
  }
5950
- const isInternalException = hint.data?.__sentry__ === true;
5889
+ const isInternalException = hint.data && hint.data.__sentry__ === true;
5951
5890
  if (isInternalException) {
5952
5891
  return prepared;
5953
5892
  }
@@ -6191,7 +6130,7 @@ function estimatePrimitiveSizeInBytes(value) {
6191
6130
  return 0;
6192
6131
  }
6193
6132
 
6194
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/checkin.js
6133
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/checkin.js
6195
6134
  function createCheckInEnvelope(checkIn, dynamicSamplingContext, metadata, tunnel, dsn) {
6196
6135
  const headers = {
6197
6136
  sent_at: (/* @__PURE__ */ new Date()).toISOString()
@@ -6218,7 +6157,7 @@ function createCheckInEnvelopeItem(checkIn) {
6218
6157
  return [checkInHeaders, checkIn];
6219
6158
  }
6220
6159
 
6221
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/transports/userAgent.js
6160
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/transports/userAgent.js
6222
6161
  function addUserAgentToTransportHeaders(options) {
6223
6162
  const sdkMetadata = options._metadata?.sdk;
6224
6163
  const sdkUserAgent = sdkMetadata?.name && sdkMetadata?.version ? `${sdkMetadata?.name}/${sdkMetadata?.version}` : void 0;
@@ -6231,7 +6170,7 @@ function addUserAgentToTransportHeaders(options) {
6231
6170
  };
6232
6171
  }
6233
6172
 
6234
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/eventbuilder.js
6173
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/eventbuilder.js
6235
6174
  function parseStackFrames(stackParser, error3) {
6236
6175
  return stackParser(error3.stack || "", 1);
6237
6176
  }
@@ -6364,7 +6303,7 @@ function eventFromMessage(stackParser, message, level = "info", hint, attachStac
6364
6303
  return event;
6365
6304
  }
6366
6305
 
6367
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/server-runtime-client.js
6306
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/server-runtime-client.js
6368
6307
  var ServerRuntimeClient = class extends Client {
6369
6308
  /**
6370
6309
  * Creates a new Edge SDK instance.
@@ -6528,7 +6467,7 @@ function setCurrentRequestSessionErroredOrCrashed(eventHint) {
6528
6467
  }
6529
6468
  }
6530
6469
 
6531
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/sdk.js
6470
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/sdk.js
6532
6471
  function initAndBind(clientClass, options) {
6533
6472
  if (options.debug === true) {
6534
6473
  if (DEBUG_BUILD) {
@@ -6550,7 +6489,7 @@ function setCurrentClient(client) {
6550
6489
  getCurrentScope().setClient(client);
6551
6490
  }
6552
6491
 
6553
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/transports/offline.js
6492
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/transports/offline.js
6554
6493
  var MIN_DELAY = 100;
6555
6494
  var START_DELAY = 5e3;
6556
6495
  var MAX_DELAY = 36e5;
@@ -6655,7 +6594,7 @@ function makeOfflineTransport(createTransport2) {
6655
6594
  };
6656
6595
  }
6657
6596
 
6658
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/transports/multiplexed.js
6597
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/transports/multiplexed.js
6659
6598
  var MULTIPLEXED_TRANSPORT_EXTRA_KEY = "MULTIPLEXED_TRANSPORT_EXTRA_KEY";
6660
6599
  function eventFromEnvelope(env, types) {
6661
6600
  let event;
@@ -6746,7 +6685,7 @@ function makeMultiplexedTransport(createTransport2, matcher) {
6746
6685
  };
6747
6686
  }
6748
6687
 
6749
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/ai/providerSkip.js
6688
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/ai/providerSkip.js
6750
6689
  var SKIPPED_AI_PROVIDERS = /* @__PURE__ */ new Set();
6751
6690
  function _INTERNAL_skipAiProviderWrapping(modules) {
6752
6691
  modules.forEach((module2) => {
@@ -6762,7 +6701,7 @@ function _INTERNAL_clearAiProviderSkips() {
6762
6701
  DEBUG_BUILD && debug.log("Cleared AI provider skip registrations");
6763
6702
  }
6764
6703
 
6765
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/envToBool.js
6704
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/envToBool.js
6766
6705
  var FALSY_ENV_VALUES = /* @__PURE__ */ new Set(["false", "f", "n", "no", "off", "0"]);
6767
6706
  var TRUTHY_ENV_VALUES = /* @__PURE__ */ new Set(["true", "t", "y", "yes", "on", "1"]);
6768
6707
  function envToBool(value, options) {
@@ -6776,7 +6715,7 @@ function envToBool(value, options) {
6776
6715
  return options?.strict ? null : Boolean(value);
6777
6716
  }
6778
6717
 
6779
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/url.js
6718
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/url.js
6780
6719
  var DEFAULT_BASE_URL = "thismessage:/";
6781
6720
  function isURLObjectRelative(url) {
6782
6721
  return "isRelative" in url;
@@ -6909,7 +6848,7 @@ function stripDataUrlContent(url, includeDataPrefix = true) {
6909
6848
  return url;
6910
6849
  }
6911
6850
 
6912
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/isSentryRequestUrl.js
6851
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/isSentryRequestUrl.js
6913
6852
  function isSentryRequestUrl(url, client) {
6914
6853
  const dsn = client?.getDsn();
6915
6854
  const tunnel = client?.getOptions().tunnel;
@@ -6932,7 +6871,7 @@ function removeTrailingSlash(str) {
6932
6871
  return str[str.length - 1] === "/" ? str.slice(0, -1) : str;
6933
6872
  }
6934
6873
 
6935
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/parameterize.js
6874
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/parameterize.js
6936
6875
  function parameterize(strings, ...values) {
6937
6876
  const formatted = new String(String.raw(strings, ...values));
6938
6877
  formatted.__sentry_template_string__ = strings.join("\0").replace(/%/g, "%%").replace(/\0/g, "%s");
@@ -6941,7 +6880,7 @@ function parameterize(strings, ...values) {
6941
6880
  }
6942
6881
  var fmt = parameterize;
6943
6882
 
6944
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/tunnel.js
6883
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/tunnel.js
6945
6884
  async function handleTunnelRequest(options) {
6946
6885
  const { request, allowedDsns } = options;
6947
6886
  if (allowedDsns.length === 0) {
@@ -6986,7 +6925,7 @@ async function handleTunnelRequest(options) {
6986
6925
  }
6987
6926
  }
6988
6927
 
6989
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/ipAddress.js
6928
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/ipAddress.js
6990
6929
  function addAutoIpAddressToUser(objWithMaybeUser) {
6991
6930
  if (objWithMaybeUser.user?.ip_address === void 0) {
6992
6931
  objWithMaybeUser.user = {
@@ -7010,7 +6949,7 @@ function addAutoIpAddressToSession(session) {
7010
6949
  }
7011
6950
  }
7012
6951
 
7013
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/sdkMetadata.js
6952
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/sdkMetadata.js
7014
6953
  function applySdkMetadata(options, name, names = [name], source = "npm") {
7015
6954
  const sdk = (options._metadata = options._metadata || {}).sdk = options._metadata.sdk || {};
7016
6955
  if (!sdk.name) {
@@ -7023,7 +6962,7 @@ function applySdkMetadata(options, name, names = [name], source = "npm") {
7023
6962
  }
7024
6963
  }
7025
6964
 
7026
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/traceData.js
6965
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/traceData.js
7027
6966
  function getTraceData(options = {}) {
7028
6967
  const client = options.client || getClient();
7029
6968
  if (!isEnabled2() || !client) {
@@ -7036,9 +6975,6 @@ function getTraceData(options = {}) {
7036
6975
  }
7037
6976
  const scope = options.scope || getCurrentScope();
7038
6977
  const span = options.span || getActiveSpan();
7039
- if (!span && hasExternalPropagationContext()) {
7040
- return {};
7041
- }
7042
6978
  const sentryTrace = span ? spanToTraceHeader(span) : scopeToTraceHeader(scope);
7043
6979
  const dsc = span ? getDynamicSamplingContextFromSpan(span) : getDynamicSamplingContextFromScope(client, scope);
7044
6980
  const baggage = dynamicSamplingContextToSentryBaggageHeader(dsc);
@@ -7065,7 +7001,7 @@ function scopeToTraceparentHeader(scope) {
7065
7001
  return generateTraceparentHeader(traceId, propagationSpanId, sampled);
7066
7002
  }
7067
7003
 
7068
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/tracePropagationTargets.js
7004
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/tracePropagationTargets.js
7069
7005
  var NOT_PROPAGATED_MESSAGE = "[Tracing] Not injecting trace data for url because it does not match tracePropagationTargets:";
7070
7006
  function shouldPropagateTraceForUrl(url, tracePropagationTargets, decisionMap) {
7071
7007
  if (typeof url !== "string" || !tracePropagationTargets) {
@@ -7082,12 +7018,12 @@ function shouldPropagateTraceForUrl(url, tracePropagationTargets, decisionMap) {
7082
7018
  return decision;
7083
7019
  }
7084
7020
 
7085
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/meta.js
7021
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/meta.js
7086
7022
  function getTraceMetaTags(traceData) {
7087
7023
  return Object.entries(traceData || getTraceData()).map(([key, value]) => `<meta name="${key}" content="${value}"/>`).join("\n");
7088
7024
  }
7089
7025
 
7090
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/debounce.js
7026
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/debounce.js
7091
7027
  function debounce(func, wait, options) {
7092
7028
  let callbackReturnValue;
7093
7029
  let timerId;
@@ -7125,7 +7061,7 @@ function debounce(func, wait, options) {
7125
7061
  return debounced;
7126
7062
  }
7127
7063
 
7128
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/request.js
7064
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/request.js
7129
7065
  function winterCGHeadersToDict(winterCGHeaders) {
7130
7066
  const headers = {};
7131
7067
  try {
@@ -7218,7 +7154,7 @@ var SENSITIVE_HEADER_SNIPPETS = [
7218
7154
  "cookie"
7219
7155
  ];
7220
7156
  var PII_HEADER_SNIPPETS = ["x-forwarded-", "-user"];
7221
- function httpHeadersToSpanAttributes(headers, sendDefaultPii = false, lifecycle = "request") {
7157
+ function httpHeadersToSpanAttributes(headers, sendDefaultPii = false) {
7222
7158
  const spanAttributes = {};
7223
7159
  try {
7224
7160
  Object.entries(headers).forEach(([key, value]) => {
@@ -7237,17 +7173,10 @@ function httpHeadersToSpanAttributes(headers, sendDefaultPii = false, lifecycle
7237
7173
  const cookieKey = equalSignIndex !== -1 ? cookie.substring(0, equalSignIndex) : cookie;
7238
7174
  const cookieValue = equalSignIndex !== -1 ? cookie.substring(equalSignIndex + 1) : "";
7239
7175
  const lowerCasedCookieKey = cookieKey.toLowerCase();
7240
- addSpanAttribute(
7241
- spanAttributes,
7242
- lowerCasedHeaderKey,
7243
- lowerCasedCookieKey,
7244
- cookieValue,
7245
- sendDefaultPii,
7246
- lifecycle
7247
- );
7176
+ addSpanAttribute(spanAttributes, lowerCasedHeaderKey, lowerCasedCookieKey, cookieValue, sendDefaultPii);
7248
7177
  }
7249
7178
  } else {
7250
- addSpanAttribute(spanAttributes, lowerCasedHeaderKey, "", value, sendDefaultPii, lifecycle);
7179
+ addSpanAttribute(spanAttributes, lowerCasedHeaderKey, "", value, sendDefaultPii);
7251
7180
  }
7252
7181
  });
7253
7182
  } catch {
@@ -7257,13 +7186,12 @@ function httpHeadersToSpanAttributes(headers, sendDefaultPii = false, lifecycle
7257
7186
  function normalizeAttributeKey(key) {
7258
7187
  return key.replace(/-/g, "_");
7259
7188
  }
7260
- function addSpanAttribute(spanAttributes, headerKey, cookieKey, value, sendPii, lifecycle) {
7189
+ function addSpanAttribute(spanAttributes, headerKey, cookieKey, value, sendPii) {
7190
+ const normalizedKey = cookieKey ? `http.request.header.${normalizeAttributeKey(headerKey)}.${normalizeAttributeKey(cookieKey)}` : `http.request.header.${normalizeAttributeKey(headerKey)}`;
7261
7191
  const headerValue = handleHttpHeader(cookieKey || headerKey, value, sendPii);
7262
- if (headerValue == null) {
7263
- return;
7192
+ if (headerValue !== void 0) {
7193
+ spanAttributes[normalizedKey] = headerValue;
7264
7194
  }
7265
- const normalizedKey = `http.${lifecycle}.header.${normalizeAttributeKey(headerKey)}${cookieKey ? `.${normalizeAttributeKey(cookieKey)}` : ""}`;
7266
- spanAttributes[normalizedKey] = headerValue;
7267
7195
  }
7268
7196
  function handleHttpHeader(lowerCasedKey, value, sendPii) {
7269
7197
  const isSensitive = sendPii ? SENSITIVE_HEADER_SNIPPETS.some((snippet) => lowerCasedKey.includes(snippet)) : [...PII_HEADER_SNIPPETS, ...SENSITIVE_HEADER_SNIPPETS].some((snippet) => lowerCasedKey.includes(snippet));
@@ -7288,7 +7216,7 @@ function extractQueryParamsFromUrl(url) {
7288
7216
  }
7289
7217
  }
7290
7218
 
7291
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/breadcrumbs.js
7219
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/breadcrumbs.js
7292
7220
  var DEFAULT_BREADCRUMBS = 100;
7293
7221
  function addBreadcrumb(breadcrumb, hint) {
7294
7222
  const client = getClient();
@@ -7306,7 +7234,7 @@ function addBreadcrumb(breadcrumb, hint) {
7306
7234
  isolationScope.addBreadcrumb(finalBreadcrumb, maxBreadcrumbs);
7307
7235
  }
7308
7236
 
7309
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/functiontostring.js
7237
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/functiontostring.js
7310
7238
  var originalFunctionToString;
7311
7239
  var INTEGRATION_NAME = "FunctionToString";
7312
7240
  var SETUP_CLIENTS = /* @__PURE__ */ new WeakMap();
@@ -7331,7 +7259,7 @@ var _functionToStringIntegration = (() => {
7331
7259
  });
7332
7260
  var functionToStringIntegration = defineIntegration(_functionToStringIntegration);
7333
7261
 
7334
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/eventFilters.js
7262
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/eventFilters.js
7335
7263
  var DEFAULT_IGNORE_ERRORS = [
7336
7264
  /^Script error\.?$/,
7337
7265
  /^Javascript error: Script error\.? on line 0$/,
@@ -7343,13 +7271,13 @@ var DEFAULT_IGNORE_ERRORS = [
7343
7271
  // Error from Google Search App https://issuetracker.google.com/issues/396043331
7344
7272
  /^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,
7345
7273
  // Random error that happens but not actionable or noticeable to end-users.
7346
- /can't redefine non-configurable property "solana"/,
7274
+ `can't redefine non-configurable property "solana"`,
7347
7275
  // Probably a browser extension or custom browser (Brave) throwing this error
7348
- /vv\(\)\.getRestrictions is not a function/,
7276
+ "vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)",
7349
7277
  // Error thrown by GTM, seemingly not affecting end-users
7350
- /Can't find variable: _AutofillCallbackHandler/,
7278
+ "Can't find variable: _AutofillCallbackHandler",
7351
7279
  // Unactionable error in instagram webview https://developers.facebook.com/community/threads/320013549791141/
7352
- /Object Not Found Matching Id:\d+, MethodName:simulateEvent/,
7280
+ /^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,
7353
7281
  // unactionable error from CEFSharp, a .NET library that embeds chromium in .NET apps
7354
7282
  /^Java exception was raised during method invocation$/
7355
7283
  // error from Facebook Mobile browser (https://github.com/getsentry/sentry-javascript/issues/15065)
@@ -7496,7 +7424,7 @@ function _isUselessError(event) {
7496
7424
  );
7497
7425
  }
7498
7426
 
7499
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/aggregate-errors.js
7427
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/aggregate-errors.js
7500
7428
  function applyAggregateErrorsToEvent(exceptionFromErrorImplementation, parser, key, limit, event, hint) {
7501
7429
  if (!event.exception?.values || !hint || !isInstanceOf(hint.originalException, Error)) {
7502
7430
  return;
@@ -7581,7 +7509,7 @@ function applyExceptionGroupFieldsForChildException(exception, source, exception
7581
7509
  };
7582
7510
  }
7583
7511
 
7584
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/linkederrors.js
7512
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/linkederrors.js
7585
7513
  var DEFAULT_KEY = "cause";
7586
7514
  var DEFAULT_LIMIT = 5;
7587
7515
  var INTEGRATION_NAME3 = "LinkedErrors";
@@ -7598,7 +7526,7 @@ var _linkedErrorsIntegration = ((options = {}) => {
7598
7526
  });
7599
7527
  var linkedErrorsIntegration = defineIntegration(_linkedErrorsIntegration);
7600
7528
 
7601
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/metadata.js
7529
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/metadata.js
7602
7530
  var filenameMetadataMap = /* @__PURE__ */ new Map();
7603
7531
  var parsedStacks = /* @__PURE__ */ new Set();
7604
7532
  function getFilenameToMetadataMap(parser) {
@@ -7662,7 +7590,7 @@ function stripMetadataFromStackFrames(event) {
7662
7590
  });
7663
7591
  }
7664
7592
 
7665
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/moduleMetadata.js
7593
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/moduleMetadata.js
7666
7594
  var moduleMetadataIntegration = defineIntegration(() => {
7667
7595
  return {
7668
7596
  name: "ModuleMetadata",
@@ -7689,7 +7617,7 @@ var moduleMetadataIntegration = defineIntegration(() => {
7689
7617
  };
7690
7618
  });
7691
7619
 
7692
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/cookie.js
7620
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/cookie.js
7693
7621
  function parseCookie(str) {
7694
7622
  const obj = {};
7695
7623
  let index = 0;
@@ -7722,7 +7650,7 @@ function parseCookie(str) {
7722
7650
  return obj;
7723
7651
  }
7724
7652
 
7725
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/vendor/getIpAddress.js
7653
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/vendor/getIpAddress.js
7726
7654
  var ipHeaderNames = [
7727
7655
  "X-Client-IP",
7728
7656
  "X-Forwarded-For",
@@ -7775,7 +7703,7 @@ function isIP(str) {
7775
7703
  return regex.test(str);
7776
7704
  }
7777
7705
 
7778
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/requestdata.js
7706
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/requestdata.js
7779
7707
  var DEFAULT_INCLUDE = {
7780
7708
  cookies: true,
7781
7709
  data: true,
@@ -7852,7 +7780,7 @@ function extractNormalizedRequestData(normalizedRequest, include) {
7852
7780
  return requestData;
7853
7781
  }
7854
7782
 
7855
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/instrument/console.js
7783
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/instrument/console.js
7856
7784
  function addConsoleInstrumentationHandler(handler) {
7857
7785
  const type = "console";
7858
7786
  addHandler(type, handler);
@@ -7878,12 +7806,12 @@ function instrumentConsole() {
7878
7806
  });
7879
7807
  }
7880
7808
 
7881
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/severity.js
7809
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/severity.js
7882
7810
  function severityLevelFromString(level) {
7883
7811
  return level === "warn" ? "warning" : ["fatal", "error", "warning", "log", "info", "debug"].includes(level) ? level : "log";
7884
7812
  }
7885
7813
 
7886
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/captureconsole.js
7814
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/captureconsole.js
7887
7815
  var INTEGRATION_NAME5 = "CaptureConsole";
7888
7816
  var _captureConsoleIntegration = ((options = {}) => {
7889
7817
  const levels = options.levels || CONSOLE_LEVELS;
@@ -7940,7 +7868,7 @@ function consoleHandler(args, level, handled) {
7940
7868
  });
7941
7869
  }
7942
7870
 
7943
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/dedupe.js
7871
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/dedupe.js
7944
7872
  var INTEGRATION_NAME6 = "Dedupe";
7945
7873
  var _dedupeIntegration = (() => {
7946
7874
  let previousEvent;
@@ -8055,7 +7983,7 @@ function _getExceptionFromEvent(event) {
8055
7983
  return event.exception?.values?.[0];
8056
7984
  }
8057
7985
 
8058
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/extraerrordata.js
7986
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/extraerrordata.js
8059
7987
  var INTEGRATION_NAME7 = "ExtraErrorData";
8060
7988
  var _extraErrorDataIntegration = ((options = {}) => {
8061
7989
  const { depth = 3, captureErrorCause = true } = options;
@@ -8133,7 +8061,7 @@ function _extractErrorData(error3, captureErrorCause, maxValueLength) {
8133
8061
  return null;
8134
8062
  }
8135
8063
 
8136
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/path.js
8064
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/path.js
8137
8065
  function normalizeArray(parts, allowAboveRoot) {
8138
8066
  let up = 0;
8139
8067
  for (let i = parts.length - 1; i >= 0; i--) {
@@ -8257,7 +8185,7 @@ function basename(path, ext) {
8257
8185
  return f;
8258
8186
  }
8259
8187
 
8260
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/rewriteframes.js
8188
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/rewriteframes.js
8261
8189
  var INTEGRATION_NAME8 = "RewriteFrames";
8262
8190
  var rewriteFramesIntegration = defineIntegration((options = {}) => {
8263
8191
  const root = options.root;
@@ -8329,7 +8257,7 @@ function generateIteratee({
8329
8257
  };
8330
8258
  }
8331
8259
 
8332
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/supabase.js
8260
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/supabase.js
8333
8261
  var AUTH_OPERATIONS_TO_INSTRUMENT = [
8334
8262
  "reauthenticate",
8335
8263
  "signInAnonymously",
@@ -8589,7 +8517,7 @@ function instrumentPostgRESTFilterBuilder(PostgRESTFilterBuilder) {
8589
8517
  }
8590
8518
  span.end();
8591
8519
  }
8592
- if (res?.error) {
8520
+ if (res.error) {
8593
8521
  const err = new Error(res.error.message);
8594
8522
  if (res.error.code) {
8595
8523
  err.code = res.error.code;
@@ -8691,7 +8619,7 @@ var supabaseIntegration = defineIntegration((options) => {
8691
8619
  return _supabaseIntegration(options.supabaseClient);
8692
8620
  });
8693
8621
 
8694
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/postgresjs.js
8622
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/postgresjs.js
8695
8623
  var SQL_OPERATION_REGEX = /^(SELECT|INSERT|UPDATE|DELETE|CREATE|DROP|ALTER)/i;
8696
8624
  var CONNECTION_CONTEXT_SYMBOL = /* @__PURE__ */ Symbol("sentryPostgresConnectionContext");
8697
8625
  var INSTRUMENTED_MARKER = /* @__PURE__ */ Symbol.for("sentry.instrumented.postgresjs");
@@ -8909,7 +8837,7 @@ function _attachConnectionContext(sql, proxiedSql) {
8909
8837
  proxiedSql[CONNECTION_CONTEXT_SYMBOL] = connectionContext;
8910
8838
  }
8911
8839
 
8912
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/zoderrors.js
8840
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/zoderrors.js
8913
8841
  var DEFAULT_LIMIT2 = 10;
8914
8842
  var INTEGRATION_NAME10 = "ZodErrors";
8915
8843
  function originalExceptionIsZodError(originalException) {
@@ -9014,7 +8942,7 @@ var _zodErrorsIntegration = ((options = {}) => {
9014
8942
  });
9015
8943
  var zodErrorsIntegration = defineIntegration(_zodErrorsIntegration);
9016
8944
 
9017
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/third-party-errors-filter.js
8945
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/third-party-errors-filter.js
9018
8946
  var thirdPartyErrorFilterIntegration = defineIntegration((options) => {
9019
8947
  return {
9020
8948
  name: "ThirdPartyErrorsFilter",
@@ -9101,7 +9029,7 @@ var BUNDLER_PLUGIN_APP_KEY_PREFIX = "_sentryBundlerPluginAppKey:";
9101
9029
  var SENTRY_INTERNAL_COMMENT = "Attempt to invoke user-land function";
9102
9030
  var SENTRY_INTERNAL_FN_APPLY = "fn.apply(this, wrappedArguments)";
9103
9031
 
9104
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/console.js
9032
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/console.js
9105
9033
  var INTEGRATION_NAME11 = "Console";
9106
9034
  var consoleIntegration = defineIntegration((options = {}) => {
9107
9035
  const levels = new Set(options.levels || CONSOLE_LEVELS);
@@ -9145,7 +9073,7 @@ function formatConsoleArgs(values) {
9145
9073
  return "util" in GLOBAL_OBJ && typeof GLOBAL_OBJ.util.format === "function" ? GLOBAL_OBJ.util.format(...values) : safeJoin(values, " ");
9146
9074
  }
9147
9075
 
9148
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/featureFlags.js
9076
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/featureFlags.js
9149
9077
  var _INTERNAL_FLAG_BUFFER_SIZE = 100;
9150
9078
  var _INTERNAL_MAX_FLAGS_PER_SPAN = 10;
9151
9079
  var SPAN_FLAG_ATTRIBUTE_PREFIX = "flag.evaluation.";
@@ -9209,7 +9137,7 @@ function _INTERNAL_addFeatureFlagToActiveSpan(name, value, maxFlagsPerSpan = _IN
9209
9137
  }
9210
9138
  }
9211
9139
 
9212
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/featureFlags/featureFlagsIntegration.js
9140
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/featureFlags/featureFlagsIntegration.js
9213
9141
  var featureFlagsIntegration = defineIntegration(() => {
9214
9142
  return {
9215
9143
  name: "FeatureFlags",
@@ -9223,7 +9151,7 @@ var featureFlagsIntegration = defineIntegration(() => {
9223
9151
  };
9224
9152
  });
9225
9153
 
9226
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/featureFlags/growthbook.js
9154
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/featureFlags/growthbook.js
9227
9155
  var growthbookIntegration = defineIntegration(
9228
9156
  ({ growthbookClass }) => {
9229
9157
  return {
@@ -9255,7 +9183,7 @@ function _wrapAndCaptureBooleanResult(original) {
9255
9183
  };
9256
9184
  }
9257
9185
 
9258
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/conversationId.js
9186
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/conversationId.js
9259
9187
  var INTEGRATION_NAME12 = "ConversationId";
9260
9188
  var _conversationIdIntegration = (() => {
9261
9189
  return {
@@ -9274,7 +9202,7 @@ var _conversationIdIntegration = (() => {
9274
9202
  });
9275
9203
  var conversationIdIntegration = defineIntegration(_conversationIdIntegration);
9276
9204
 
9277
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/profiling.js
9205
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/profiling.js
9278
9206
  function isProfilingIntegrationWithProfiler(integration) {
9279
9207
  return !!integration && typeof integration["_profiler"] !== "undefined" && typeof integration["_profiler"]["start"] === "function" && typeof integration["_profiler"]["stop"] === "function";
9280
9208
  }
@@ -9317,7 +9245,7 @@ var profiler = {
9317
9245
  stopProfiler
9318
9246
  };
9319
9247
 
9320
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/fetch.js
9248
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/fetch.js
9321
9249
  function instrumentFetchRequest(handlerData, shouldCreateSpan, shouldAttachHeaders, spans, spanOriginOrOptions) {
9322
9250
  if (!handlerData.fetchData) {
9323
9251
  return void 0;
@@ -9500,7 +9428,7 @@ function getFetchSpanAttributes(url, parsedUrl, method, spanOrigin) {
9500
9428
  return attributes;
9501
9429
  }
9502
9430
 
9503
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/trpc.js
9431
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/trpc.js
9504
9432
  var trpcCaptureContext = { mechanism: { handled: false, type: "auto.rpc.trpc.middleware" } };
9505
9433
  function captureIfError(nextResult) {
9506
9434
  if (typeof nextResult === "object" && nextResult !== null && "ok" in nextResult && !nextResult.ok && "error" in nextResult) {
@@ -9564,7 +9492,7 @@ function trpcMiddleware(options = {}) {
9564
9492
  };
9565
9493
  }
9566
9494
 
9567
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/errorCapture.js
9495
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/errorCapture.js
9568
9496
  function captureError(error3, errorType, extraData) {
9569
9497
  try {
9570
9498
  const client = getClient();
@@ -9592,7 +9520,7 @@ function captureError(error3, errorType, extraData) {
9592
9520
  }
9593
9521
  }
9594
9522
 
9595
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/handlers.js
9523
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/handlers.js
9596
9524
  function wrapMethodHandler(serverInstance, methodName) {
9597
9525
  fill(serverInstance, methodName, (originalMethod) => {
9598
9526
  return function(name, ...args) {
@@ -9649,7 +9577,7 @@ function captureHandlerError(error3, methodName, handlerName) {
9649
9577
  extraData.prompt_name = handlerName;
9650
9578
  captureError(error3, "prompt_execution", extraData);
9651
9579
  }
9652
- } catch (_captureErr) {
9580
+ } catch (captureErr) {
9653
9581
  }
9654
9582
  }
9655
9583
  function wrapToolHandlers(serverInstance) {
@@ -9667,7 +9595,7 @@ function wrapAllMCPHandlers(serverInstance) {
9667
9595
  wrapPromptHandlers(serverInstance);
9668
9596
  }
9669
9597
 
9670
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/attributes.js
9598
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/attributes.js
9671
9599
  var MCP_METHOD_NAME_ATTRIBUTE = "mcp.method.name";
9672
9600
  var MCP_REQUEST_ID_ATTRIBUTE = "mcp.request.id";
9673
9601
  var MCP_SESSION_ID_ATTRIBUTE = "mcp.session.id";
@@ -9699,7 +9627,7 @@ var MCP_FUNCTION_ORIGIN_VALUE = "auto.function.mcp_server";
9699
9627
  var MCP_NOTIFICATION_ORIGIN_VALUE = "auto.mcp.notification";
9700
9628
  var MCP_ROUTE_SOURCE_VALUE = "route";
9701
9629
 
9702
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/validation.js
9630
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/validation.js
9703
9631
  function isJsonRpcRequest(message) {
9704
9632
  return typeof message === "object" && message !== null && "jsonrpc" in message && message.jsonrpc === "2.0" && "method" in message && "id" in message;
9705
9633
  }
@@ -9720,7 +9648,7 @@ function isValidContentItem(item) {
9720
9648
  return item != null && typeof item === "object";
9721
9649
  }
9722
9650
 
9723
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/resultExtraction.js
9651
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/resultExtraction.js
9724
9652
  function buildAllContentItemAttributes(content, includeContent) {
9725
9653
  const attributes = {
9726
9654
  [MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE]: content.length
@@ -9804,7 +9732,7 @@ function extractPromptResultAttributes(result, recordOutputs) {
9804
9732
  return attributes;
9805
9733
  }
9806
9734
 
9807
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/sessionManagement.js
9735
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/sessionManagement.js
9808
9736
  var sessionToSessionData = /* @__PURE__ */ new Map();
9809
9737
  var statelessSessionData = /* @__PURE__ */ new WeakMap();
9810
9738
  function getSessionData(transport) {
@@ -9845,7 +9773,7 @@ function cleanupSessionDataForTransport(transport) {
9845
9773
  }
9846
9774
  }
9847
9775
 
9848
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/sessionExtraction.js
9776
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/sessionExtraction.js
9849
9777
  function extractPartyInfo(obj) {
9850
9778
  const partyInfo = {};
9851
9779
  if (isValidContentItem(obj)) {
@@ -9983,7 +9911,7 @@ function buildTransportAttributes(transport, extra) {
9983
9911
  return attributes;
9984
9912
  }
9985
9913
 
9986
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/correlation.js
9914
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/correlation.js
9987
9915
  var sessionToSpanMap = /* @__PURE__ */ new Map();
9988
9916
  var statelessSpanMap = /* @__PURE__ */ new WeakMap();
9989
9917
  function getOrCreateSpanMap(transport) {
@@ -10067,7 +9995,7 @@ function cleanupPendingSpansForTransport(transport) {
10067
9995
  }
10068
9996
  }
10069
9997
 
10070
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/methodConfig.js
9998
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/methodConfig.js
10071
9999
  var METHOD_CONFIGS = {
10072
10000
  "tools/call": {
10073
10001
  targetField: "name",
@@ -10130,7 +10058,7 @@ function getRequestArguments(method, params) {
10130
10058
  return args;
10131
10059
  }
10132
10060
 
10133
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/attributeExtraction.js
10061
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/attributeExtraction.js
10134
10062
  function formatLoggingData(data) {
10135
10063
  return typeof data === "string" ? data : JSON.stringify(data);
10136
10064
  }
@@ -10205,7 +10133,7 @@ function buildTypeSpecificAttributes(type, message, params, recordInputs) {
10205
10133
  return getNotificationAttributes(message.method, params || {}, recordInputs);
10206
10134
  }
10207
10135
 
10208
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/piiFiltering.js
10136
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/piiFiltering.js
10209
10137
  var NETWORK_PII_ATTRIBUTES = /* @__PURE__ */ new Set([CLIENT_ADDRESS_ATTRIBUTE, CLIENT_PORT_ATTRIBUTE, MCP_RESOURCE_URI_ATTRIBUTE]);
10210
10138
  function isNetworkPiiAttribute(key) {
10211
10139
  return NETWORK_PII_ATTRIBUTES.has(key);
@@ -10225,7 +10153,7 @@ function filterMcpPiiFromSpanData(spanData, sendDefaultPii) {
10225
10153
  );
10226
10154
  }
10227
10155
 
10228
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/spans.js
10156
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/spans.js
10229
10157
  function createSpanName(method, target) {
10230
10158
  return target ? `${method} ${target}` : method;
10231
10159
  }
@@ -10322,7 +10250,7 @@ function buildMcpServerSpanConfig(jsonRpcMessage, transport, extra, options) {
10322
10250
  };
10323
10251
  }
10324
10252
 
10325
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/transport.js
10253
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/transport.js
10326
10254
  function wrapTransportOnMessage(transport, options) {
10327
10255
  if (transport.onmessage) {
10328
10256
  fill(transport, "onmessage", (originalOnMessage) => {
@@ -10439,7 +10367,7 @@ function captureTransportError(error3) {
10439
10367
  }
10440
10368
  }
10441
10369
 
10442
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/index.js
10370
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/mcp-server/index.js
10443
10371
  var wrappedMcpServerInstances = /* @__PURE__ */ new WeakSet();
10444
10372
  function wrapMcpServerWithSentry(mcpServerInstance, options) {
10445
10373
  if (wrappedMcpServerInstances.has(mcpServerInstance)) {
@@ -10474,7 +10402,7 @@ function wrapMcpServerWithSentry(mcpServerInstance, options) {
10474
10402
  return mcpServerInstance;
10475
10403
  }
10476
10404
 
10477
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/feedback.js
10405
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/feedback.js
10478
10406
  function captureFeedback(params, hint = {}, scope = getCurrentScope()) {
10479
10407
  const { message, name, email, url, source, associatedEventId, tags } = params;
10480
10408
  const feedbackEvent = {
@@ -10500,7 +10428,7 @@ function captureFeedback(params, hint = {}, scope = getCurrentScope()) {
10500
10428
  return eventId;
10501
10429
  }
10502
10430
 
10503
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/logs/public-api.js
10431
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/logs/public-api.js
10504
10432
  var public_api_exports = {};
10505
10433
  __export(public_api_exports, {
10506
10434
  debug: () => debug2,
@@ -10533,7 +10461,7 @@ function fatal(message, attributes, { scope } = {}) {
10533
10461
  captureLog("fatal", message, attributes, scope);
10534
10462
  }
10535
10463
 
10536
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/logs/utils.js
10464
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/logs/utils.js
10537
10465
  function formatConsoleArgs2(values, normalizeDepth, normalizeMaxBreadth) {
10538
10466
  return "util" in GLOBAL_OBJ && typeof GLOBAL_OBJ.util.format === "function" ? GLOBAL_OBJ.util.format(...values) : safeJoinConsoleArgs(values, normalizeDepth, normalizeMaxBreadth);
10539
10467
  }
@@ -10555,7 +10483,7 @@ function createConsoleTemplateAttributes(firstArg, followingArgs) {
10555
10483
  return attributes;
10556
10484
  }
10557
10485
 
10558
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/logs/console-integration.js
10486
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/logs/console-integration.js
10559
10487
  var INTEGRATION_NAME13 = "ConsoleLogs";
10560
10488
  var DEFAULT_ATTRIBUTES = {
10561
10489
  [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: "auto.log.console"
@@ -10601,7 +10529,7 @@ var _consoleLoggingIntegration = ((options = {}) => {
10601
10529
  });
10602
10530
  var consoleLoggingIntegration = defineIntegration(_consoleLoggingIntegration);
10603
10531
 
10604
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/metrics/public-api.js
10532
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/metrics/public-api.js
10605
10533
  var public_api_exports2 = {};
10606
10534
  __export(public_api_exports2, {
10607
10535
  count: () => count,
@@ -10624,7 +10552,7 @@ function distribution(name, value, options) {
10624
10552
  captureMetric("distribution", name, value, options);
10625
10553
  }
10626
10554
 
10627
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/integrations/consola.js
10555
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/integrations/consola.js
10628
10556
  var DEFAULT_CAPTURED_LEVELS = ["trace", "debug", "info", "warn", "error", "fatal"];
10629
10557
  function createConsolaReporter(options = {}) {
10630
10558
  const levels = new Set(options.levels ?? DEFAULT_CAPTURED_LEVELS);
@@ -10774,7 +10702,7 @@ function processExtractedAttributes(extractionResult, normalizeDepth, normalizeM
10774
10702
  };
10775
10703
  }
10776
10704
 
10777
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/ai/gen-ai-attributes.js
10705
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/ai/gen-ai-attributes.js
10778
10706
  var GEN_AI_PROMPT_ATTRIBUTE = "gen_ai.prompt";
10779
10707
  var GEN_AI_SYSTEM_ATTRIBUTE = "gen_ai.system";
10780
10708
  var GEN_AI_REQUEST_MODEL_ATTRIBUTE = "gen_ai.request.model";
@@ -10797,7 +10725,6 @@ var GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE = "gen_ai.usage.total_tokens";
10797
10725
  var GEN_AI_OPERATION_NAME_ATTRIBUTE = "gen_ai.operation.name";
10798
10726
  var GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE = "sentry.sdk_meta.gen_ai.input.messages.original_length";
10799
10727
  var GEN_AI_INPUT_MESSAGES_ATTRIBUTE = "gen_ai.input.messages";
10800
- var GEN_AI_OUTPUT_MESSAGES_ATTRIBUTE = "gen_ai.output.messages";
10801
10728
  var GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE = "gen_ai.system_instructions";
10802
10729
  var GEN_AI_RESPONSE_TEXT_ATTRIBUTE = "gen_ai.response.text";
10803
10730
  var GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE = "gen_ai.request.available_tools";
@@ -10816,8 +10743,8 @@ var GEN_AI_STREAM_TEXT_DO_STREAM_OPERATION_ATTRIBUTE = "gen_ai.stream_text";
10816
10743
  var GEN_AI_GENERATE_OBJECT_DO_GENERATE_OPERATION_ATTRIBUTE = "gen_ai.generate_object";
10817
10744
  var GEN_AI_STREAM_OBJECT_DO_STREAM_OPERATION_ATTRIBUTE = "gen_ai.stream_object";
10818
10745
  var GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE = "gen_ai.embeddings.input";
10819
- var GEN_AI_EMBED_DO_EMBED_OPERATION_ATTRIBUTE = "gen_ai.embeddings";
10820
- var GEN_AI_EMBED_MANY_DO_EMBED_OPERATION_ATTRIBUTE = "gen_ai.embeddings";
10746
+ var GEN_AI_EMBED_DO_EMBED_OPERATION_ATTRIBUTE = "gen_ai.embed";
10747
+ var GEN_AI_EMBED_MANY_DO_EMBED_OPERATION_ATTRIBUTE = "gen_ai.embed_many";
10821
10748
  var GEN_AI_RERANK_DO_RERANK_OPERATION_ATTRIBUTE = "gen_ai.rerank";
10822
10749
  var GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE = "gen_ai.execute_tool";
10823
10750
  var GEN_AI_TOOL_NAME_ATTRIBUTE = "gen_ai.tool.name";
@@ -10825,17 +10752,28 @@ var GEN_AI_TOOL_CALL_ID_ATTRIBUTE = "gen_ai.tool.call.id";
10825
10752
  var GEN_AI_TOOL_TYPE_ATTRIBUTE = "gen_ai.tool.type";
10826
10753
  var GEN_AI_TOOL_INPUT_ATTRIBUTE = "gen_ai.tool.input";
10827
10754
  var GEN_AI_TOOL_OUTPUT_ATTRIBUTE = "gen_ai.tool.output";
10828
- var GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE = "gen_ai.tool.description";
10829
10755
  var OPENAI_RESPONSE_ID_ATTRIBUTE = "openai.response.id";
10830
10756
  var OPENAI_RESPONSE_MODEL_ATTRIBUTE = "openai.response.model";
10831
10757
  var OPENAI_RESPONSE_TIMESTAMP_ATTRIBUTE = "openai.response.timestamp";
10832
10758
  var OPENAI_USAGE_COMPLETION_TOKENS_ATTRIBUTE = "openai.usage.completion_tokens";
10833
10759
  var OPENAI_USAGE_PROMPT_TOKENS_ATTRIBUTE = "openai.usage.prompt_tokens";
10760
+ var OPENAI_OPERATIONS = {
10761
+ CHAT: "chat",
10762
+ EMBEDDINGS: "embeddings"
10763
+ };
10834
10764
  var ANTHROPIC_AI_RESPONSE_TIMESTAMP_ATTRIBUTE = "anthropic.response.timestamp";
10835
10765
 
10836
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/vercel-ai/constants.js
10766
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/vercel-ai/constants.js
10837
10767
  var toolCallSpanContextMap = /* @__PURE__ */ new Map();
10838
- var INVOKE_AGENT_OPS = /* @__PURE__ */ new Set(["ai.generateText", "ai.streamText", "ai.generateObject", "ai.streamObject"]);
10768
+ var INVOKE_AGENT_OPS = /* @__PURE__ */ new Set([
10769
+ "ai.generateText",
10770
+ "ai.streamText",
10771
+ "ai.generateObject",
10772
+ "ai.streamObject",
10773
+ "ai.embed",
10774
+ "ai.embedMany",
10775
+ "ai.rerank"
10776
+ ]);
10839
10777
  var GENERATE_CONTENT_OPS = /* @__PURE__ */ new Set([
10840
10778
  "ai.generateText.doGenerate",
10841
10779
  "ai.streamText.doStream",
@@ -10845,15 +10783,15 @@ var GENERATE_CONTENT_OPS = /* @__PURE__ */ new Set([
10845
10783
  var EMBEDDINGS_OPS = /* @__PURE__ */ new Set(["ai.embed.doEmbed", "ai.embedMany.doEmbed"]);
10846
10784
  var RERANK_OPS = /* @__PURE__ */ new Set(["ai.rerank.doRerank"]);
10847
10785
  var DO_SPAN_NAME_PREFIX = {
10848
- "ai.embed.doEmbed": "embeddings",
10849
- "ai.embedMany.doEmbed": "embeddings",
10786
+ "ai.embed.doEmbed": "embed",
10787
+ "ai.embedMany.doEmbed": "embed_many",
10850
10788
  "ai.rerank.doRerank": "rerank"
10851
10789
  };
10852
10790
 
10853
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/ai/mediaStripping.js
10791
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/ai/mediaStripping.js
10854
10792
  function isContentMedia(part) {
10855
10793
  if (!part || typeof part !== "object") return false;
10856
- return isContentMediaSource(part) || hasInlineData(part) || hasImageUrl(part) || hasInputAudio(part) || hasFileData(part) || hasMediaTypeData(part) || hasVercelFileData(part) || hasVercelImageData(part) || hasBlobOrBase64Type(part) || hasB64Json(part) || hasImageGenerationResult(part) || hasDataUri(part);
10794
+ return isContentMediaSource(part) || hasInlineData(part) || hasImageUrl(part) || hasInputAudio(part) || hasFileData(part) || hasMediaTypeData(part) || hasBlobOrBase64Type(part) || hasB64Json(part) || hasImageGenerationResult(part) || hasDataUri(part);
10857
10795
  }
10858
10796
  function hasImageUrl(part) {
10859
10797
  if (!("image_url" in part)) return false;
@@ -10878,14 +10816,6 @@ function hasFileData(part) {
10878
10816
  function hasMediaTypeData(part) {
10879
10817
  return "media_type" in part && typeof part.media_type === "string" && "data" in part;
10880
10818
  }
10881
- function hasVercelFileData(part) {
10882
- return "type" in part && part.type === "file" && "mediaType" in part && typeof part.mediaType === "string" && "data" in part && typeof part.data === "string" && // Only strip base64/binary data, not HTTP/HTTPS URLs which should be preserved as references
10883
- !part.data.startsWith("http://") && !part.data.startsWith("https://");
10884
- }
10885
- function hasVercelImageData(part) {
10886
- return "type" in part && part.type === "image" && "image" in part && typeof part.image === "string" && // Only strip base64/data URIs, not HTTP/HTTPS URLs which should be preserved as references
10887
- !part.image.startsWith("http://") && !part.image.startsWith("https://");
10888
- }
10889
10819
  function hasBlobOrBase64Type(part) {
10890
10820
  return "type" in part && (part.type === "blob" || part.type === "base64");
10891
10821
  }
@@ -10899,7 +10829,7 @@ function hasDataUri(part) {
10899
10829
  return "uri" in part && typeof part.uri === "string" && part.uri.startsWith("data:");
10900
10830
  }
10901
10831
  var REMOVED_STRING = "[Blob substitute]";
10902
- var MEDIA_FIELDS = ["image_url", "data", "content", "b64_json", "result", "uri", "image"];
10832
+ var MEDIA_FIELDS = ["image_url", "data", "content", "b64_json", "result", "uri"];
10903
10833
  function stripInlineMediaFromSingleMessage(part) {
10904
10834
  const strip = { ...part };
10905
10835
  if (isContentMedia(strip.source)) {
@@ -10923,7 +10853,7 @@ function stripInlineMediaFromSingleMessage(part) {
10923
10853
  return strip;
10924
10854
  }
10925
10855
 
10926
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/ai/messageTruncation.js
10856
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/ai/messageTruncation.js
10927
10857
  var DEFAULT_GEN_AI_MESSAGES_BYTE_LIMIT = 2e4;
10928
10858
  var utf8Bytes = (text) => {
10929
10859
  return new TextEncoder().encode(text).length;
@@ -10951,20 +10881,18 @@ function truncateTextByBytes(text, maxBytes) {
10951
10881
  }
10952
10882
  return bestFit;
10953
10883
  }
10954
- function getItemText(item) {
10955
- if (typeof item === "string") {
10956
- return item;
10957
- }
10958
- if ("text" in item && typeof item.text === "string") {
10959
- return item.text;
10884
+ function getPartText(part) {
10885
+ if (typeof part === "string") {
10886
+ return part;
10960
10887
  }
10888
+ if ("text" in part) return part.text;
10961
10889
  return "";
10962
10890
  }
10963
- function withItemText(item, text) {
10964
- if (typeof item === "string") {
10891
+ function withPartText(part, text) {
10892
+ if (typeof part === "string") {
10965
10893
  return text;
10966
10894
  }
10967
- return { ...item, text };
10895
+ return { ...part, text };
10968
10896
  }
10969
10897
  function isContentMessage(message) {
10970
10898
  return message !== null && typeof message === "object" && "content" in message && typeof message.content === "string";
@@ -10985,47 +10913,35 @@ function truncateContentMessage(message, maxBytes) {
10985
10913
  const truncatedContent = truncateTextByBytes(message.content, availableForContent);
10986
10914
  return [{ ...message, content: truncatedContent }];
10987
10915
  }
10988
- function getArrayItems(message) {
10989
- if ("parts" in message && Array.isArray(message.parts)) {
10990
- return { key: "parts", items: message.parts };
10991
- }
10992
- if ("content" in message && Array.isArray(message.content)) {
10993
- return { key: "content", items: message.content };
10994
- }
10995
- return { key: null, items: [] };
10996
- }
10997
- function truncateArrayMessage(message, maxBytes) {
10998
- const { key, items } = getArrayItems(message);
10999
- if (key === null || items.length === 0) {
11000
- return [];
11001
- }
11002
- const emptyItems = items.map((item) => withItemText(item, ""));
11003
- const overhead = jsonBytes({ ...message, [key]: emptyItems });
10916
+ function truncatePartsMessage(message, maxBytes) {
10917
+ const { parts } = message;
10918
+ const emptyParts = parts.map((part) => withPartText(part, ""));
10919
+ const overhead = jsonBytes({ ...message, parts: emptyParts });
11004
10920
  let remainingBytes = maxBytes - overhead;
11005
10921
  if (remainingBytes <= 0) {
11006
10922
  return [];
11007
10923
  }
11008
- const includedItems = [];
11009
- for (const item of items) {
11010
- const text = getItemText(item);
10924
+ const includedParts = [];
10925
+ for (const part of parts) {
10926
+ const text = getPartText(part);
11011
10927
  const textSize = utf8Bytes(text);
11012
10928
  if (textSize <= remainingBytes) {
11013
- includedItems.push(item);
10929
+ includedParts.push(part);
11014
10930
  remainingBytes -= textSize;
11015
- } else if (includedItems.length === 0) {
10931
+ } else if (includedParts.length === 0) {
11016
10932
  const truncated = truncateTextByBytes(text, remainingBytes);
11017
10933
  if (truncated) {
11018
- includedItems.push(withItemText(item, truncated));
10934
+ includedParts.push(withPartText(part, truncated));
11019
10935
  }
11020
10936
  break;
11021
10937
  } else {
11022
10938
  break;
11023
10939
  }
11024
10940
  }
11025
- if (includedItems.length <= 0) {
10941
+ if (includedParts.length <= 0) {
11026
10942
  return [];
11027
10943
  } else {
11028
- return [{ ...message, [key]: includedItems }];
10944
+ return [{ ...message, parts: includedParts }];
11029
10945
  }
11030
10946
  }
11031
10947
  function truncateSingleMessage(message, maxBytes) {
@@ -11040,8 +10956,8 @@ function truncateSingleMessage(message, maxBytes) {
11040
10956
  if (isContentMessage(message)) {
11041
10957
  return truncateContentMessage(message, maxBytes);
11042
10958
  }
11043
- if (isContentArrayMessage(message) || isPartsMessage(message)) {
11044
- return truncateArrayMessage(message, maxBytes);
10959
+ if (isPartsMessage(message)) {
10960
+ return truncatePartsMessage(message, maxBytes);
11045
10961
  }
11046
10962
  return [];
11047
10963
  }
@@ -11098,14 +11014,27 @@ function truncateGenAiStringInput(input) {
11098
11014
  return truncateTextByBytes(input, DEFAULT_GEN_AI_MESSAGES_BYTE_LIMIT);
11099
11015
  }
11100
11016
 
11101
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/ai/utils.js
11102
- function resolveAIRecordingOptions(options) {
11103
- const sendDefaultPii = Boolean(getClient()?.getOptions().sendDefaultPii);
11104
- return {
11105
- ...options,
11106
- recordInputs: options?.recordInputs ?? sendDefaultPii,
11107
- recordOutputs: options?.recordOutputs ?? sendDefaultPii
11108
- };
11017
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/ai/utils.js
11018
+ function getFinalOperationName(methodPath) {
11019
+ if (methodPath.includes("messages")) {
11020
+ return "chat";
11021
+ }
11022
+ if (methodPath.includes("completions")) {
11023
+ return "text_completion";
11024
+ }
11025
+ if (methodPath.includes("generateContent")) {
11026
+ return "generate_content";
11027
+ }
11028
+ if (methodPath.includes("models")) {
11029
+ return "models";
11030
+ }
11031
+ if (methodPath.includes("chat")) {
11032
+ return "chat";
11033
+ }
11034
+ return methodPath.split(".").pop() || "unknown";
11035
+ }
11036
+ function getSpanOperation(methodPath) {
11037
+ return `gen_ai.${getFinalOperationName(methodPath)}`;
11109
11038
  }
11110
11039
  function buildMethodPath(currentPath, prop) {
11111
11040
  return currentPath ? `${currentPath}.${prop}` : prop;
@@ -11157,56 +11086,15 @@ function extractSystemInstructions(messages) {
11157
11086
  const filteredMessages = [...messages.slice(0, systemMessageIndex), ...messages.slice(systemMessageIndex + 1)];
11158
11087
  return { systemInstructions, filteredMessages };
11159
11088
  }
11160
- async function createWithResponseWrapper(originalWithResponse, instrumentedPromise, mechanismType) {
11161
- const safeOriginalWithResponse = originalWithResponse.catch((error3) => {
11162
- captureException(error3, {
11163
- mechanism: {
11164
- handled: false,
11165
- type: mechanismType
11166
- }
11167
- });
11168
- throw error3;
11169
- });
11170
- const instrumentedResult = await instrumentedPromise;
11171
- const originalWrapper = await safeOriginalWithResponse;
11172
- if (originalWrapper && typeof originalWrapper === "object" && "data" in originalWrapper) {
11173
- return {
11174
- ...originalWrapper,
11175
- data: instrumentedResult
11176
- };
11177
- }
11178
- return instrumentedResult;
11179
- }
11180
- function wrapPromiseWithMethods(originalPromiseLike, instrumentedPromise, mechanismType) {
11181
- if (!isThenable(originalPromiseLike)) {
11182
- return instrumentedPromise;
11183
- }
11184
- return new Proxy(originalPromiseLike, {
11185
- get(target, prop) {
11186
- const useInstrumentedPromise = prop in Promise.prototype || prop === Symbol.toStringTag;
11187
- const source = useInstrumentedPromise ? instrumentedPromise : target;
11188
- const value = Reflect.get(source, prop);
11189
- if (prop === "withResponse" && typeof value === "function") {
11190
- return function wrappedWithResponse() {
11191
- const originalWithResponse = value.call(target);
11192
- return createWithResponseWrapper(originalWithResponse, instrumentedPromise, mechanismType);
11193
- };
11194
- }
11195
- return typeof value === "function" ? value.bind(source) : value;
11196
- }
11197
- });
11198
- }
11199
11089
 
11200
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/vercel-ai/vercel-ai-attributes.js
11090
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/vercel-ai/vercel-ai-attributes.js
11201
11091
  var OPERATION_NAME_ATTRIBUTE = "operation.name";
11202
11092
  var AI_OPERATION_ID_ATTRIBUTE = "ai.operationId";
11203
11093
  var AI_PROMPT_ATTRIBUTE = "ai.prompt";
11204
11094
  var AI_SCHEMA_ATTRIBUTE = "ai.schema";
11205
11095
  var AI_RESPONSE_OBJECT_ATTRIBUTE = "ai.response.object";
11206
- var AI_VALUES_ATTRIBUTE = "ai.values";
11207
11096
  var AI_RESPONSE_TEXT_ATTRIBUTE = "ai.response.text";
11208
11097
  var AI_RESPONSE_TOOL_CALLS_ATTRIBUTE = "ai.response.toolCalls";
11209
- var AI_RESPONSE_FINISH_REASON_ATTRIBUTE = "ai.response.finishReason";
11210
11098
  var AI_PROMPT_MESSAGES_ATTRIBUTE = "ai.prompt.messages";
11211
11099
  var AI_PROMPT_TOOLS_ATTRIBUTE = "ai.prompt.tools";
11212
11100
  var AI_MODEL_ID_ATTRIBUTE = "ai.model.id";
@@ -11215,13 +11103,12 @@ var AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE = "ai.usage.cachedInputTokens";
11215
11103
  var AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE = "ai.telemetry.functionId";
11216
11104
  var AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE = "ai.usage.completionTokens";
11217
11105
  var AI_USAGE_PROMPT_TOKENS_ATTRIBUTE = "ai.usage.promptTokens";
11218
- var AI_USAGE_TOKENS_ATTRIBUTE = "ai.usage.tokens";
11219
11106
  var AI_TOOL_CALL_NAME_ATTRIBUTE = "ai.toolCall.name";
11220
11107
  var AI_TOOL_CALL_ID_ATTRIBUTE = "ai.toolCall.id";
11221
11108
  var AI_TOOL_CALL_ARGS_ATTRIBUTE = "ai.toolCall.args";
11222
11109
  var AI_TOOL_CALL_RESULT_ATTRIBUTE = "ai.toolCall.result";
11223
11110
 
11224
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/vercel-ai/utils.js
11111
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/vercel-ai/utils.js
11225
11112
  function accumulateTokensForParent(span, tokenAccumulator) {
11226
11113
  const parentSpanId = span.parent_span_id;
11227
11114
  if (!parentSpanId) {
@@ -11255,42 +11142,6 @@ function applyAccumulatedTokens(spanOrTrace, tokenAccumulator) {
11255
11142
  spanOrTrace.data["gen_ai.usage.total_tokens"] = accumulated.inputTokens + accumulated.outputTokens;
11256
11143
  }
11257
11144
  }
11258
- function buildToolDescriptionMap(spans) {
11259
- const toolDescriptions = /* @__PURE__ */ new Map();
11260
- for (const span of spans) {
11261
- const availableTools = span.data[GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE];
11262
- if (typeof availableTools !== "string") {
11263
- continue;
11264
- }
11265
- try {
11266
- const tools = JSON.parse(availableTools);
11267
- for (const tool of tools) {
11268
- if (tool.name && tool.description && !toolDescriptions.has(tool.name)) {
11269
- toolDescriptions.set(tool.name, tool.description);
11270
- }
11271
- }
11272
- } catch {
11273
- }
11274
- }
11275
- return toolDescriptions;
11276
- }
11277
- function applyToolDescriptionsAndTokens(spans, tokenAccumulator) {
11278
- const toolDescriptions = buildToolDescriptionMap(spans);
11279
- for (const span of spans) {
11280
- if (span.op === "gen_ai.execute_tool") {
11281
- const toolName = span.data[GEN_AI_TOOL_NAME_ATTRIBUTE];
11282
- if (typeof toolName === "string") {
11283
- const description = toolDescriptions.get(toolName);
11284
- if (description) {
11285
- span.data[GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE] = description;
11286
- }
11287
- }
11288
- }
11289
- if (span.op === "gen_ai.invoke_agent") {
11290
- applyAccumulatedTokens(span, tokenAccumulator);
11291
- }
11292
- }
11293
- }
11294
11145
  function _INTERNAL_getSpanContextForToolCallId(toolCallId) {
11295
11146
  return toolCallSpanContextMap.get(toolCallId);
11296
11147
  }
@@ -11393,6 +11244,9 @@ function getSpanOpFromName(name) {
11393
11244
  case "ai.streamText":
11394
11245
  case "ai.generateObject":
11395
11246
  case "ai.streamObject":
11247
+ case "ai.embed":
11248
+ case "ai.embedMany":
11249
+ case "ai.rerank":
11396
11250
  return GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE;
11397
11251
  case "ai.generateText.doGenerate":
11398
11252
  return GEN_AI_GENERATE_TEXT_DO_GENERATE_OPERATION_ATTRIBUTE;
@@ -11418,7 +11272,7 @@ function getSpanOpFromName(name) {
11418
11272
  }
11419
11273
  }
11420
11274
 
11421
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/vercel-ai/index.js
11275
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/vercel-ai/index.js
11422
11276
  function mapVercelAiOperationName(operationName) {
11423
11277
  if (INVOKE_AGENT_OPS.has(operationName)) {
11424
11278
  return "invoke_agent";
@@ -11458,95 +11312,35 @@ function vercelAiEventProcessor(event) {
11458
11312
  processEndedVercelAiSpan(span);
11459
11313
  accumulateTokensForParent(span, tokenAccumulator);
11460
11314
  }
11461
- applyToolDescriptionsAndTokens(event.spans, tokenAccumulator);
11315
+ for (const span of event.spans) {
11316
+ if (span.op !== "gen_ai.invoke_agent") {
11317
+ continue;
11318
+ }
11319
+ applyAccumulatedTokens(span, tokenAccumulator);
11320
+ }
11462
11321
  const trace2 = event.contexts?.trace;
11463
- if (trace2?.op === "gen_ai.invoke_agent") {
11322
+ if (trace2 && trace2.op === "gen_ai.invoke_agent") {
11464
11323
  applyAccumulatedTokens(trace2, tokenAccumulator);
11465
11324
  }
11466
11325
  }
11467
11326
  return event;
11468
11327
  }
11469
- function normalizeFinishReason(finishReason) {
11470
- if (typeof finishReason !== "string") {
11471
- return "stop";
11472
- }
11473
- switch (finishReason) {
11474
- case "tool-calls":
11475
- return "tool_call";
11476
- case "stop":
11477
- case "length":
11478
- case "content_filter":
11479
- case "error":
11480
- return finishReason;
11481
- default:
11482
- return finishReason;
11483
- }
11484
- }
11485
- function buildOutputMessages(attributes) {
11486
- const responseText = attributes[AI_RESPONSE_TEXT_ATTRIBUTE];
11487
- const responseToolCalls = attributes[AI_RESPONSE_TOOL_CALLS_ATTRIBUTE];
11488
- const finishReason = attributes[AI_RESPONSE_FINISH_REASON_ATTRIBUTE];
11489
- if (responseText == null && responseToolCalls == null) {
11490
- return;
11491
- }
11492
- const parts = [];
11493
- if (typeof responseText === "string" && responseText.length > 0) {
11494
- parts.push({
11495
- type: "text",
11496
- content: responseText
11497
- });
11498
- }
11499
- if (responseToolCalls != null) {
11500
- try {
11501
- const toolCalls = typeof responseToolCalls === "string" ? JSON.parse(responseToolCalls) : responseToolCalls;
11502
- if (Array.isArray(toolCalls)) {
11503
- for (const toolCall of toolCalls) {
11504
- const args = toolCall.input ?? toolCall.args;
11505
- parts.push({
11506
- type: "tool_call",
11507
- id: toolCall.toolCallId,
11508
- name: toolCall.toolName,
11509
- // Handle undefined args: JSON.stringify(undefined) returns undefined, not a string,
11510
- // which would cause the property to be omitted from the final JSON output
11511
- arguments: typeof args === "string" ? args : JSON.stringify(args ?? {})
11512
- });
11513
- }
11514
- delete attributes[AI_RESPONSE_TOOL_CALLS_ATTRIBUTE];
11515
- }
11516
- } catch {
11517
- }
11518
- }
11519
- if (parts.length > 0) {
11520
- const outputMessage = {
11521
- role: "assistant",
11522
- parts,
11523
- finish_reason: normalizeFinishReason(finishReason)
11524
- };
11525
- attributes[GEN_AI_OUTPUT_MESSAGES_ATTRIBUTE] = JSON.stringify([outputMessage]);
11526
- delete attributes[AI_RESPONSE_TEXT_ATTRIBUTE];
11527
- }
11528
- }
11529
11328
  function processEndedVercelAiSpan(span) {
11530
11329
  const { data: attributes, origin } = span;
11531
11330
  if (origin !== "auto.vercelai.otel") {
11532
11331
  return;
11533
11332
  }
11534
- if (span.status && span.status !== "ok") {
11535
- span.status = "internal_error";
11536
- }
11537
11333
  renameAttributeKey(attributes, AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE, GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE);
11538
11334
  renameAttributeKey(attributes, AI_USAGE_PROMPT_TOKENS_ATTRIBUTE, GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE);
11539
11335
  renameAttributeKey(attributes, AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE, GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE);
11540
11336
  renameAttributeKey(attributes, "ai.usage.inputTokens", GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE);
11541
11337
  renameAttributeKey(attributes, "ai.usage.outputTokens", GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE);
11542
- renameAttributeKey(attributes, AI_USAGE_TOKENS_ATTRIBUTE, GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE);
11543
11338
  renameAttributeKey(attributes, "ai.response.avgOutputTokensPerSecond", "ai.response.avgCompletionTokensPerSecond");
11544
11339
  if (typeof attributes[GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE] === "number" && typeof attributes[GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE] === "number") {
11545
11340
  attributes[GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE] = attributes[GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE] + attributes[GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE];
11546
11341
  }
11547
- if (typeof attributes[GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE] === "number") {
11548
- const outputTokens = typeof attributes[GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE] === "number" ? attributes[GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE] : 0;
11549
- attributes[GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE] = outputTokens + attributes[GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE];
11342
+ if (typeof attributes[GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE] === "number" && typeof attributes[GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE] === "number") {
11343
+ attributes[GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE] = attributes[GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE] + attributes[GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE];
11550
11344
  }
11551
11345
  if (attributes[AI_PROMPT_TOOLS_ATTRIBUTE] && Array.isArray(attributes[AI_PROMPT_TOOLS_ATTRIBUTE])) {
11552
11346
  attributes[AI_PROMPT_TOOLS_ATTRIBUTE] = convertAvailableToolsToJsonString(
@@ -11559,23 +11353,14 @@ function processEndedVercelAiSpan(span) {
11559
11353
  delete attributes[OPERATION_NAME_ATTRIBUTE];
11560
11354
  }
11561
11355
  renameAttributeKey(attributes, AI_PROMPT_MESSAGES_ATTRIBUTE, GEN_AI_INPUT_MESSAGES_ATTRIBUTE);
11562
- buildOutputMessages(attributes);
11356
+ renameAttributeKey(attributes, AI_RESPONSE_TEXT_ATTRIBUTE, "gen_ai.response.text");
11357
+ renameAttributeKey(attributes, AI_RESPONSE_TOOL_CALLS_ATTRIBUTE, "gen_ai.response.tool_calls");
11563
11358
  renameAttributeKey(attributes, AI_RESPONSE_OBJECT_ATTRIBUTE, "gen_ai.response.object");
11564
11359
  renameAttributeKey(attributes, AI_PROMPT_TOOLS_ATTRIBUTE, "gen_ai.request.available_tools");
11565
11360
  renameAttributeKey(attributes, AI_TOOL_CALL_ARGS_ATTRIBUTE, GEN_AI_TOOL_INPUT_ATTRIBUTE);
11566
11361
  renameAttributeKey(attributes, AI_TOOL_CALL_RESULT_ATTRIBUTE, GEN_AI_TOOL_OUTPUT_ATTRIBUTE);
11567
11362
  renameAttributeKey(attributes, AI_SCHEMA_ATTRIBUTE, "gen_ai.request.schema");
11568
11363
  renameAttributeKey(attributes, AI_MODEL_ID_ATTRIBUTE, GEN_AI_REQUEST_MODEL_ATTRIBUTE);
11569
- if (Array.isArray(attributes[AI_VALUES_ATTRIBUTE])) {
11570
- const parsed = attributes[AI_VALUES_ATTRIBUTE].map((v) => {
11571
- try {
11572
- return JSON.parse(v);
11573
- } catch {
11574
- return v;
11575
- }
11576
- });
11577
- attributes[GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE] = parsed.length === 1 ? parsed[0] : JSON.stringify(parsed);
11578
- }
11579
11364
  addProviderMetadataToAttributes(attributes);
11580
11365
  for (const key of Object.keys(attributes)) {
11581
11366
  if (key.startsWith("ai.")) {
@@ -11668,9 +11453,7 @@ function addProviderMetadataToAttributes(attributes) {
11668
11453
  "gen_ai.usage.output_tokens.prediction_rejected",
11669
11454
  openaiMetadata.rejectedPredictionTokens
11670
11455
  );
11671
- if (!attributes["gen_ai.conversation.id"]) {
11672
- setAttributeIfDefined(attributes, "gen_ai.conversation.id", openaiMetadata.responseId);
11673
- }
11456
+ setAttributeIfDefined(attributes, "gen_ai.conversation.id", openaiMetadata.responseId);
11674
11457
  }
11675
11458
  if (providerMetadataObject.anthropic) {
11676
11459
  const cachedInputTokens = providerMetadataObject.anthropic.usage?.cache_read_input_tokens ?? providerMetadataObject.anthropic.cacheReadInputTokens;
@@ -11712,16 +11495,16 @@ function setAttributeIfDefined(attributes, key, value) {
11712
11495
  }
11713
11496
  }
11714
11497
 
11715
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/openai/constants.js
11498
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/openai/constants.js
11716
11499
  var OPENAI_INTEGRATION_NAME = "OpenAI";
11717
- var OPENAI_METHOD_REGISTRY = {
11718
- "responses.create": { operation: "chat" },
11719
- "chat.completions.create": { operation: "chat" },
11720
- "embeddings.create": { operation: "embeddings" },
11500
+ var INSTRUMENTED_METHODS = [
11501
+ "responses.create",
11502
+ "chat.completions.create",
11503
+ "embeddings.create",
11721
11504
  // Conversations API - for conversation state management
11722
11505
  // https://platform.openai.com/docs/guides/conversation-state
11723
- "conversations.create": { operation: "chat" }
11724
- };
11506
+ "conversations.create"
11507
+ ];
11725
11508
  var RESPONSES_TOOL_CALL_EVENT_TYPES = [
11726
11509
  "response.output_item.added",
11727
11510
  "response.function_call_arguments.delta",
@@ -11739,7 +11522,31 @@ var RESPONSE_EVENT_TYPES = [
11739
11522
  ...RESPONSES_TOOL_CALL_EVENT_TYPES
11740
11523
  ];
11741
11524
 
11742
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/openai/utils.js
11525
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/openai/utils.js
11526
+ function getOperationName(methodPath) {
11527
+ if (methodPath.includes("chat.completions")) {
11528
+ return OPENAI_OPERATIONS.CHAT;
11529
+ }
11530
+ if (methodPath.includes("responses")) {
11531
+ return OPENAI_OPERATIONS.CHAT;
11532
+ }
11533
+ if (methodPath.includes("embeddings")) {
11534
+ return OPENAI_OPERATIONS.EMBEDDINGS;
11535
+ }
11536
+ if (methodPath.includes("conversations")) {
11537
+ return OPENAI_OPERATIONS.CHAT;
11538
+ }
11539
+ return methodPath.split(".").pop() || "unknown";
11540
+ }
11541
+ function getSpanOperation2(methodPath) {
11542
+ return `gen_ai.${getOperationName(methodPath)}`;
11543
+ }
11544
+ function shouldInstrument(methodPath) {
11545
+ return INSTRUMENTED_METHODS.includes(methodPath);
11546
+ }
11547
+ function buildMethodPath2(currentPath, prop) {
11548
+ return currentPath ? `${currentPath}.${prop}` : prop;
11549
+ }
11743
11550
  function isChatCompletionResponse(response) {
11744
11551
  return response !== null && typeof response === "object" && "object" in response && response.object === "chat.completion";
11745
11552
  }
@@ -11808,10 +11615,7 @@ function addResponsesApiAttributes(span, response, recordOutputs) {
11808
11615
  const responseWithOutput = response;
11809
11616
  if (Array.isArray(responseWithOutput.output) && responseWithOutput.output.length > 0) {
11810
11617
  const functionCalls = responseWithOutput.output.filter(
11811
- (item) => (
11812
- // oxlint-disable-next-line typescript/prefer-optional-chain
11813
- typeof item === "object" && item !== null && item.type === "function_call"
11814
- )
11618
+ (item) => typeof item === "object" && item !== null && item.type === "function_call"
11815
11619
  );
11816
11620
  if (functionCalls.length > 0) {
11817
11621
  span.setAttributes({
@@ -11903,7 +11707,7 @@ function extractRequestParameters(params) {
11903
11707
  return attributes;
11904
11708
  }
11905
11709
 
11906
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/openai/streaming.js
11710
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/openai/streaming.js
11907
11711
  function processChatCompletionToolCalls(toolCalls, state) {
11908
11712
  for (const toolCall of toolCalls) {
11909
11713
  const index = toolCall.index;
@@ -12045,7 +11849,7 @@ async function* instrumentStream(stream, span, recordOutputs) {
12045
11849
  }
12046
11850
  }
12047
11851
 
12048
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/openai/index.js
11852
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/openai/index.js
12049
11853
  function extractAvailableTools(params) {
12050
11854
  const tools = Array.isArray(params.tools) ? params.tools : [];
12051
11855
  const hasWebSearchOptions = params.web_search_options && typeof params.web_search_options === "object";
@@ -12061,10 +11865,10 @@ function extractAvailableTools(params) {
12061
11865
  return void 0;
12062
11866
  }
12063
11867
  }
12064
- function extractRequestAttributes(args, operationName) {
11868
+ function extractRequestAttributes(args, methodPath) {
12065
11869
  const attributes = {
12066
11870
  [GEN_AI_SYSTEM_ATTRIBUTE]: "openai",
12067
- [GEN_AI_OPERATION_NAME_ATTRIBUTE]: operationName,
11871
+ [GEN_AI_OPERATION_NAME_ATTRIBUTE]: getOperationName(methodPath),
12068
11872
  [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: "auto.ai.openai"
12069
11873
  };
12070
11874
  if (args.length > 0 && typeof args[0] === "object" && args[0] !== null) {
@@ -12100,7 +11904,7 @@ function addResponseAttributes(span, result, recordOutputs) {
12100
11904
  }
12101
11905
  }
12102
11906
  function addRequestAttributes(span, params, operationName) {
12103
- if (operationName === "embeddings" && "input" in params) {
11907
+ if (operationName === OPENAI_OPERATIONS.EMBEDDINGS && "input" in params) {
12104
11908
  const input = params.input;
12105
11909
  if (input == null) {
12106
11910
  return;
@@ -12133,16 +11937,55 @@ function addRequestAttributes(span, params, operationName) {
12133
11937
  span.setAttribute(GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE, 1);
12134
11938
  }
12135
11939
  }
12136
- function instrumentMethod(originalMethod, methodPath, instrumentedMethod, context, options) {
12137
- return function instrumentedCall(...args) {
12138
- const operationName = instrumentedMethod.operation;
12139
- const requestAttributes = extractRequestAttributes(args, operationName);
11940
+ async function createWithResponseWrapper(originalWithResponse, instrumentedPromise) {
11941
+ const safeOriginalWithResponse = originalWithResponse.catch((error3) => {
11942
+ captureException(error3, {
11943
+ mechanism: {
11944
+ handled: false,
11945
+ type: "auto.ai.openai"
11946
+ }
11947
+ });
11948
+ throw error3;
11949
+ });
11950
+ const instrumentedResult = await instrumentedPromise;
11951
+ const originalWrapper = await safeOriginalWithResponse;
11952
+ if (originalWrapper && typeof originalWrapper === "object" && "data" in originalWrapper) {
11953
+ return {
11954
+ ...originalWrapper,
11955
+ data: instrumentedResult
11956
+ };
11957
+ }
11958
+ return instrumentedResult;
11959
+ }
11960
+ function wrapPromiseWithMethods(originalPromiseLike, instrumentedPromise) {
11961
+ if (!isThenable(originalPromiseLike)) {
11962
+ return instrumentedPromise;
11963
+ }
11964
+ return new Proxy(originalPromiseLike, {
11965
+ get(target, prop) {
11966
+ const useInstrumentedPromise = prop in Promise.prototype || prop === Symbol.toStringTag;
11967
+ const source = useInstrumentedPromise ? instrumentedPromise : target;
11968
+ const value = Reflect.get(source, prop);
11969
+ if (prop === "withResponse" && typeof value === "function") {
11970
+ return function wrappedWithResponse() {
11971
+ const originalWithResponse = value.call(target);
11972
+ return createWithResponseWrapper(originalWithResponse, instrumentedPromise);
11973
+ };
11974
+ }
11975
+ return typeof value === "function" ? value.bind(source) : value;
11976
+ }
11977
+ });
11978
+ }
11979
+ function instrumentMethod(originalMethod, methodPath, context, options) {
11980
+ return function instrumentedMethod(...args) {
11981
+ const requestAttributes = extractRequestAttributes(args, methodPath);
12140
11982
  const model = requestAttributes[GEN_AI_REQUEST_MODEL_ATTRIBUTE] || "unknown";
11983
+ const operationName = getOperationName(methodPath);
12141
11984
  const params = args[0];
12142
11985
  const isStreamRequested = params && typeof params === "object" && params.stream === true;
12143
11986
  const spanConfig = {
12144
11987
  name: `${operationName} ${model}`,
12145
- op: `gen_ai.${operationName}`,
11988
+ op: getSpanOperation2(methodPath),
12146
11989
  attributes: requestAttributes
12147
11990
  };
12148
11991
  if (isStreamRequested) {
@@ -12174,7 +12017,7 @@ function instrumentMethod(originalMethod, methodPath, instrumentedMethod, contex
12174
12017
  }
12175
12018
  })();
12176
12019
  });
12177
- return wrapPromiseWithMethods(originalResult2, instrumentedPromise2, "auto.ai.openai");
12020
+ return wrapPromiseWithMethods(originalResult2, instrumentedPromise2);
12178
12021
  }
12179
12022
  let originalResult;
12180
12023
  const instrumentedPromise = startSpan(spanConfig, (span) => {
@@ -12199,23 +12042,16 @@ function instrumentMethod(originalMethod, methodPath, instrumentedMethod, contex
12199
12042
  }
12200
12043
  );
12201
12044
  });
12202
- return wrapPromiseWithMethods(originalResult, instrumentedPromise, "auto.ai.openai");
12045
+ return wrapPromiseWithMethods(originalResult, instrumentedPromise);
12203
12046
  };
12204
12047
  }
12205
12048
  function createDeepProxy(target, currentPath = "", options) {
12206
12049
  return new Proxy(target, {
12207
12050
  get(obj, prop) {
12208
12051
  const value = obj[prop];
12209
- const methodPath = buildMethodPath(currentPath, String(prop));
12210
- const instrumentedMethod = OPENAI_METHOD_REGISTRY[methodPath];
12211
- if (typeof value === "function" && instrumentedMethod) {
12212
- return instrumentMethod(
12213
- value,
12214
- methodPath,
12215
- instrumentedMethod,
12216
- obj,
12217
- options
12218
- );
12052
+ const methodPath = buildMethodPath2(currentPath, String(prop));
12053
+ if (typeof value === "function" && shouldInstrument(methodPath)) {
12054
+ return instrumentMethod(value, methodPath, obj, options);
12219
12055
  }
12220
12056
  if (typeof value === "function") {
12221
12057
  return value.bind(obj);
@@ -12228,79 +12064,20 @@ function createDeepProxy(target, currentPath = "", options) {
12228
12064
  });
12229
12065
  }
12230
12066
  function instrumentOpenAiClient(client, options) {
12231
- return createDeepProxy(client, "", resolveAIRecordingOptions(options));
12232
- }
12233
-
12234
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/anthropic-ai/constants.js
12235
- var ANTHROPIC_AI_INTEGRATION_NAME = "Anthropic_AI";
12236
- var ANTHROPIC_METHOD_REGISTRY = {
12237
- "messages.create": { operation: "chat" },
12238
- "messages.stream": { operation: "chat", streaming: true },
12239
- "messages.countTokens": { operation: "chat" },
12240
- "models.get": { operation: "models" },
12241
- "completions.create": { operation: "chat" },
12242
- "models.retrieve": { operation: "models" },
12243
- "beta.messages.create": { operation: "chat" }
12244
- };
12245
-
12246
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/anthropic-ai/utils.js
12247
- function setMessagesAttribute(span, messages) {
12248
- if (Array.isArray(messages) && messages.length === 0) {
12249
- return;
12250
- }
12251
- const { systemInstructions, filteredMessages } = extractSystemInstructions(messages);
12252
- if (systemInstructions) {
12253
- span.setAttributes({
12254
- [GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE]: systemInstructions
12255
- });
12256
- }
12257
- const filteredLength = Array.isArray(filteredMessages) ? filteredMessages.length : 1;
12258
- span.setAttributes({
12259
- [GEN_AI_INPUT_MESSAGES_ATTRIBUTE]: getTruncatedJsonString(filteredMessages),
12260
- [GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]: filteredLength
12261
- });
12262
- }
12263
- var ANTHROPIC_ERROR_TYPE_TO_SPAN_STATUS = {
12264
- invalid_request_error: "invalid_argument",
12265
- authentication_error: "unauthenticated",
12266
- permission_error: "permission_denied",
12267
- not_found_error: "not_found",
12268
- request_too_large: "failed_precondition",
12269
- rate_limit_error: "resource_exhausted",
12270
- api_error: "internal_error",
12271
- overloaded_error: "unavailable"
12272
- };
12273
- function mapAnthropicErrorToStatusMessage(errorType) {
12274
- if (!errorType) {
12275
- return "internal_error";
12276
- }
12277
- return ANTHROPIC_ERROR_TYPE_TO_SPAN_STATUS[errorType] || "internal_error";
12278
- }
12279
- function handleResponseError(span, response) {
12280
- if (response.error) {
12281
- span.setStatus({ code: SPAN_STATUS_ERROR, message: mapAnthropicErrorToStatusMessage(response.error.type) });
12282
- captureException(response.error, {
12283
- mechanism: {
12284
- handled: false,
12285
- type: "auto.ai.anthropic.anthropic_error"
12286
- }
12287
- });
12288
- }
12289
- }
12290
- function messagesFromParams(params) {
12291
- const { system, messages, input } = params;
12292
- const systemMessages = typeof system === "string" ? [{ role: "system", content: params.system }] : [];
12293
- const inputParamMessages = Array.isArray(input) ? input : input != null ? [input] : void 0;
12294
- const messagesParamMessages = Array.isArray(messages) ? messages : messages != null ? [messages] : [];
12295
- const userMessages = inputParamMessages ?? messagesParamMessages;
12296
- return [...systemMessages, ...userMessages];
12067
+ const sendDefaultPii = Boolean(getClient()?.getOptions().sendDefaultPii);
12068
+ const _options = {
12069
+ recordInputs: sendDefaultPii,
12070
+ recordOutputs: sendDefaultPii,
12071
+ ...options
12072
+ };
12073
+ return createDeepProxy(client, "", _options);
12297
12074
  }
12298
12075
 
12299
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/anthropic-ai/streaming.js
12076
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/anthropic-ai/streaming.js
12300
12077
  function isErrorEvent3(event, span) {
12301
12078
  if ("type" in event && typeof event.type === "string") {
12302
12079
  if (event.type === "error") {
12303
- span.setStatus({ code: SPAN_STATUS_ERROR, message: mapAnthropicErrorToStatusMessage(event.error?.type) });
12080
+ span.setStatus({ code: SPAN_STATUS_ERROR, message: event.error?.type ?? "internal_error" });
12304
12081
  captureException(event.error, {
12305
12082
  mechanism: {
12306
12083
  handled: false,
@@ -12509,18 +12286,70 @@ function instrumentMessageStream(stream, span, recordOutputs) {
12509
12286
  }
12510
12287
  });
12511
12288
  if (span.isRecording()) {
12512
- span.setStatus({ code: SPAN_STATUS_ERROR, message: "internal_error" });
12289
+ span.setStatus({ code: SPAN_STATUS_ERROR, message: "stream_error" });
12513
12290
  span.end();
12514
12291
  }
12515
12292
  });
12516
12293
  return stream;
12517
12294
  }
12518
12295
 
12519
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/anthropic-ai/index.js
12520
- function extractRequestAttributes2(args, methodPath, operationName) {
12296
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/anthropic-ai/constants.js
12297
+ var ANTHROPIC_AI_INTEGRATION_NAME = "Anthropic_AI";
12298
+ var ANTHROPIC_AI_INSTRUMENTED_METHODS = [
12299
+ "messages.create",
12300
+ "messages.stream",
12301
+ "messages.countTokens",
12302
+ "models.get",
12303
+ "completions.create",
12304
+ "models.retrieve",
12305
+ "beta.messages.create"
12306
+ ];
12307
+
12308
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/anthropic-ai/utils.js
12309
+ function shouldInstrument2(methodPath) {
12310
+ return ANTHROPIC_AI_INSTRUMENTED_METHODS.includes(methodPath);
12311
+ }
12312
+ function setMessagesAttribute(span, messages) {
12313
+ if (Array.isArray(messages) && messages.length === 0) {
12314
+ return;
12315
+ }
12316
+ const { systemInstructions, filteredMessages } = extractSystemInstructions(messages);
12317
+ if (systemInstructions) {
12318
+ span.setAttributes({
12319
+ [GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE]: systemInstructions
12320
+ });
12321
+ }
12322
+ const filteredLength = Array.isArray(filteredMessages) ? filteredMessages.length : 1;
12323
+ span.setAttributes({
12324
+ [GEN_AI_INPUT_MESSAGES_ATTRIBUTE]: getTruncatedJsonString(filteredMessages),
12325
+ [GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]: filteredLength
12326
+ });
12327
+ }
12328
+ function handleResponseError(span, response) {
12329
+ if (response.error) {
12330
+ span.setStatus({ code: SPAN_STATUS_ERROR, message: response.error.type || "internal_error" });
12331
+ captureException(response.error, {
12332
+ mechanism: {
12333
+ handled: false,
12334
+ type: "auto.ai.anthropic.anthropic_error"
12335
+ }
12336
+ });
12337
+ }
12338
+ }
12339
+ function messagesFromParams(params) {
12340
+ const { system, messages, input } = params;
12341
+ const systemMessages = typeof system === "string" ? [{ role: "system", content: params.system }] : [];
12342
+ const inputParamMessages = Array.isArray(input) ? input : input != null ? [input] : void 0;
12343
+ const messagesParamMessages = Array.isArray(messages) ? messages : messages != null ? [messages] : [];
12344
+ const userMessages = inputParamMessages ?? messagesParamMessages;
12345
+ return [...systemMessages, ...userMessages];
12346
+ }
12347
+
12348
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/anthropic-ai/index.js
12349
+ function extractRequestAttributes2(args, methodPath) {
12521
12350
  const attributes = {
12522
12351
  [GEN_AI_SYSTEM_ATTRIBUTE]: "anthropic",
12523
- [GEN_AI_OPERATION_NAME_ATTRIBUTE]: operationName,
12352
+ [GEN_AI_OPERATION_NAME_ATTRIBUTE]: getFinalOperationName(methodPath),
12524
12353
  [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: "auto.ai.anthropic"
12525
12354
  };
12526
12355
  if (args.length > 0 && typeof args[0] === "object" && args[0] !== null) {
@@ -12624,34 +12453,29 @@ function handleStreamingError(error3, span, methodPath) {
12624
12453
  }
12625
12454
  throw error3;
12626
12455
  }
12627
- function handleStreamingRequest(originalMethod, target, context, args, requestAttributes, operationName, methodPath, params, options, isStreamRequested, isStreamingMethod) {
12456
+ function handleStreamingRequest(originalMethod, target, context, args, requestAttributes, operationName, methodPath, params, options, isStreamRequested, isStreamingMethod2) {
12628
12457
  const model = requestAttributes[GEN_AI_REQUEST_MODEL_ATTRIBUTE] ?? "unknown";
12629
12458
  const spanConfig = {
12630
12459
  name: `${operationName} ${model}`,
12631
- op: `gen_ai.${operationName}`,
12460
+ op: getSpanOperation(methodPath),
12632
12461
  attributes: requestAttributes
12633
12462
  };
12634
- if (isStreamRequested && !isStreamingMethod) {
12635
- let originalResult;
12636
- const instrumentedPromise = startSpanManual(spanConfig, (span) => {
12637
- originalResult = originalMethod.apply(context, args);
12638
- if (options.recordInputs && params) {
12639
- addPrivateRequestAttributes(span, params);
12640
- }
12641
- return (async () => {
12642
- try {
12643
- const result = await originalResult;
12644
- return instrumentAsyncIterableStream(
12645
- result,
12646
- span,
12647
- options.recordOutputs ?? false
12648
- );
12649
- } catch (error3) {
12650
- return handleStreamingError(error3, span, methodPath);
12463
+ if (isStreamRequested && !isStreamingMethod2) {
12464
+ return startSpanManual(spanConfig, async (span) => {
12465
+ try {
12466
+ if (options.recordInputs && params) {
12467
+ addPrivateRequestAttributes(span, params);
12651
12468
  }
12652
- })();
12469
+ const result = await originalMethod.apply(context, args);
12470
+ return instrumentAsyncIterableStream(
12471
+ result,
12472
+ span,
12473
+ options.recordOutputs ?? false
12474
+ );
12475
+ } catch (error3) {
12476
+ return handleStreamingError(error3, span, methodPath);
12477
+ }
12653
12478
  });
12654
- return wrapPromiseWithMethods(originalResult, instrumentedPromise, "auto.ai.anthropic");
12655
12479
  } else {
12656
12480
  return startSpanManual(spanConfig, (span) => {
12657
12481
  try {
@@ -12666,16 +12490,16 @@ function handleStreamingRequest(originalMethod, target, context, args, requestAt
12666
12490
  });
12667
12491
  }
12668
12492
  }
12669
- function instrumentMethod2(originalMethod, methodPath, instrumentedMethod, context, options) {
12493
+ function instrumentMethod2(originalMethod, methodPath, context, options) {
12670
12494
  return new Proxy(originalMethod, {
12671
12495
  apply(target, thisArg, args) {
12672
- const operationName = instrumentedMethod.operation;
12673
- const requestAttributes = extractRequestAttributes2(args, methodPath, operationName);
12496
+ const requestAttributes = extractRequestAttributes2(args, methodPath);
12674
12497
  const model = requestAttributes[GEN_AI_REQUEST_MODEL_ATTRIBUTE] ?? "unknown";
12498
+ const operationName = getFinalOperationName(methodPath);
12675
12499
  const params = typeof args[0] === "object" ? args[0] : void 0;
12676
12500
  const isStreamRequested = Boolean(params?.stream);
12677
- const isStreamingMethod = instrumentedMethod.streaming === true;
12678
- if (isStreamRequested || isStreamingMethod) {
12501
+ const isStreamingMethod2 = methodPath === "messages.stream";
12502
+ if (isStreamRequested || isStreamingMethod2) {
12679
12503
  return handleStreamingRequest(
12680
12504
  originalMethod,
12681
12505
  target,
@@ -12687,26 +12511,21 @@ function instrumentMethod2(originalMethod, methodPath, instrumentedMethod, conte
12687
12511
  params,
12688
12512
  options,
12689
12513
  isStreamRequested,
12690
- isStreamingMethod
12514
+ isStreamingMethod2
12691
12515
  );
12692
12516
  }
12693
- let originalResult;
12694
- const instrumentedPromise = startSpan(
12517
+ return startSpan(
12695
12518
  {
12696
12519
  name: `${operationName} ${model}`,
12697
- op: `gen_ai.${operationName}`,
12520
+ op: getSpanOperation(methodPath),
12698
12521
  attributes: requestAttributes
12699
12522
  },
12700
12523
  (span) => {
12701
- originalResult = target.apply(context, args);
12702
12524
  if (options.recordInputs && params) {
12703
12525
  addPrivateRequestAttributes(span, params);
12704
12526
  }
12705
- return originalResult.then(
12706
- (result) => {
12707
- addResponseAttributes2(span, result, options.recordOutputs);
12708
- return result;
12709
- },
12527
+ return handleCallbackErrors(
12528
+ () => target.apply(context, args),
12710
12529
  (error3) => {
12711
12530
  captureException(error3, {
12712
12531
  mechanism: {
@@ -12717,12 +12536,13 @@ function instrumentMethod2(originalMethod, methodPath, instrumentedMethod, conte
12717
12536
  }
12718
12537
  }
12719
12538
  });
12720
- throw error3;
12721
- }
12539
+ },
12540
+ () => {
12541
+ },
12542
+ (result) => addResponseAttributes2(span, result, options.recordOutputs)
12722
12543
  );
12723
12544
  }
12724
12545
  );
12725
- return wrapPromiseWithMethods(originalResult, instrumentedPromise, "auto.ai.anthropic");
12726
12546
  }
12727
12547
  });
12728
12548
  }
@@ -12731,15 +12551,8 @@ function createDeepProxy2(target, currentPath = "", options) {
12731
12551
  get(obj, prop) {
12732
12552
  const value = obj[prop];
12733
12553
  const methodPath = buildMethodPath(currentPath, String(prop));
12734
- const instrumentedMethod = ANTHROPIC_METHOD_REGISTRY[methodPath];
12735
- if (typeof value === "function" && instrumentedMethod) {
12736
- return instrumentMethod2(
12737
- value,
12738
- methodPath,
12739
- instrumentedMethod,
12740
- obj,
12741
- options
12742
- );
12554
+ if (typeof value === "function" && shouldInstrument2(methodPath)) {
12555
+ return instrumentMethod2(value, methodPath, obj, options);
12743
12556
  }
12744
12557
  if (typeof value === "function") {
12745
12558
  return value.bind(obj);
@@ -12752,30 +12565,34 @@ function createDeepProxy2(target, currentPath = "", options) {
12752
12565
  });
12753
12566
  }
12754
12567
  function instrumentAnthropicAiClient(anthropicAiClient, options) {
12755
- return createDeepProxy2(anthropicAiClient, "", resolveAIRecordingOptions(options));
12568
+ const sendDefaultPii = Boolean(getClient()?.getOptions().sendDefaultPii);
12569
+ const _options = {
12570
+ recordInputs: sendDefaultPii,
12571
+ recordOutputs: sendDefaultPii,
12572
+ ...options
12573
+ };
12574
+ return createDeepProxy2(anthropicAiClient, "", _options);
12756
12575
  }
12757
12576
 
12758
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/google-genai/constants.js
12577
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/google-genai/constants.js
12759
12578
  var GOOGLE_GENAI_INTEGRATION_NAME = "Google_GenAI";
12760
- var GOOGLE_GENAI_METHOD_REGISTRY = {
12761
- "models.generateContent": { operation: "generate_content" },
12762
- "models.generateContentStream": { operation: "generate_content", streaming: true },
12763
- "models.embedContent": { operation: "embeddings" },
12764
- "chats.create": { operation: "chat" },
12765
- // chat.* paths are built by createDeepProxy when it proxies the chat instance with CHAT_PATH as base
12766
- "chat.sendMessage": { operation: "chat" },
12767
- "chat.sendMessageStream": { operation: "chat", streaming: true }
12768
- };
12579
+ var GOOGLE_GENAI_INSTRUMENTED_METHODS = [
12580
+ "models.generateContent",
12581
+ "models.generateContentStream",
12582
+ "chats.create",
12583
+ "sendMessage",
12584
+ "sendMessageStream"
12585
+ ];
12769
12586
  var GOOGLE_GENAI_SYSTEM_NAME = "google_genai";
12770
12587
  var CHATS_CREATE_METHOD = "chats.create";
12771
12588
  var CHAT_PATH = "chat";
12772
12589
 
12773
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/google-genai/streaming.js
12590
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/google-genai/streaming.js
12774
12591
  function isErrorChunk(chunk, span) {
12775
12592
  const feedback = chunk?.promptFeedback;
12776
12593
  if (feedback?.blockReason) {
12777
12594
  const message = feedback.blockReasonMessage ?? feedback.blockReason;
12778
- span.setStatus({ code: SPAN_STATUS_ERROR, message: "internal_error" });
12595
+ span.setStatus({ code: SPAN_STATUS_ERROR, message: `Content blocked: ${message}` });
12779
12596
  captureException(`Content blocked: ${message}`, {
12780
12597
  mechanism: { handled: false, type: "auto.ai.google_genai" }
12781
12598
  });
@@ -12853,7 +12670,17 @@ async function* instrumentStream2(stream, span, recordOutputs) {
12853
12670
  }
12854
12671
  }
12855
12672
 
12856
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/google-genai/utils.js
12673
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/google-genai/utils.js
12674
+ function shouldInstrument3(methodPath) {
12675
+ if (GOOGLE_GENAI_INSTRUMENTED_METHODS.includes(methodPath)) {
12676
+ return true;
12677
+ }
12678
+ const methodName = methodPath.split(".").pop();
12679
+ return GOOGLE_GENAI_INSTRUMENTED_METHODS.includes(methodName);
12680
+ }
12681
+ function isStreamingMethod(methodPath) {
12682
+ return methodPath.includes("Stream");
12683
+ }
12857
12684
  function contentUnionToMessages(content, role = "user") {
12858
12685
  if (typeof content === "string") {
12859
12686
  return [{ role, content }];
@@ -12871,7 +12698,7 @@ function contentUnionToMessages(content, role = "user") {
12871
12698
  return [{ role, content }];
12872
12699
  }
12873
12700
 
12874
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/google-genai/index.js
12701
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/google-genai/index.js
12875
12702
  function extractModel(params, context) {
12876
12703
  if ("model" in params && typeof params.model === "string") {
12877
12704
  return params.model;
@@ -12909,10 +12736,10 @@ function extractConfigAttributes(config) {
12909
12736
  }
12910
12737
  return attributes;
12911
12738
  }
12912
- function extractRequestAttributes3(operationName, params, context) {
12739
+ function extractRequestAttributes3(methodPath, params, context) {
12913
12740
  const attributes = {
12914
12741
  [GEN_AI_SYSTEM_ATTRIBUTE]: GOOGLE_GENAI_SYSTEM_NAME,
12915
- [GEN_AI_OPERATION_NAME_ATTRIBUTE]: operationName,
12742
+ [GEN_AI_OPERATION_NAME_ATTRIBUTE]: getFinalOperationName(methodPath),
12916
12743
  [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: "auto.ai.google_genai"
12917
12744
  };
12918
12745
  if (params) {
@@ -12932,17 +12759,7 @@ function extractRequestAttributes3(operationName, params, context) {
12932
12759
  }
12933
12760
  return attributes;
12934
12761
  }
12935
- function addPrivateRequestAttributes2(span, params, isEmbeddings) {
12936
- if (isEmbeddings) {
12937
- const contents = params.contents;
12938
- if (contents != null) {
12939
- span.setAttribute(
12940
- GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,
12941
- typeof contents === "string" ? contents : JSON.stringify(contents)
12942
- );
12943
- }
12944
- return;
12945
- }
12762
+ function addPrivateRequestAttributes2(span, params) {
12946
12763
  const messages = [];
12947
12764
  if ("config" in params && params.config && typeof params.config === "object" && "systemInstruction" in params.config && params.config.systemInstruction) {
12948
12765
  messages.push(...contentUnionToMessages(params.config.systemInstruction, "system"));
@@ -13013,26 +12830,25 @@ function addResponseAttributes3(span, response, recordOutputs) {
13013
12830
  }
13014
12831
  }
13015
12832
  }
13016
- function instrumentMethod3(originalMethod, methodPath, instrumentedMethod, context, options) {
12833
+ function instrumentMethod3(originalMethod, methodPath, context, options) {
13017
12834
  const isSyncCreate = methodPath === CHATS_CREATE_METHOD;
13018
- const isEmbeddings = instrumentedMethod.operation === "embeddings";
13019
12835
  return new Proxy(originalMethod, {
13020
12836
  apply(target, _, args) {
13021
- const operationName = instrumentedMethod.operation;
13022
12837
  const params = args[0];
13023
- const requestAttributes = extractRequestAttributes3(operationName, params, context);
12838
+ const requestAttributes = extractRequestAttributes3(methodPath, params, context);
13024
12839
  const model = requestAttributes[GEN_AI_REQUEST_MODEL_ATTRIBUTE] ?? "unknown";
13025
- if (instrumentedMethod.streaming) {
12840
+ const operationName = getFinalOperationName(methodPath);
12841
+ if (isStreamingMethod(methodPath)) {
13026
12842
  return startSpanManual(
13027
12843
  {
13028
12844
  name: `${operationName} ${model}`,
13029
- op: `gen_ai.${operationName}`,
12845
+ op: getSpanOperation(methodPath),
13030
12846
  attributes: requestAttributes
13031
12847
  },
13032
12848
  async (span) => {
13033
12849
  try {
13034
12850
  if (options.recordInputs && params) {
13035
- addPrivateRequestAttributes2(span, params, isEmbeddings);
12851
+ addPrivateRequestAttributes2(span, params);
13036
12852
  }
13037
12853
  const stream = await target.apply(context, args);
13038
12854
  return instrumentStream2(stream, span, Boolean(options.recordOutputs));
@@ -13054,12 +12870,12 @@ function instrumentMethod3(originalMethod, methodPath, instrumentedMethod, conte
13054
12870
  return startSpan(
13055
12871
  {
13056
12872
  name: isSyncCreate ? `${operationName} ${model} create` : `${operationName} ${model}`,
13057
- op: `gen_ai.${operationName}`,
12873
+ op: getSpanOperation(methodPath),
13058
12874
  attributes: requestAttributes
13059
12875
  },
13060
12876
  (span) => {
13061
12877
  if (options.recordInputs && params) {
13062
- addPrivateRequestAttributes2(span, params, isEmbeddings);
12878
+ addPrivateRequestAttributes2(span, params);
13063
12879
  }
13064
12880
  return handleCallbackErrors(
13065
12881
  () => target.apply(context, args),
@@ -13071,7 +12887,7 @@ function instrumentMethod3(originalMethod, methodPath, instrumentedMethod, conte
13071
12887
  () => {
13072
12888
  },
13073
12889
  (result) => {
13074
- if (!isSyncCreate && !isEmbeddings) {
12890
+ if (!isSyncCreate) {
13075
12891
  addResponseAttributes3(span, result, options.recordOutputs);
13076
12892
  }
13077
12893
  }
@@ -13086,31 +12902,18 @@ function createDeepProxy3(target, currentPath = "", options) {
13086
12902
  get: (t, prop, receiver) => {
13087
12903
  const value = Reflect.get(t, prop, receiver);
13088
12904
  const methodPath = buildMethodPath(currentPath, String(prop));
13089
- const instrumentedMethod = GOOGLE_GENAI_METHOD_REGISTRY[methodPath];
13090
- if (typeof value === "function" && instrumentedMethod) {
12905
+ if (typeof value === "function" && shouldInstrument3(methodPath)) {
13091
12906
  if (methodPath === CHATS_CREATE_METHOD) {
13092
- const wrappedMethod = instrumentMethod3(
13093
- value,
13094
- methodPath,
13095
- instrumentedMethod,
13096
- t,
13097
- options
13098
- );
12907
+ const instrumentedMethod = instrumentMethod3(value, methodPath, t, options);
13099
12908
  return function instrumentedAndProxiedCreate(...args) {
13100
- const result = wrappedMethod(...args);
12909
+ const result = instrumentedMethod(...args);
13101
12910
  if (result && typeof result === "object") {
13102
12911
  return createDeepProxy3(result, CHAT_PATH, options);
13103
12912
  }
13104
12913
  return result;
13105
12914
  };
13106
12915
  }
13107
- return instrumentMethod3(
13108
- value,
13109
- methodPath,
13110
- instrumentedMethod,
13111
- t,
13112
- options
13113
- );
12916
+ return instrumentMethod3(value, methodPath, t, options);
13114
12917
  }
13115
12918
  if (typeof value === "function") {
13116
12919
  return value.bind(t);
@@ -13123,10 +12926,16 @@ function createDeepProxy3(target, currentPath = "", options) {
13123
12926
  });
13124
12927
  }
13125
12928
  function instrumentGoogleGenAIClient(client, options) {
13126
- return createDeepProxy3(client, "", resolveAIRecordingOptions(options));
12929
+ const sendDefaultPii = Boolean(getClient()?.getOptions().sendDefaultPii);
12930
+ const _options = {
12931
+ recordInputs: sendDefaultPii,
12932
+ recordOutputs: sendDefaultPii,
12933
+ ...options
12934
+ };
12935
+ return createDeepProxy3(client, "", _options);
13127
12936
  }
13128
12937
 
13129
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/langchain/constants.js
12938
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/langchain/constants.js
13130
12939
  var LANGCHAIN_INTEGRATION_NAME = "LangChain";
13131
12940
  var LANGCHAIN_ORIGIN = "auto.ai.langchain";
13132
12941
  var ROLE_MAP = {
@@ -13138,7 +12947,7 @@ var ROLE_MAP = {
13138
12947
  tool: "tool"
13139
12948
  };
13140
12949
 
13141
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/langchain/utils.js
12950
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/langchain/utils.js
13142
12951
  var setIfDefined = (target, key, value) => {
13143
12952
  if (value != null) target[key] = value;
13144
12953
  };
@@ -13365,9 +13174,10 @@ function extractLlmResponseAttributes(llmResult, recordOutputs) {
13365
13174
  return attrs;
13366
13175
  }
13367
13176
 
13368
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/langchain/index.js
13177
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/langchain/index.js
13369
13178
  function createLangChainCallbackHandler(options = {}) {
13370
- const { recordInputs, recordOutputs } = resolveAIRecordingOptions(options);
13179
+ const recordInputs = options.recordInputs ?? false;
13180
+ const recordOutputs = options.recordOutputs ?? false;
13371
13181
  const spanMap = /* @__PURE__ */ new Map();
13372
13182
  const exitSpan = (runId) => {
13373
13183
  const span = spanMap.get(runId);
@@ -13463,7 +13273,7 @@ function createLangChainCallbackHandler(options = {}) {
13463
13273
  handleLLMError(error3, runId) {
13464
13274
  const span = spanMap.get(runId);
13465
13275
  if (span?.isRecording()) {
13466
- span.setStatus({ code: SPAN_STATUS_ERROR, message: "internal_error" });
13276
+ span.setStatus({ code: SPAN_STATUS_ERROR, message: "llm_error" });
13467
13277
  exitSpan(runId);
13468
13278
  }
13469
13279
  captureException(error3, {
@@ -13514,7 +13324,7 @@ function createLangChainCallbackHandler(options = {}) {
13514
13324
  handleChainError(error3, runId) {
13515
13325
  const span = spanMap.get(runId);
13516
13326
  if (span?.isRecording()) {
13517
- span.setStatus({ code: SPAN_STATUS_ERROR, message: "internal_error" });
13327
+ span.setStatus({ code: SPAN_STATUS_ERROR, message: "chain_error" });
13518
13328
  exitSpan(runId);
13519
13329
  }
13520
13330
  captureException(error3, {
@@ -13565,7 +13375,7 @@ function createLangChainCallbackHandler(options = {}) {
13565
13375
  handleToolError(error3, runId) {
13566
13376
  const span = spanMap.get(runId);
13567
13377
  if (span?.isRecording()) {
13568
- span.setStatus({ code: SPAN_STATUS_ERROR, message: "internal_error" });
13378
+ span.setStatus({ code: SPAN_STATUS_ERROR, message: "tool_error" });
13569
13379
  exitSpan(runId);
13570
13380
  }
13571
13381
  captureException(error3, {
@@ -13597,11 +13407,11 @@ function createLangChainCallbackHandler(options = {}) {
13597
13407
  return handler;
13598
13408
  }
13599
13409
 
13600
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/langgraph/constants.js
13410
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/langgraph/constants.js
13601
13411
  var LANGGRAPH_INTEGRATION_NAME = "LangGraph";
13602
13412
  var LANGGRAPH_ORIGIN = "auto.ai.langgraph";
13603
13413
 
13604
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/langgraph/utils.js
13414
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/langgraph/utils.js
13605
13415
  function extractToolCalls(messages) {
13606
13416
  if (!messages || messages.length === 0) {
13607
13417
  return null;
@@ -13716,7 +13526,7 @@ function setResponseAttributes(span, inputMessages, result) {
13716
13526
  }
13717
13527
  }
13718
13528
 
13719
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/tracing/langgraph/index.js
13529
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/tracing/langgraph/index.js
13720
13530
  function instrumentStateGraphCompile(originalCompile, options) {
13721
13531
  return new Proxy(originalCompile, {
13722
13532
  apply(target, thisArg, args) {
@@ -13831,11 +13641,12 @@ function instrumentCompiledGraphInvoke(originalInvoke, graphInstance, compileOpt
13831
13641
  });
13832
13642
  }
13833
13643
  function instrumentLangGraph(stateGraph, options) {
13834
- stateGraph.compile = instrumentStateGraphCompile(stateGraph.compile, resolveAIRecordingOptions(options));
13644
+ const _options = options || {};
13645
+ stateGraph.compile = instrumentStateGraphCompile(stateGraph.compile.bind(stateGraph), _options);
13835
13646
  return stateGraph;
13836
13647
  }
13837
13648
 
13838
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/breadcrumb-log-level.js
13649
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/breadcrumb-log-level.js
13839
13650
  function getBreadcrumbLogLevelFromHttpStatusCode(statusCode) {
13840
13651
  if (statusCode === void 0) {
13841
13652
  return void 0;
@@ -13848,7 +13659,7 @@ function getBreadcrumbLogLevelFromHttpStatusCode(statusCode) {
13848
13659
  }
13849
13660
  }
13850
13661
 
13851
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/error.js
13662
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/error.js
13852
13663
  var SentryError = class extends Error {
13853
13664
  constructor(message, logLevel = "warn") {
13854
13665
  super(message);
@@ -13857,7 +13668,7 @@ var SentryError = class extends Error {
13857
13668
  }
13858
13669
  };
13859
13670
 
13860
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/supports.js
13671
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/supports.js
13861
13672
  var WINDOW2 = GLOBAL_OBJ;
13862
13673
  function supportsErrorEvent() {
13863
13674
  try {
@@ -13947,7 +13758,7 @@ function supportsReferrerPolicy() {
13947
13758
  }
13948
13759
  }
13949
13760
 
13950
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/instrument/fetch.js
13761
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/instrument/fetch.js
13951
13762
  function addFetchInstrumentationHandler(handler, skipNativeFetchCheck) {
13952
13763
  const type = "fetch";
13953
13764
  addHandler(type, handler);
@@ -14130,7 +13941,7 @@ function getHeadersFromFetchArgs(fetchArgs) {
14130
13941
  return;
14131
13942
  }
14132
13943
 
14133
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/env.js
13944
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/env.js
14134
13945
  function isBrowserBundle() {
14135
13946
  return typeof __SENTRY_BROWSER_BUNDLE__ !== "undefined" && !!__SENTRY_BROWSER_BUNDLE__;
14136
13947
  }
@@ -14138,7 +13949,7 @@ function getSDKSource() {
14138
13949
  return "npm";
14139
13950
  }
14140
13951
 
14141
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/node.js
13952
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/node.js
14142
13953
  function isNodeEnv() {
14143
13954
  return !isBrowserBundle() && Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]";
14144
13955
  }
@@ -14161,7 +13972,7 @@ function loadModule(moduleName, existingModule = module) {
14161
13972
  return mod;
14162
13973
  }
14163
13974
 
14164
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/isBrowser.js
13975
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/isBrowser.js
14165
13976
  function isBrowser() {
14166
13977
  return typeof window !== "undefined" && (!isNodeEnv() || isElectronNodeRenderer());
14167
13978
  }
@@ -14170,7 +13981,7 @@ function isElectronNodeRenderer() {
14170
13981
  return process2?.type === "renderer";
14171
13982
  }
14172
13983
 
14173
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/exports.js
13984
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/exports.js
14174
13985
  function replaceExports(exports$1, exportName, wrappedConstructor) {
14175
13986
  const original = exports$1[exportName];
14176
13987
  if (typeof original !== "function") {
@@ -14178,7 +13989,7 @@ function replaceExports(exports$1, exportName, wrappedConstructor) {
14178
13989
  }
14179
13990
  try {
14180
13991
  exports$1[exportName] = wrappedConstructor;
14181
- } catch {
13992
+ } catch (error3) {
14182
13993
  Object.defineProperty(exports$1, exportName, {
14183
13994
  value: wrappedConstructor,
14184
13995
  writable: true,
@@ -14189,7 +14000,7 @@ function replaceExports(exports$1, exportName, wrappedConstructor) {
14189
14000
  if (exports$1.default === original) {
14190
14001
  try {
14191
14002
  exports$1.default = wrappedConstructor;
14192
- } catch {
14003
+ } catch (error3) {
14193
14004
  Object.defineProperty(exports$1, "default", {
14194
14005
  value: wrappedConstructor,
14195
14006
  writable: true,
@@ -14200,7 +14011,7 @@ function replaceExports(exports$1, exportName, wrappedConstructor) {
14200
14011
  }
14201
14012
  }
14202
14013
 
14203
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/node-stack-trace.js
14014
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/node-stack-trace.js
14204
14015
  function filenameIsInApp(filename, isNative = false) {
14205
14016
  const isInternal = isNative || filename && // It's not internal if it's an absolute linux path
14206
14017
  !filename.startsWith("/") && // It's not internal if it's an absolute windows path
@@ -14294,7 +14105,7 @@ function _safeDecodeURI(filename) {
14294
14105
  }
14295
14106
  }
14296
14107
 
14297
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/anr.js
14108
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/anr.js
14298
14109
  function watchdogTimer(createTimer, pollInterval, anrThreshold, callback) {
14299
14110
  const timer = createTimer();
14300
14111
  let triggered = false;
@@ -14334,7 +14145,7 @@ function callFrameToStackFrame(frame, url, getModuleFromFilename) {
14334
14145
  };
14335
14146
  }
14336
14147
 
14337
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/lru.js
14148
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/lru.js
14338
14149
  var LRUMap = class {
14339
14150
  constructor(_maxSize) {
14340
14151
  this._maxSize = _maxSize;
@@ -14386,7 +14197,7 @@ var LRUMap = class {
14386
14197
  }
14387
14198
  };
14388
14199
 
14389
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/vercelWaitUntil.js
14200
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/vercelWaitUntil.js
14390
14201
  function vercelWaitUntil(task) {
14391
14202
  if (typeof EdgeRuntime !== "string") {
14392
14203
  return;
@@ -14401,7 +14212,7 @@ function vercelWaitUntil(task) {
14401
14212
  }
14402
14213
  }
14403
14214
 
14404
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/utils/flushIfServerless.js
14215
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/utils/flushIfServerless.js
14405
14216
  async function flushWithTimeout(timeout) {
14406
14217
  try {
14407
14218
  debug.log("Flushing events...");
@@ -14438,7 +14249,7 @@ async function flushIfServerless(params = {}) {
14438
14249
  }
14439
14250
  }
14440
14251
 
14441
- // node_modules/.pnpm/@sentry+core@10.47.0/node_modules/@sentry/core/build/esm/vendor/escapeStringForRegex.js
14252
+ // ../../node_modules/.pnpm/@sentry+core@10.43.0/node_modules/@sentry/core/build/esm/vendor/escapeStringForRegex.js
14442
14253
  function escapeStringForRegex(regexString) {
14443
14254
  return regexString.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
14444
14255
  }
@@ -14476,7 +14287,6 @@ export {
14476
14287
  SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
14477
14288
  SEMANTIC_ATTRIBUTE_URL_FULL,
14478
14289
  SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE,
14479
- SENTRY_API_VERSION,
14480
14290
  SENTRY_BAGGAGE_KEY_PREFIX,
14481
14291
  SENTRY_BAGGAGE_KEY_PREFIX_REGEX,
14482
14292
  SENTRY_BUFFER_FULL_ERROR,
@@ -14509,7 +14319,6 @@ export {
14509
14319
  _INTERNAL_insertFlagToScope,
14510
14320
  safeDateNow as _INTERNAL_safeDateNow,
14511
14321
  safeMathRandom as _INTERNAL_safeMathRandom,
14512
- safeUnref as _INTERNAL_safeUnref,
14513
14322
  _setSpanForScope as _INTERNAL_setSpanForScope,
14514
14323
  _INTERNAL_shouldSkipAiProviderWrapping,
14515
14324
  _INTERNAL_skipAiProviderWrapping,
@@ -14621,7 +14430,6 @@ export {
14621
14430
  getDynamicSamplingContextFromSpan,
14622
14431
  getEnvelopeEndpointWithUrlEncodedAuth,
14623
14432
  getEventDescription,
14624
- getExternalPropagationContext,
14625
14433
  getFilenameToDebugIdMap,
14626
14434
  getFilenameToMetadataMap,
14627
14435
  getFramesFromEvent,
@@ -14649,7 +14457,6 @@ export {
14649
14457
  growthbookIntegration,
14650
14458
  handleCallbackErrors,
14651
14459
  handleTunnelRequest,
14652
- hasExternalPropagationContext,
14653
14460
  hasSpansEnabled,
14654
14461
  headersToDict,
14655
14462
  htmlTreeAsString,
@@ -14732,7 +14539,6 @@ export {
14732
14539
  prepareEvent,
14733
14540
  profiler,
14734
14541
  propagationContextFromHeaders,
14735
- registerExternalPropagationContext,
14736
14542
  registerSpanErrorInstrumentation,
14737
14543
  rejectedSyncPromise,
14738
14544
  relative,
@@ -14809,4 +14615,3 @@ export {
14809
14615
  wrapMcpServerWithSentry,
14810
14616
  zodErrorsIntegration
14811
14617
  };
14812
- //# sourceMappingURL=esm-2EUDFZWP.js.map