@sentry/profiling-node 8.10.0 → 8.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/bindings/cpu_profiler.cc +5 -3
  2. package/lib/cjs/index.js +2 -662
  3. package/lib/cjs/index.js.map +1 -1
  4. package/lib/esm/index.js +2 -662
  5. package/lib/esm/index.js.map +1 -1
  6. package/lib/sentry_cpu_profiler-darwin-arm64-108.node +0 -0
  7. package/lib/sentry_cpu_profiler-darwin-arm64-115.node +0 -0
  8. package/lib/sentry_cpu_profiler-darwin-arm64-127.node +0 -0
  9. package/lib/sentry_cpu_profiler-darwin-arm64-93.node +0 -0
  10. package/lib/sentry_cpu_profiler-darwin-x64-108.node +0 -0
  11. package/lib/sentry_cpu_profiler-darwin-x64-115.node +0 -0
  12. package/lib/sentry_cpu_profiler-darwin-x64-127.node +0 -0
  13. package/lib/sentry_cpu_profiler-darwin-x64-93.node +0 -0
  14. package/lib/sentry_cpu_profiler-linux-arm64-glibc-108.node +0 -0
  15. package/lib/sentry_cpu_profiler-linux-arm64-glibc-115.node +0 -0
  16. package/lib/sentry_cpu_profiler-linux-arm64-glibc-127.node +0 -0
  17. package/lib/sentry_cpu_profiler-linux-arm64-glibc-93.node +0 -0
  18. package/lib/sentry_cpu_profiler-linux-arm64-musl-108.node +0 -0
  19. package/lib/sentry_cpu_profiler-linux-arm64-musl-115.node +0 -0
  20. package/lib/sentry_cpu_profiler-linux-arm64-musl-127.node +0 -0
  21. package/lib/sentry_cpu_profiler-linux-arm64-musl-93.node +0 -0
  22. package/lib/sentry_cpu_profiler-linux-x64-glibc-108.node +0 -0
  23. package/lib/sentry_cpu_profiler-linux-x64-glibc-115.node +0 -0
  24. package/lib/sentry_cpu_profiler-linux-x64-glibc-127.node +0 -0
  25. package/lib/sentry_cpu_profiler-linux-x64-glibc-93.node +0 -0
  26. package/lib/sentry_cpu_profiler-linux-x64-musl-108.node +0 -0
  27. package/lib/sentry_cpu_profiler-linux-x64-musl-115.node +0 -0
  28. package/lib/sentry_cpu_profiler-linux-x64-musl-127.node +0 -0
  29. package/lib/sentry_cpu_profiler-linux-x64-musl-93.node +0 -0
  30. package/lib/sentry_cpu_profiler-win32-x64-108.node +0 -0
  31. package/lib/sentry_cpu_profiler-win32-x64-115.node +0 -0
  32. package/lib/sentry_cpu_profiler-win32-x64-127.node +0 -0
  33. package/lib/sentry_cpu_profiler-win32-x64-93.node +0 -0
  34. package/lib/types/cpu_profiler.d.ts.map +1 -0
  35. package/lib/types/debug-build.d.ts.map +1 -0
  36. package/lib/types/index.d.ts.map +1 -0
  37. package/lib/types/integration.d.ts.map +1 -0
  38. package/lib/types/nodeVersion.d.ts.map +1 -0
  39. package/lib/types/spanProfileUtils.d.ts.map +1 -0
  40. package/lib/types/types.d.ts.map +1 -0
  41. package/lib/types/utils.d.ts.map +1 -0
  42. package/package.json +5 -5
  43. package/lib/types/core/src/asyncContext/index.d.ts +0 -14
  44. package/lib/types/core/src/asyncContext/index.d.ts.map +0 -1
  45. package/lib/types/core/src/asyncContext/stackStrategy.d.ts +0 -52
  46. package/lib/types/core/src/asyncContext/stackStrategy.d.ts.map +0 -1
  47. package/lib/types/core/src/asyncContext/types.d.ts +0 -47
  48. package/lib/types/core/src/asyncContext/types.d.ts.map +0 -1
  49. package/lib/types/core/src/carrier.d.ts +0 -37
  50. package/lib/types/core/src/carrier.d.ts.map +0 -1
  51. package/lib/types/core/src/constants.d.ts +0 -2
  52. package/lib/types/core/src/constants.d.ts.map +0 -1
  53. package/lib/types/core/src/currentScopes.d.ts +0 -55
  54. package/lib/types/core/src/currentScopes.d.ts.map +0 -1
  55. package/lib/types/core/src/debug-build.d.ts.map +0 -1
  56. package/lib/types/core/src/defaultScopes.d.ts +0 -6
  57. package/lib/types/core/src/defaultScopes.d.ts.map +0 -1
  58. package/lib/types/core/src/envelope.d.ts +0 -15
  59. package/lib/types/core/src/envelope.d.ts.map +0 -1
  60. package/lib/types/core/src/metrics/constants.d.ts +0 -19
  61. package/lib/types/core/src/metrics/constants.d.ts.map +0 -1
  62. package/lib/types/core/src/metrics/metric-summary.d.ts +0 -13
  63. package/lib/types/core/src/metrics/metric-summary.d.ts.map +0 -1
  64. package/lib/types/core/src/metrics/types.d.ts +0 -5
  65. package/lib/types/core/src/metrics/types.d.ts.map +0 -1
  66. package/lib/types/core/src/scope.d.ts +0 -211
  67. package/lib/types/core/src/scope.d.ts.map +0 -1
  68. package/lib/types/core/src/semanticAttributes.d.ts +0 -33
  69. package/lib/types/core/src/semanticAttributes.d.ts.map +0 -1
  70. package/lib/types/core/src/session.d.ts +0 -35
  71. package/lib/types/core/src/session.d.ts.map +0 -1
  72. package/lib/types/core/src/tracing/dynamicSamplingContext.d.ts +0 -24
  73. package/lib/types/core/src/tracing/dynamicSamplingContext.d.ts.map +0 -1
  74. package/lib/types/core/src/tracing/logSpans.d.ts +0 -10
  75. package/lib/types/core/src/tracing/logSpans.d.ts.map +0 -1
  76. package/lib/types/core/src/tracing/measurement.d.ts +0 -10
  77. package/lib/types/core/src/tracing/measurement.d.ts.map +0 -1
  78. package/lib/types/core/src/tracing/sampling.d.ts +0 -9
  79. package/lib/types/core/src/tracing/sampling.d.ts.map +0 -1
  80. package/lib/types/core/src/tracing/sentryNonRecordingSpan.d.ts +0 -26
  81. package/lib/types/core/src/tracing/sentryNonRecordingSpan.d.ts.map +0 -1
  82. package/lib/types/core/src/tracing/sentrySpan.d.ts +0 -86
  83. package/lib/types/core/src/tracing/sentrySpan.d.ts.map +0 -1
  84. package/lib/types/core/src/tracing/spanstatus.d.ts +0 -17
  85. package/lib/types/core/src/tracing/spanstatus.d.ts.map +0 -1
  86. package/lib/types/core/src/tracing/trace.d.ts +0 -76
  87. package/lib/types/core/src/tracing/trace.d.ts.map +0 -1
  88. package/lib/types/core/src/tracing/utils.d.ts +0 -13
  89. package/lib/types/core/src/tracing/utils.d.ts.map +0 -1
  90. package/lib/types/core/src/utils/handleCallbackErrors.d.ts +0 -13
  91. package/lib/types/core/src/utils/handleCallbackErrors.d.ts.map +0 -1
  92. package/lib/types/core/src/utils/hasTracingEnabled.d.ts +0 -8
  93. package/lib/types/core/src/utils/hasTracingEnabled.d.ts.map +0 -1
  94. package/lib/types/core/src/utils/parseSampleRate.d.ts +0 -9
  95. package/lib/types/core/src/utils/parseSampleRate.d.ts.map +0 -1
  96. package/lib/types/core/src/utils/spanOnScope.d.ts +0 -17
  97. package/lib/types/core/src/utils/spanOnScope.d.ts.map +0 -1
  98. package/lib/types/core/src/utils/spanUtils.d.ts +0 -74
  99. package/lib/types/core/src/utils/spanUtils.d.ts.map +0 -1
  100. package/lib/types/profiling-node/src/cpu_profiler.d.ts.map +0 -1
  101. package/lib/types/profiling-node/src/debug-build.d.ts +0 -7
  102. package/lib/types/profiling-node/src/debug-build.d.ts.map +0 -1
  103. package/lib/types/profiling-node/src/index.d.ts.map +0 -1
  104. package/lib/types/profiling-node/src/integration.d.ts.map +0 -1
  105. package/lib/types/profiling-node/src/nodeVersion.d.ts.map +0 -1
  106. package/lib/types/profiling-node/src/spanProfileUtils.d.ts.map +0 -1
  107. package/lib/types/profiling-node/src/types.d.ts.map +0 -1
  108. package/lib/types/profiling-node/src/utils.d.ts.map +0 -1
  109. package/lib/types-ts3.8/core/src/asyncContext/index.d.ts +0 -14
  110. package/lib/types-ts3.8/core/src/asyncContext/stackStrategy.d.ts +0 -52
  111. package/lib/types-ts3.8/core/src/asyncContext/types.d.ts +0 -47
  112. package/lib/types-ts3.8/core/src/carrier.d.ts +0 -37
  113. package/lib/types-ts3.8/core/src/constants.d.ts +0 -2
  114. package/lib/types-ts3.8/core/src/currentScopes.d.ts +0 -55
  115. package/lib/types-ts3.8/core/src/defaultScopes.d.ts +0 -6
  116. package/lib/types-ts3.8/core/src/envelope.d.ts +0 -18
  117. package/lib/types-ts3.8/core/src/metrics/constants.d.ts +0 -19
  118. package/lib/types-ts3.8/core/src/metrics/metric-summary.d.ts +0 -13
  119. package/lib/types-ts3.8/core/src/metrics/types.d.ts +0 -5
  120. package/lib/types-ts3.8/core/src/scope.d.ts +0 -211
  121. package/lib/types-ts3.8/core/src/semanticAttributes.d.ts +0 -33
  122. package/lib/types-ts3.8/core/src/session.d.ts +0 -35
  123. package/lib/types-ts3.8/core/src/tracing/dynamicSamplingContext.d.ts +0 -24
  124. package/lib/types-ts3.8/core/src/tracing/logSpans.d.ts +0 -10
  125. package/lib/types-ts3.8/core/src/tracing/measurement.d.ts +0 -10
  126. package/lib/types-ts3.8/core/src/tracing/sampling.d.ts +0 -12
  127. package/lib/types-ts3.8/core/src/tracing/sentryNonRecordingSpan.d.ts +0 -26
  128. package/lib/types-ts3.8/core/src/tracing/sentrySpan.d.ts +0 -86
  129. package/lib/types-ts3.8/core/src/tracing/spanstatus.d.ts +0 -17
  130. package/lib/types-ts3.8/core/src/tracing/trace.d.ts +0 -76
  131. package/lib/types-ts3.8/core/src/tracing/utils.d.ts +0 -13
  132. package/lib/types-ts3.8/core/src/utils/handleCallbackErrors.d.ts +0 -13
  133. package/lib/types-ts3.8/core/src/utils/hasTracingEnabled.d.ts +0 -8
  134. package/lib/types-ts3.8/core/src/utils/parseSampleRate.d.ts +0 -9
  135. package/lib/types-ts3.8/core/src/utils/spanOnScope.d.ts +0 -17
  136. package/lib/types-ts3.8/core/src/utils/spanUtils.d.ts +0 -74
  137. package/lib/types-ts3.8/profiling-node/src/debug-build.d.ts +0 -7
  138. /package/lib/types/{profiling-node/src/cpu_profiler.d.ts → cpu_profiler.d.ts} +0 -0
  139. /package/lib/types/{core/src/debug-build.d.ts → debug-build.d.ts} +0 -0
  140. /package/lib/types/{profiling-node/src/index.d.ts → index.d.ts} +0 -0
  141. /package/lib/types/{profiling-node/src/integration.d.ts → integration.d.ts} +0 -0
  142. /package/lib/types/{profiling-node/src/nodeVersion.d.ts → nodeVersion.d.ts} +0 -0
  143. /package/lib/types/{profiling-node/src/spanProfileUtils.d.ts → spanProfileUtils.d.ts} +0 -0
  144. /package/lib/types/{profiling-node/src/types.d.ts → types.d.ts} +0 -0
  145. /package/lib/types/{profiling-node/src/utils.d.ts → utils.d.ts} +0 -0
  146. /package/lib/types-ts3.8/{profiling-node/src/cpu_profiler.d.ts → cpu_profiler.d.ts} +0 -0
  147. /package/lib/types-ts3.8/{core/src/debug-build.d.ts → debug-build.d.ts} +0 -0
  148. /package/lib/types-ts3.8/{profiling-node/src/index.d.ts → index.d.ts} +0 -0
  149. /package/lib/types-ts3.8/{profiling-node/src/integration.d.ts → integration.d.ts} +0 -0
  150. /package/lib/types-ts3.8/{profiling-node/src/nodeVersion.d.ts → nodeVersion.d.ts} +0 -0
  151. /package/lib/types-ts3.8/{profiling-node/src/spanProfileUtils.d.ts → spanProfileUtils.d.ts} +0 -0
  152. /package/lib/types-ts3.8/{profiling-node/src/types.d.ts → types.d.ts} +0 -0
  153. /package/lib/types-ts3.8/{profiling-node/src/utils.d.ts → utils.d.ts} +0 -0
@@ -1,37 +0,0 @@
1
- import type { Client, Integration, MetricsAggregator, Scope } from '@sentry/types';
2
- import type { AsyncContextStack } from './asyncContext/stackStrategy';
3
- import type { AsyncContextStrategy } from './asyncContext/types';
4
- /**
5
- * An object that contains globally accessible properties and maintains a scope stack.
6
- * @hidden
7
- */
8
- export interface Carrier {
9
- __SENTRY__?: VersionedCarrier;
10
- }
11
- type VersionedCarrier = {
12
- version?: string;
13
- } & Record<Exclude<string, 'version'>, SentryCarrier>;
14
- interface SentryCarrier {
15
- acs?: AsyncContextStrategy;
16
- stack?: AsyncContextStack;
17
- globalScope?: Scope;
18
- defaultIsolationScope?: Scope;
19
- defaultCurrentScope?: Scope;
20
- globalMetricsAggregators?: WeakMap<Client, MetricsAggregator> | undefined;
21
- integrations?: Integration[];
22
- extensions?: {
23
- [key: string]: Function;
24
- };
25
- }
26
- /**
27
- * Returns the global shim registry.
28
- *
29
- * FIXME: This function is problematic, because despite always returning a valid Carrier,
30
- * it has an optional `__SENTRY__` property, which then in turn requires us to always perform an unnecessary check
31
- * at the call-site. We always access the carrier through this function, so we can guarantee that `__SENTRY__` is there.
32
- **/
33
- export declare function getMainCarrier(): Carrier;
34
- /** Will either get the existing sentry carrier, or create a new one. */
35
- export declare function getSentryCarrier(carrier: Carrier): SentryCarrier;
36
- export {};
37
- //# sourceMappingURL=carrier.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"carrier.d.ts","sourceRoot":"","sources":["../../../../../core/src/carrier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjE;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,KAAK,gBAAgB,GAAG;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,aAAa,CAAC,CAAC;AAEtD,UAAU,aAAa;IACrB,GAAG,CAAC,EAAE,oBAAoB,CAAC;IAC3B,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAE1B,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,qBAAqB,CAAC,EAAE,KAAK,CAAC;IAC9B,mBAAmB,CAAC,EAAE,KAAK,CAAC;IAC5B,wBAAwB,CAAC,EAAE,OAAO,CAAC,MAAM,EAAE,iBAAiB,CAAC,GAAG,SAAS,CAAC;IAG1E,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE;QAEX,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC;KACzB,CAAC;CACH;AAED;;;;;;IAMI;AACJ,wBAAgB,cAAc,IAAI,OAAO,CAIxC;AAED,wEAAwE;AACxE,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,aAAa,CAShE"}
@@ -1,2 +0,0 @@
1
- export declare const DEFAULT_ENVIRONMENT = "production";
2
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../core/src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,eAAe,CAAC"}
@@ -1,55 +0,0 @@
1
- import type { Scope } from '@sentry/types';
2
- import type { Client } from '@sentry/types';
3
- /**
4
- * Get the currently active scope.
5
- */
6
- export declare function getCurrentScope(): Scope;
7
- /**
8
- * Get the currently active isolation scope.
9
- * The isolation scope is active for the current exection context.
10
- */
11
- export declare function getIsolationScope(): Scope;
12
- /**
13
- * Get the global scope.
14
- * This scope is applied to _all_ events.
15
- */
16
- export declare function getGlobalScope(): Scope;
17
- /**
18
- * Creates a new scope with and executes the given operation within.
19
- * The scope is automatically removed once the operation
20
- * finishes or throws.
21
- */
22
- export declare function withScope<T>(callback: (scope: Scope) => T): T;
23
- /**
24
- * Set the given scope as the active scope in the callback.
25
- */
26
- export declare function withScope<T>(scope: Scope | undefined, callback: (scope: Scope) => T): T;
27
- /**
28
- * Attempts to fork the current isolation scope and the current scope based on the current async context strategy. If no
29
- * async context strategy is set, the isolation scope and the current scope will not be forked (this is currently the
30
- * case, for example, in the browser).
31
- *
32
- * Usage of this function in environments without async context strategy is discouraged and may lead to unexpected behaviour.
33
- *
34
- * This function is intended for Sentry SDK and SDK integration development. It is not recommended to be used in "normal"
35
- * applications directly because it comes with pitfalls. Use at your own risk!
36
- */
37
- export declare function withIsolationScope<T>(callback: (isolationScope: Scope) => T): T;
38
- /**
39
- * Set the provided isolation scope as active in the given callback. If no
40
- * async context strategy is set, the isolation scope and the current scope will not be forked (this is currently the
41
- * case, for example, in the browser).
42
- *
43
- * Usage of this function in environments without async context strategy is discouraged and may lead to unexpected behaviour.
44
- *
45
- * This function is intended for Sentry SDK and SDK integration development. It is not recommended to be used in "normal"
46
- * applications directly because it comes with pitfalls. Use at your own risk!
47
- *
48
- * If you pass in `undefined` as a scope, it will fork a new isolation scope, the same as if no scope is passed.
49
- */
50
- export declare function withIsolationScope<T>(isolationScope: Scope | undefined, callback: (isolationScope: Scope) => T): T;
51
- /**
52
- * Get the currently active client.
53
- */
54
- export declare function getClient<C extends Client>(): C | undefined;
55
- //# sourceMappingURL=currentScopes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"currentScopes.d.ts","sourceRoot":"","sources":["../../../../../core/src/currentScopes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAM5C;;GAEG;AACH,wBAAgB,eAAe,IAAI,KAAK,CAIvC;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,KAAK,CAIzC;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,KAAK,CAEtC;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,CAAC,GAAG,CAAC,CAAC;AAC/D;;GAEG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,SAAS,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,CAAC,GAAG,CAAC,CAAC;AAwBzF;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,cAAc,EAAE,KAAK,KAAK,CAAC,GAAG,CAAC,CAAC;AACjF;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,cAAc,EAAE,KAAK,GAAG,SAAS,EAAE,QAAQ,EAAE,CAAC,cAAc,EAAE,KAAK,KAAK,CAAC,GAAG,CAAC,CAAC;AA0BpH;;GAEG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,KAAK,CAAC,GAAG,SAAS,CAE3D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug-build.d.ts","sourceRoot":"","sources":["../../../../../core/src/debug-build.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,WAAW,SAAkB,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { Scope } from '@sentry/types';
2
- /** Get the default current scope. */
3
- export declare function getDefaultCurrentScope(): Scope;
4
- /** Get the default isolation scope. */
5
- export declare function getDefaultIsolationScope(): Scope;
6
- //# sourceMappingURL=defaultScopes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaultScopes.d.ts","sourceRoot":"","sources":["../../../../../core/src/defaultScopes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAI3C,qCAAqC;AACrC,wBAAgB,sBAAsB,IAAI,KAAK,CAE9C;AAED,uCAAuC;AACvC,wBAAgB,wBAAwB,IAAI,KAAK,CAEhD"}
@@ -1,15 +0,0 @@
1
- import type { Client, DsnComponents, Event, EventEnvelope, SdkMetadata, Session, SessionAggregates, SessionEnvelope, SpanEnvelope } from '@sentry/types';
2
- import type { SentrySpan } from './tracing/sentrySpan';
3
- /** Creates an envelope from a Session */
4
- export declare function createSessionEnvelope(session: Session | SessionAggregates, dsn?: DsnComponents, metadata?: SdkMetadata, tunnel?: string): SessionEnvelope;
5
- /**
6
- * Create an Envelope from an event.
7
- */
8
- export declare function createEventEnvelope(event: Event, dsn?: DsnComponents, metadata?: SdkMetadata, tunnel?: string): EventEnvelope;
9
- /**
10
- * Create envelope from Span item.
11
- *
12
- * Takes an optional client and runs spans through `beforeSendSpan` if available.
13
- */
14
- export declare function createSpanEnvelope(spans: [SentrySpan, ...SentrySpan[]], client?: Client): SpanEnvelope;
15
- //# sourceMappingURL=envelope.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../../../../../core/src/envelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,aAAa,EAEb,KAAK,EACL,aAAa,EAGb,WAAW,EACX,OAAO,EACP,iBAAiB,EACjB,eAAe,EAEf,YAAY,EAGb,MAAM,eAAe,CAAC;AASvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAmBvD,yCAAyC;AACzC,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,OAAO,GAAG,iBAAiB,EACpC,GAAG,CAAC,EAAE,aAAa,EACnB,QAAQ,CAAC,EAAE,WAAW,EACtB,MAAM,CAAC,EAAE,MAAM,GACd,eAAe,CAYjB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,KAAK,EACZ,GAAG,CAAC,EAAE,aAAa,EACnB,QAAQ,CAAC,EAAE,WAAW,EACtB,MAAM,CAAC,EAAE,MAAM,GACd,aAAa,CAwBf;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,CAAC,UAAU,EAAE,GAAG,UAAU,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,YAAY,CAiCtG"}
@@ -1,19 +0,0 @@
1
- export declare const COUNTER_METRIC_TYPE: "c";
2
- export declare const GAUGE_METRIC_TYPE: "g";
3
- export declare const SET_METRIC_TYPE: "s";
4
- export declare const DISTRIBUTION_METRIC_TYPE: "d";
5
- /**
6
- * This does not match spec in https://develop.sentry.dev/sdk/metrics
7
- * but was chosen to optimize for the most common case in browser environments.
8
- */
9
- export declare const DEFAULT_BROWSER_FLUSH_INTERVAL = 5000;
10
- /**
11
- * SDKs are required to bucket into 10 second intervals (rollup in seconds)
12
- * which is the current lower bound of metric accuracy.
13
- */
14
- export declare const DEFAULT_FLUSH_INTERVAL = 10000;
15
- /**
16
- * The maximum number of metrics that should be stored in memory.
17
- */
18
- export declare const MAX_WEIGHT = 10000;
19
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../core/src/metrics/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,KAAe,CAAC;AAChD,eAAO,MAAM,iBAAiB,KAAe,CAAC;AAC9C,eAAO,MAAM,eAAe,KAAe,CAAC;AAC5C,eAAO,MAAM,wBAAwB,KAAe,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,8BAA8B,OAAO,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,UAAU,QAAQ,CAAC"}
@@ -1,13 +0,0 @@
1
- import type { MeasurementUnit, Span } from '@sentry/types';
2
- import type { MetricSummary } from '@sentry/types';
3
- import type { Primitive } from '@sentry/types';
4
- import type { MetricType } from './types';
5
- /**
6
- * Fetches the metric summary if it exists for the passed span
7
- */
8
- export declare function getMetricSummaryJsonForSpan(span: Span): Record<string, Array<MetricSummary>> | undefined;
9
- /**
10
- * Updates the metric summary on a span.
11
- */
12
- export declare function updateMetricSummaryOnSpan(span: Span, metricType: MetricType, sanitizedName: string, value: number, unit: MeasurementUnit, tags: Record<string, Primitive>, bucketKey: string): void;
13
- //# sourceMappingURL=metric-summary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metric-summary.d.ts","sourceRoot":"","sources":["../../../../../../core/src/metrics/metric-summary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAc1C;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,GAAG,SAAS,CAcxG;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,eAAe,EACrB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAC/B,SAAS,EAAE,MAAM,GAChB,IAAI,CAiCN"}
@@ -1,5 +0,0 @@
1
- import type { MetricBucketItem } from '@sentry/types';
2
- import type { COUNTER_METRIC_TYPE, DISTRIBUTION_METRIC_TYPE, GAUGE_METRIC_TYPE, SET_METRIC_TYPE } from './constants';
3
- export type MetricType = typeof COUNTER_METRIC_TYPE | typeof GAUGE_METRIC_TYPE | typeof SET_METRIC_TYPE | typeof DISTRIBUTION_METRIC_TYPE;
4
- export type MetricBucket = Map<string, MetricBucketItem>;
5
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../core/src/metrics/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAErH,MAAM,MAAM,UAAU,GAClB,OAAO,mBAAmB,GAC1B,OAAO,iBAAiB,GACxB,OAAO,eAAe,GACtB,OAAO,wBAAwB,CAAC;AAIpC,MAAM,MAAM,YAAY,GAAG,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC"}
@@ -1,211 +0,0 @@
1
- import type { Attachment, Breadcrumb, CaptureContext, Client, Context, Contexts, Event, EventHint, EventProcessor, Extra, Extras, Primitive, PropagationContext, RequestSession, Scope as ScopeInterface, ScopeData, Session, SeverityLevel, User } from '@sentry/types';
2
- /**
3
- * Holds additional event information.
4
- */
5
- declare class ScopeClass implements ScopeInterface {
6
- /** Flag if notifying is happening. */
7
- protected _notifyingListeners: boolean;
8
- /** Callback for client to receive scope changes. */
9
- protected _scopeListeners: Array<(scope: Scope) => void>;
10
- /** Callback list that will be called during event processing. */
11
- protected _eventProcessors: EventProcessor[];
12
- /** Array of breadcrumbs. */
13
- protected _breadcrumbs: Breadcrumb[];
14
- /** User */
15
- protected _user: User;
16
- /** Tags */
17
- protected _tags: {
18
- [key: string]: Primitive;
19
- };
20
- /** Extra */
21
- protected _extra: Extras;
22
- /** Contexts */
23
- protected _contexts: Contexts;
24
- /** Attachments */
25
- protected _attachments: Attachment[];
26
- /** Propagation Context for distributed tracing */
27
- protected _propagationContext: PropagationContext;
28
- /**
29
- * A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get
30
- * sent to Sentry
31
- */
32
- protected _sdkProcessingMetadata: {
33
- [key: string]: unknown;
34
- };
35
- /** Fingerprint */
36
- protected _fingerprint?: string[];
37
- /** Severity */
38
- protected _level?: SeverityLevel;
39
- /**
40
- * Transaction Name
41
- *
42
- * IMPORTANT: The transaction name on the scope has nothing to do with root spans/transaction objects.
43
- * It's purpose is to assign a transaction to the scope that's added to non-transaction events.
44
- */
45
- protected _transactionName?: string;
46
- /** Session */
47
- protected _session?: Session;
48
- /** Request Mode Session Status */
49
- protected _requestSession?: RequestSession;
50
- /** The client on this scope */
51
- protected _client?: Client;
52
- /** Contains the last event id of a captured event. */
53
- protected _lastEventId?: string;
54
- constructor();
55
- /**
56
- * @inheritDoc
57
- */
58
- clone(): ScopeClass;
59
- /**
60
- * @inheritDoc
61
- */
62
- setClient(client: Client | undefined): void;
63
- /**
64
- * @inheritDoc
65
- */
66
- setLastEventId(lastEventId: string | undefined): void;
67
- /**
68
- * @inheritDoc
69
- */
70
- getClient<C extends Client>(): C | undefined;
71
- /**
72
- * @inheritDoc
73
- */
74
- lastEventId(): string | undefined;
75
- /**
76
- * @inheritDoc
77
- */
78
- addScopeListener(callback: (scope: Scope) => void): void;
79
- /**
80
- * @inheritDoc
81
- */
82
- addEventProcessor(callback: EventProcessor): this;
83
- /**
84
- * @inheritDoc
85
- */
86
- setUser(user: User | null): this;
87
- /**
88
- * @inheritDoc
89
- */
90
- getUser(): User | undefined;
91
- /**
92
- * @inheritDoc
93
- */
94
- getRequestSession(): RequestSession | undefined;
95
- /**
96
- * @inheritDoc
97
- */
98
- setRequestSession(requestSession?: RequestSession): this;
99
- /**
100
- * @inheritDoc
101
- */
102
- setTags(tags: {
103
- [key: string]: Primitive;
104
- }): this;
105
- /**
106
- * @inheritDoc
107
- */
108
- setTag(key: string, value: Primitive): this;
109
- /**
110
- * @inheritDoc
111
- */
112
- setExtras(extras: Extras): this;
113
- /**
114
- * @inheritDoc
115
- */
116
- setExtra(key: string, extra: Extra): this;
117
- /**
118
- * @inheritDoc
119
- */
120
- setFingerprint(fingerprint: string[]): this;
121
- /**
122
- * @inheritDoc
123
- */
124
- setLevel(level: SeverityLevel): this;
125
- /**
126
- * @inheritDoc
127
- */
128
- setTransactionName(name?: string): this;
129
- /**
130
- * @inheritDoc
131
- */
132
- setContext(key: string, context: Context | null): this;
133
- /**
134
- * @inheritDoc
135
- */
136
- setSession(session?: Session): this;
137
- /**
138
- * @inheritDoc
139
- */
140
- getSession(): Session | undefined;
141
- /**
142
- * @inheritDoc
143
- */
144
- update(captureContext?: CaptureContext): this;
145
- /**
146
- * @inheritDoc
147
- */
148
- clear(): this;
149
- /**
150
- * @inheritDoc
151
- */
152
- addBreadcrumb(breadcrumb: Breadcrumb, maxBreadcrumbs?: number): this;
153
- /**
154
- * @inheritDoc
155
- */
156
- getLastBreadcrumb(): Breadcrumb | undefined;
157
- /**
158
- * @inheritDoc
159
- */
160
- clearBreadcrumbs(): this;
161
- /**
162
- * @inheritDoc
163
- */
164
- addAttachment(attachment: Attachment): this;
165
- /**
166
- * @inheritDoc
167
- */
168
- clearAttachments(): this;
169
- /** @inheritDoc */
170
- getScopeData(): ScopeData;
171
- /**
172
- * @inheritDoc
173
- */
174
- setSDKProcessingMetadata(newData: {
175
- [key: string]: unknown;
176
- }): this;
177
- /**
178
- * @inheritDoc
179
- */
180
- setPropagationContext(context: PropagationContext): this;
181
- /**
182
- * @inheritDoc
183
- */
184
- getPropagationContext(): PropagationContext;
185
- /**
186
- * @inheritDoc
187
- */
188
- captureException(exception: unknown, hint?: EventHint): string;
189
- /**
190
- * @inheritDoc
191
- */
192
- captureMessage(message: string, level?: SeverityLevel, hint?: EventHint): string;
193
- /**
194
- * @inheritDoc
195
- */
196
- captureEvent(event: Event, hint?: EventHint): string;
197
- /**
198
- * This will be called on every set call.
199
- */
200
- protected _notifyScopeListeners(): void;
201
- }
202
- /**
203
- * Holds additional event information.
204
- */
205
- export declare const Scope: typeof ScopeClass;
206
- /**
207
- * Holds additional event information.
208
- */
209
- export type Scope = ScopeInterface;
210
- export {};
211
- //# sourceMappingURL=scope.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../../../../core/src/scope.ts"],"names":[],"mappings":"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"}
@@ -1,33 +0,0 @@
1
- /**
2
- * Use this attribute to represent the source of a span.
3
- * Should be one of: custom, url, route, view, component, task, unknown
4
- *
5
- */
6
- export declare const SEMANTIC_ATTRIBUTE_SENTRY_SOURCE = "sentry.source";
7
- /**
8
- * Use this attribute to represent the sample rate used for a span.
9
- */
10
- export declare const SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE = "sentry.sample_rate";
11
- /**
12
- * Use this attribute to represent the operation of a span.
13
- */
14
- export declare const SEMANTIC_ATTRIBUTE_SENTRY_OP = "sentry.op";
15
- /**
16
- * Use this attribute to represent the origin of a span.
17
- */
18
- export declare const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = "sentry.origin";
19
- /** The reason why an idle span finished. */
20
- export declare const SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON = "sentry.idle_span_finish_reason";
21
- /** The unit of a measurement, which may be stored as a TimedEvent. */
22
- export declare const SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT = "sentry.measurement_unit";
23
- /** The value of a measurement, which may be stored as a TimedEvent. */
24
- export declare const SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE = "sentry.measurement_value";
25
- /**
26
- * The id of the profile that this span occured in.
27
- */
28
- export declare const SEMANTIC_ATTRIBUTE_PROFILE_ID = "sentry.profile_id";
29
- export declare const SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME = "sentry.exclusive_time";
30
- export declare const SEMANTIC_ATTRIBUTE_CACHE_HIT = "cache.hit";
31
- export declare const SEMANTIC_ATTRIBUTE_CACHE_KEY = "cache.key";
32
- export declare const SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE = "cache.item_size";
33
- //# sourceMappingURL=semanticAttributes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"semanticAttributes.d.ts","sourceRoot":"","sources":["../../../../../core/src/semanticAttributes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,kBAAkB,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,qCAAqC,uBAAuB,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,4BAA4B,cAAc,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,gCAAgC,kBAAkB,CAAC;AAEhE,4CAA4C;AAC5C,eAAO,MAAM,iDAAiD,mCAAmC,CAAC;AAElG,sEAAsE;AACtE,eAAO,MAAM,0CAA0C,4BAA4B,CAAC;AAEpF,uEAAuE;AACvE,eAAO,MAAM,2CAA2C,6BAA6B,CAAC;AAEtF;;GAEG;AACH,eAAO,MAAM,6BAA6B,sBAAsB,CAAC;AAEjE,eAAO,MAAM,iCAAiC,0BAA0B,CAAC;AAEzE,eAAO,MAAM,4BAA4B,cAAc,CAAC;AAExD,eAAO,MAAM,4BAA4B,cAAc,CAAC;AAExD,eAAO,MAAM,kCAAkC,oBAAoB,CAAC"}
@@ -1,35 +0,0 @@
1
- import type { Session, SessionContext, SessionStatus } from '@sentry/types';
2
- /**
3
- * Creates a new `Session` object by setting certain default parameters. If optional @param context
4
- * is passed, the passed properties are applied to the session object.
5
- *
6
- * @param context (optional) additional properties to be applied to the returned session object
7
- *
8
- * @returns a new `Session` object
9
- */
10
- export declare function makeSession(context?: Omit<SessionContext, 'started' | 'status'>): Session;
11
- /**
12
- * Updates a session object with the properties passed in the context.
13
- *
14
- * Note that this function mutates the passed object and returns void.
15
- * (Had to do this instead of returning a new and updated session because closing and sending a session
16
- * makes an update to the session after it was passed to the sending logic.
17
- * @see BaseClient.captureSession )
18
- *
19
- * @param session the `Session` to update
20
- * @param context the `SessionContext` holding the properties that should be updated in @param session
21
- */
22
- export declare function updateSession(session: Session, context?: SessionContext): void;
23
- /**
24
- * Closes a session by setting its status and updating the session object with it.
25
- * Internally calls `updateSession` to update the passed session object.
26
- *
27
- * Note that this function mutates the passed session (@see updateSession for explanation).
28
- *
29
- * @param session the `Session` object to be closed
30
- * @param status the `SessionStatus` with which the session was closed. If you don't pass a status,
31
- * this function will keep the previously set status, unless it was `'ok'` in which case
32
- * it is changed to `'exited'`.
33
- */
34
- export declare function closeSession(session: Session, status?: Exclude<SessionStatus, 'ok'>): void;
35
- //# sourceMappingURL=session.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../../core/src/session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE/F;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,QAAQ,CAAC,GAAG,OAAO,CAqBzF;AAED;;;;;;;;;;GAUG;AAEH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,cAAmB,GAAG,IAAI,CA2DlF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,GAAG,IAAI,CAS1F"}
@@ -1,24 +0,0 @@
1
- import type { Client, DynamicSamplingContext, Span } from '@sentry/types';
2
- /**
3
- * Freeze the given DSC on the given span.
4
- */
5
- export declare function freezeDscOnSpan(span: Span, dsc: Partial<DynamicSamplingContext>): void;
6
- /**
7
- * Creates a dynamic sampling context from a client.
8
- *
9
- * Dispatches the `createDsc` lifecycle hook as a side effect.
10
- */
11
- export declare function getDynamicSamplingContextFromClient(trace_id: string, client: Client): DynamicSamplingContext;
12
- /**
13
- * Creates a dynamic sampling context from a span (and client and scope)
14
- *
15
- * @param span the span from which a few values like the root span name and sample rate are extracted.
16
- *
17
- * @returns a dynamic sampling context
18
- */
19
- export declare function getDynamicSamplingContextFromSpan(span: Span): Readonly<Partial<DynamicSamplingContext>>;
20
- /**
21
- * Convert a Span to a baggage header.
22
- */
23
- export declare function spanToBaggageHeader(span: Span): string | undefined;
24
- //# sourceMappingURL=dynamicSamplingContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamicSamplingContext.d.ts","sourceRoot":"","sources":["../../../../../../core/src/tracing/dynamicSamplingContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAuB1E;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAGtF;AAED;;;;GAIG;AACH,wBAAgB,mCAAmC,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,sBAAsB,CAe5G;AAED;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAkDvG;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAGlE"}
@@ -1,10 +0,0 @@
1
- import type { Span } from '@sentry/types';
2
- /**
3
- * Print a log message for a started span.
4
- */
5
- export declare function logSpanStart(span: Span): void;
6
- /**
7
- * Print a log message for an ended span.
8
- */
9
- export declare function logSpanEnd(span: Span): void;
10
- //# sourceMappingURL=logSpans.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logSpans.d.ts","sourceRoot":"","sources":["../../../../../../core/src/tracing/logSpans.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAK1C;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CA+B7C;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAU3C"}
@@ -1,10 +0,0 @@
1
- import type { MeasurementUnit, Measurements, TimedEvent } from '@sentry/types';
2
- /**
3
- * Adds a measurement to the current active transaction.
4
- */
5
- export declare function setMeasurement(name: string, value: number, unit: MeasurementUnit): void;
6
- /**
7
- * Convert timed events to measurements.
8
- */
9
- export declare function timedEventsToMeasurements(events: TimedEvent[]): Measurements | undefined;
10
- //# sourceMappingURL=measurement.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"measurement.d.ts","sourceRoot":"","sources":["../../../../../../core/src/tracing/measurement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAO/E;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,GAAG,IAAI,CAUvF;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,YAAY,GAAG,SAAS,CAiBxF"}
@@ -1,9 +0,0 @@
1
- import type { Options, SamplingContext } from '@sentry/types';
2
- /**
3
- * Makes a sampling decision for the given options.
4
- *
5
- * Called every time a root span is created. Only root spans which emerge with a `sampled` value of `true` will be
6
- * sent to Sentry.
7
- */
8
- export declare function sampleSpan(options: Pick<Options, 'tracesSampleRate' | 'tracesSampler' | 'enableTracing'>, samplingContext: SamplingContext): [sampled: boolean, sampleRate?: number];
9
- //# sourceMappingURL=sampling.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sampling.d.ts","sourceRoot":"","sources":["../../../../../../core/src/tracing/sampling.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAO9D;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,kBAAkB,GAAG,eAAe,GAAG,eAAe,CAAC,EAC9E,eAAe,EAAE,eAAe,GAC/B,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,CA0DzC"}
@@ -1,26 +0,0 @@
1
- import type { SentrySpanArguments, Span, SpanAttributeValue, SpanAttributes, SpanContextData, SpanStatus, SpanTimeInput } from '@sentry/types';
2
- /**
3
- * A Sentry Span that is non-recording, meaning it will not be sent to Sentry.
4
- */
5
- export declare class SentryNonRecordingSpan implements Span {
6
- private _traceId;
7
- private _spanId;
8
- constructor(spanContext?: SentrySpanArguments);
9
- /** @inheritdoc */
10
- spanContext(): SpanContextData;
11
- /** @inheritdoc */
12
- end(_timestamp?: SpanTimeInput): void;
13
- /** @inheritdoc */
14
- setAttribute(_key: string, _value: SpanAttributeValue | undefined): this;
15
- /** @inheritdoc */
16
- setAttributes(_values: SpanAttributes): this;
17
- /** @inheritdoc */
18
- setStatus(_status: SpanStatus): this;
19
- /** @inheritdoc */
20
- updateName(_name: string): this;
21
- /** @inheritdoc */
22
- isRecording(): boolean;
23
- /** @inheritdoc */
24
- addEvent(_name: string, _attributesOrStartTime?: SpanAttributes | SpanTimeInput, _startTime?: SpanTimeInput): this;
25
- }
26
- //# sourceMappingURL=sentryNonRecordingSpan.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sentryNonRecordingSpan.d.ts","sourceRoot":"","sources":["../../../../../../core/src/tracing/sentryNonRecordingSpan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,IAAI,EACJ,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,UAAU,EACV,aAAa,EACd,MAAM,eAAe,CAAC;AAIvB;;GAEG;AACH,qBAAa,sBAAuB,YAAW,IAAI;IACjD,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,OAAO,CAAS;gBAEL,WAAW,GAAE,mBAAwB;IAKxD,kBAAkB;IACX,WAAW,IAAI,eAAe;IAQrC,kBAAkB;IAEX,GAAG,CAAC,UAAU,CAAC,EAAE,aAAa,GAAG,IAAI;IAE5C,kBAAkB;IACX,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAI/E,kBAAkB;IACX,aAAa,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAInD,kBAAkB;IACX,SAAS,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI;IAI3C,kBAAkB;IACX,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAItC,kBAAkB;IACX,WAAW,IAAI,OAAO;IAI7B,kBAAkB;IACX,QAAQ,CACb,KAAK,EAAE,MAAM,EACb,sBAAsB,CAAC,EAAE,cAAc,GAAG,aAAa,EACvD,UAAU,CAAC,EAAE,aAAa,GACzB,IAAI;CAGR"}