@sentry/types 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/types",
3
- "version": "8.10.0",
3
+ "version": "8.11.0",
4
4
  "description": "Types for all Sentry JavaScript SDKs",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/types",
@@ -1,5 +1,5 @@
1
1
  import type { Scope } from './scope';
2
- import type { SpanAttributes, SpanTimeInput } from './span';
2
+ import type { Span, SpanAttributes, SpanTimeInput } from './span';
3
3
  export interface StartSpanOptions {
4
4
  /** A manually specified start time for the created `Span` object. */
5
5
  startTime?: SpanTimeInput;
@@ -11,6 +11,11 @@ export interface StartSpanOptions {
11
11
  onlyIfParent?: boolean;
12
12
  /** An op for the span. This is a categorization for spans. */
13
13
  op?: string;
14
+ /**
15
+ * If provided, make the new span a child of this span.
16
+ * If this is not provided, the new span will be a child of the currently active span.
17
+ */
18
+ parentSpan?: Span;
14
19
  /**
15
20
  * If set to true, this span will be forced to be treated as a transaction in the Sentry UI, if possible and applicable.
16
21
  * Note that it is up to the SDK to decide how exactly the span will be sent, which may change in future SDK versions.
@@ -1 +1 @@
1
- {"version":3,"file":"startSpanOptions.d.ts","sourceRoot":"","sources":["../../src/startSpanOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5D,MAAM,WAAW,gBAAgB;IAC/B,qEAAqE;IACrE,SAAS,CAAC,EAAE,aAAa,CAAC;IAE1B,gFAAgF;IAChF,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IAEb,iEAAiE;IACjE,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,8DAA8D;IAC9D,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,+BAA+B;IAC/B,UAAU,CAAC,EAAE,cAAc,CAAC;IAE5B;;OAEG;IACH,YAAY,CAAC,EAAE;QACb;;;;;;;;;;WAUG;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,CAAC;CACH"}
1
+ {"version":3,"file":"startSpanOptions.d.ts","sourceRoot":"","sources":["../../src/startSpanOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAElE,MAAM,WAAW,gBAAgB;IAC/B,qEAAqE;IACrE,SAAS,CAAC,EAAE,aAAa,CAAC;IAE1B,gFAAgF;IAChF,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IAEb,iEAAiE;IACjE,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,8DAA8D;IAC9D,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;IAElB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,+BAA+B;IAC/B,UAAU,CAAC,EAAE,cAAc,CAAC;IAE5B;;OAEG;IACH,YAAY,CAAC,EAAE;QACb;;;;;;;;;;WAUG;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,CAAC;CACH"}
@@ -1,5 +1,5 @@
1
1
  import { Scope } from './scope';
2
- import { SpanAttributes, SpanTimeInput } from './span';
2
+ import { Span, SpanAttributes, SpanTimeInput } from './span';
3
3
  export interface StartSpanOptions {
4
4
  /** A manually specified start time for the created `Span` object. */
5
5
  startTime?: SpanTimeInput;
@@ -11,6 +11,11 @@ export interface StartSpanOptions {
11
11
  onlyIfParent?: boolean;
12
12
  /** An op for the span. This is a categorization for spans. */
13
13
  op?: string;
14
+ /**
15
+ * If provided, make the new span a child of this span.
16
+ * If this is not provided, the new span will be a child of the currently active span.
17
+ */
18
+ parentSpan?: Span;
14
19
  /**
15
20
  * If set to true, this span will be forced to be treated as a transaction in the Sentry UI, if possible and applicable.
16
21
  * Note that it is up to the SDK to decide how exactly the span will be sent, which may change in future SDK versions.