@sentry/core 10.32.0-alpha.0 → 10.32.1
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/build/cjs/attributes.js +74 -57
- package/build/cjs/attributes.js.map +1 -1
- package/build/cjs/client.js +6 -11
- package/build/cjs/client.js.map +1 -1
- package/build/cjs/envelope.js +7 -41
- package/build/cjs/envelope.js.map +1 -1
- package/build/cjs/index.js +0 -29
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/integrations/eventFilters.js +1 -1
- package/build/cjs/integrations/eventFilters.js.map +1 -1
- package/build/cjs/integrations/requestdata.js +6 -72
- package/build/cjs/integrations/requestdata.js.map +1 -1
- package/build/cjs/integrations/supabase.js.map +1 -1
- package/build/cjs/logs/internal.js +8 -54
- package/build/cjs/logs/internal.js.map +1 -1
- package/build/cjs/scope.js +12 -6
- package/build/cjs/scope.js.map +1 -1
- package/build/cjs/semanticAttributes.js +0 -36
- package/build/cjs/semanticAttributes.js.map +1 -1
- package/build/cjs/tracing/sentrySpan.js +0 -31
- package/build/cjs/tracing/sentrySpan.js.map +1 -1
- package/build/cjs/tracing/trace.js +0 -1
- package/build/cjs/tracing/trace.js.map +1 -1
- package/build/cjs/tracing/vercel-ai/index.js +9 -1
- package/build/cjs/tracing/vercel-ai/index.js.map +1 -1
- package/build/cjs/utils/aggregate-errors.js +4 -4
- package/build/cjs/utils/aggregate-errors.js.map +1 -1
- package/build/cjs/utils/applyScopeDataToEvent.js +1 -4
- package/build/cjs/utils/applyScopeDataToEvent.js.map +1 -1
- package/build/cjs/utils/featureFlags.js +0 -1
- package/build/cjs/utils/featureFlags.js.map +1 -1
- package/build/cjs/utils/is.js +2 -0
- package/build/cjs/utils/is.js.map +1 -1
- package/build/cjs/utils/should-ignore-span.js +9 -31
- package/build/cjs/utils/should-ignore-span.js.map +1 -1
- package/build/cjs/utils/spanUtils.js +2 -101
- package/build/cjs/utils/spanUtils.js.map +1 -1
- package/build/cjs/utils/version.js +1 -1
- package/build/cjs/utils/version.js.map +1 -1
- package/build/esm/attributes.js +74 -58
- package/build/esm/attributes.js.map +1 -1
- package/build/esm/client.js +1 -6
- package/build/esm/client.js.map +1 -1
- package/build/esm/envelope.js +8 -41
- package/build/esm/envelope.js.map +1 -1
- package/build/esm/index.js +3 -9
- package/build/esm/index.js.map +1 -1
- package/build/esm/integrations/eventFilters.js +1 -1
- package/build/esm/integrations/eventFilters.js.map +1 -1
- package/build/esm/integrations/requestdata.js +6 -72
- package/build/esm/integrations/requestdata.js.map +1 -1
- package/build/esm/integrations/supabase.js.map +1 -1
- package/build/esm/logs/internal.js +9 -54
- package/build/esm/logs/internal.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/scope.js +12 -6
- package/build/esm/scope.js.map +1 -1
- package/build/esm/semanticAttributes.js +1 -26
- package/build/esm/semanticAttributes.js.map +1 -1
- package/build/esm/tracing/sentrySpan.js +1 -32
- package/build/esm/tracing/sentrySpan.js.map +1 -1
- package/build/esm/tracing/trace.js +0 -1
- package/build/esm/tracing/trace.js.map +1 -1
- package/build/esm/tracing/vercel-ai/index.js +10 -2
- package/build/esm/tracing/vercel-ai/index.js.map +1 -1
- package/build/esm/utils/aggregate-errors.js +4 -4
- package/build/esm/utils/aggregate-errors.js.map +1 -1
- package/build/esm/utils/applyScopeDataToEvent.js +1 -4
- package/build/esm/utils/applyScopeDataToEvent.js.map +1 -1
- package/build/esm/utils/featureFlags.js +0 -1
- package/build/esm/utils/featureFlags.js.map +1 -1
- package/build/esm/utils/is.js +2 -0
- package/build/esm/utils/is.js.map +1 -1
- package/build/esm/utils/should-ignore-span.js +9 -31
- package/build/esm/utils/should-ignore-span.js.map +1 -1
- package/build/esm/utils/spanUtils.js +3 -97
- package/build/esm/utils/spanUtils.js.map +1 -1
- package/build/esm/utils/version.js +1 -1
- package/build/esm/utils/version.js.map +1 -1
- package/build/types/attributes.d.ts +18 -5
- package/build/types/attributes.d.ts.map +1 -1
- package/build/types/client.d.ts +2 -40
- package/build/types/client.d.ts.map +1 -1
- package/build/types/envelope.d.ts +1 -6
- package/build/types/envelope.d.ts.map +1 -1
- package/build/types/index.d.ts +4 -10
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/requestdata.d.ts.map +1 -1
- package/build/types/integrations/supabase.d.ts.map +1 -1
- package/build/types/logs/internal.d.ts +1 -9
- package/build/types/logs/internal.d.ts.map +1 -1
- package/build/types/scope.d.ts +12 -6
- package/build/types/scope.d.ts.map +1 -1
- package/build/types/semanticAttributes.d.ts +0 -21
- package/build/types/semanticAttributes.d.ts.map +1 -1
- package/build/types/tracing/sentrySpan.d.ts +1 -10
- package/build/types/tracing/sentrySpan.d.ts.map +1 -1
- package/build/types/tracing/vercel-ai/index.d.ts.map +1 -1
- package/build/types/types-hoist/breadcrumb.d.ts.map +1 -1
- package/build/types/types-hoist/context.d.ts.map +1 -1
- package/build/types/types-hoist/envelope.d.ts +2 -22
- package/build/types/types-hoist/envelope.d.ts.map +1 -1
- package/build/types/types-hoist/error.d.ts.map +1 -1
- package/build/types/types-hoist/event.d.ts.map +1 -1
- package/build/types/types-hoist/instrument.d.ts.map +1 -1
- package/build/types/types-hoist/integration.d.ts.map +1 -1
- package/build/types/types-hoist/link.d.ts +2 -2
- package/build/types/types-hoist/link.d.ts.map +1 -1
- package/build/types/types-hoist/log.d.ts +2 -14
- package/build/types/types-hoist/log.d.ts.map +1 -1
- package/build/types/types-hoist/misc.d.ts.map +1 -1
- package/build/types/types-hoist/options.d.ts +2 -18
- package/build/types/types-hoist/options.d.ts.map +1 -1
- package/build/types/types-hoist/polymorphics.d.ts.map +1 -1
- package/build/types/types-hoist/samplingcontext.d.ts.map +1 -1
- package/build/types/types-hoist/span.d.ts +0 -27
- package/build/types/types-hoist/span.d.ts.map +1 -1
- package/build/types/types-hoist/stackframe.d.ts.map +1 -1
- package/build/types/types-hoist/user.d.ts.map +1 -1
- package/build/types/utils/applyScopeDataToEvent.d.ts +1 -1
- package/build/types/utils/applyScopeDataToEvent.d.ts.map +1 -1
- package/build/types/utils/featureFlags.d.ts.map +1 -1
- package/build/types/utils/is.d.ts +1 -1
- package/build/types/utils/is.d.ts.map +1 -1
- package/build/types/utils/should-ignore-span.d.ts +3 -3
- package/build/types/utils/should-ignore-span.d.ts.map +1 -1
- package/build/types/utils/spanUtils.d.ts +2 -26
- package/build/types/utils/spanUtils.d.ts.map +1 -1
- package/build/types-ts3.8/attributes.d.ts +18 -5
- package/build/types-ts3.8/client.d.ts +2 -40
- package/build/types-ts3.8/envelope.d.ts +1 -6
- package/build/types-ts3.8/index.d.ts +4 -10
- package/build/types-ts3.8/logs/internal.d.ts +1 -9
- package/build/types-ts3.8/scope.d.ts +12 -6
- package/build/types-ts3.8/semanticAttributes.d.ts +0 -21
- package/build/types-ts3.8/tracing/sentrySpan.d.ts +1 -10
- package/build/types-ts3.8/types-hoist/envelope.d.ts +2 -22
- package/build/types-ts3.8/types-hoist/link.d.ts +2 -2
- package/build/types-ts3.8/types-hoist/log.d.ts +2 -14
- package/build/types-ts3.8/types-hoist/options.d.ts +2 -18
- package/build/types-ts3.8/types-hoist/span.d.ts +0 -27
- package/build/types-ts3.8/utils/applyScopeDataToEvent.d.ts +1 -1
- package/build/types-ts3.8/utils/is.d.ts +1 -1
- package/build/types-ts3.8/utils/should-ignore-span.d.ts +3 -3
- package/build/types-ts3.8/utils/spanUtils.d.ts +2 -26
- package/package.json +1 -1
- package/build/cjs/integrations/serverSpanStreaming.js +0 -51
- package/build/cjs/integrations/serverSpanStreaming.js.map +0 -1
- package/build/cjs/spans/captureSpan.js +0 -107
- package/build/cjs/spans/captureSpan.js.map +0 -1
- package/build/cjs/spans/spanBuffer.js +0 -117
- package/build/cjs/spans/spanBuffer.js.map +0 -1
- package/build/cjs/spans/spanFirstUtils.js +0 -187
- package/build/cjs/spans/spanFirstUtils.js.map +0 -1
- package/build/cjs/utils/beforeSendSpan.js +0 -36
- package/build/cjs/utils/beforeSendSpan.js.map +0 -1
- package/build/esm/integrations/serverSpanStreaming.js +0 -49
- package/build/esm/integrations/serverSpanStreaming.js.map +0 -1
- package/build/esm/spans/captureSpan.js +0 -105
- package/build/esm/spans/captureSpan.js.map +0 -1
- package/build/esm/spans/spanBuffer.js +0 -115
- package/build/esm/spans/spanBuffer.js.map +0 -1
- package/build/esm/spans/spanFirstUtils.js +0 -183
- package/build/esm/spans/spanFirstUtils.js.map +0 -1
- package/build/esm/utils/beforeSendSpan.js +0 -33
- package/build/esm/utils/beforeSendSpan.js.map +0 -1
- package/build/types/integrations/serverSpanStreaming.d.ts +0 -8
- package/build/types/integrations/serverSpanStreaming.d.ts.map +0 -1
- package/build/types/spans/captureSpan.d.ts +0 -10
- package/build/types/spans/captureSpan.d.ts.map +0 -1
- package/build/types/spans/spanBuffer.d.ts +0 -31
- package/build/types/spans/spanBuffer.d.ts.map +0 -1
- package/build/types/spans/spanFirstUtils.d.ts +0 -20
- package/build/types/spans/spanFirstUtils.d.ts.map +0 -1
- package/build/types/types-hoist/attributes.d.ts +0 -19
- package/build/types/types-hoist/attributes.d.ts.map +0 -1
- package/build/types/utils/beforeSendSpan.d.ts +0 -22
- package/build/types/utils/beforeSendSpan.d.ts.map +0 -1
- package/build/types-ts3.8/integrations/serverSpanStreaming.d.ts +0 -8
- package/build/types-ts3.8/spans/captureSpan.d.ts +0 -10
- package/build/types-ts3.8/spans/spanBuffer.d.ts +0 -31
- package/build/types-ts3.8/spans/spanFirstUtils.d.ts +0 -20
- package/build/types-ts3.8/types-hoist/attributes.d.ts +0 -19
- package/build/types-ts3.8/utils/beforeSendSpan.d.ts +0 -22
|
@@ -6,7 +6,7 @@ import type { Log } from './log';
|
|
|
6
6
|
import type { Metric } from './metric';
|
|
7
7
|
import type { TracesSamplerSamplingContext } from './samplingcontext';
|
|
8
8
|
import type { SdkMetadata } from './sdkmetadata';
|
|
9
|
-
import type { SpanJSON
|
|
9
|
+
import type { SpanJSON } from './span';
|
|
10
10
|
import type { StackLineParser, StackParser } from './stacktrace';
|
|
11
11
|
import type { TracePropagationTargets } from './tracing';
|
|
12
12
|
import type { BaseTransportOptions, Transport } from './transport';
|
|
@@ -356,15 +356,6 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
|
|
|
356
356
|
* @default false
|
|
357
357
|
*/
|
|
358
358
|
strictTraceContinuation?: boolean;
|
|
359
|
-
/**
|
|
360
|
-
* [Experimental] The trace lifecycle, determining whether spans are sent statically when the entire local span tree is complete, or
|
|
361
|
-
* in batches, following interval- and action-based triggers.
|
|
362
|
-
*
|
|
363
|
-
* @experimental this option is currently still experimental and its type, name, or entire presence is subject to break and change at any time.
|
|
364
|
-
*
|
|
365
|
-
* @default 'static'
|
|
366
|
-
*/
|
|
367
|
-
traceLifecycle?: 'static' | 'stream';
|
|
368
359
|
/**
|
|
369
360
|
* The organization ID for your Sentry project.
|
|
370
361
|
*
|
|
@@ -441,7 +432,7 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
|
|
|
441
432
|
*
|
|
442
433
|
* @returns The modified span payload that will be sent.
|
|
443
434
|
*/
|
|
444
|
-
beforeSendSpan?: (
|
|
435
|
+
beforeSendSpan?: (span: SpanJSON) => SpanJSON;
|
|
445
436
|
/**
|
|
446
437
|
* An event-processing callback for transaction events, guaranteed to be invoked after all other event
|
|
447
438
|
* processors. This allows an event to be modified or dropped before it's sent.
|
|
@@ -467,13 +458,6 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
|
|
|
467
458
|
*/
|
|
468
459
|
beforeBreadcrumb?: (breadcrumb: Breadcrumb, hint?: BreadcrumbHint) => Breadcrumb | null;
|
|
469
460
|
}
|
|
470
|
-
/**
|
|
471
|
-
* A callback that is known to be compatible with actually receiving and returning a span v2 JSON object.
|
|
472
|
-
* Only useful in conjunction with the {@link CoreOptions.traceLifecycle} option.
|
|
473
|
-
*/
|
|
474
|
-
export type SpanV2CompatibleBeforeSendSpanCallback = ((span: SpanV2JSON) => SpanV2JSON) & {
|
|
475
|
-
_v2: true;
|
|
476
|
-
};
|
|
477
461
|
/** Base configuration options for every SDK. */
|
|
478
462
|
export interface CoreOptions<TO extends BaseTransportOptions = BaseTransportOptions> extends Omit<Partial<ClientOptions<TO>>, 'integrations' | 'transport' | 'stackParser'> {
|
|
479
463
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/types-hoist/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/types-hoist/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,EAAE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CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,MAAM,CAAC;aACd;SACF,CAAC;KACH,CAAC;IACF,KAAK,CAAC,EAAE;QAEN,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,IAAI,CAAC,EAAE;QAEL,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"samplingcontext.d.ts","sourceRoot":"","sources":["../../../src/types-hoist/samplingcontext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,qBAAqB;
|
|
1
|
+
{"version":3,"file":"samplingcontext.d.ts","sourceRoot":"","sources":["../../../src/types-hoist/samplingcontext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAGpC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,qBAAqB;IAC5D;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;IAE1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,gBAAgB,CAAC;IAErC,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IAEb,0EAA0E;IAC1E,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,eAAe;IACnE;;OAEG;IACH,mBAAmB,EAAE,CAAC,kBAAkB,EAAE,MAAM,KAAK,MAAM,CAAC;CAC7D"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { TypedAttributes } from '../attributes';
|
|
2
1
|
import type { SpanLink, SpanLinkJSON } from './link';
|
|
3
2
|
import type { Measurements } from './measurement';
|
|
4
3
|
import type { HrTime } from './opentelemetry';
|
|
@@ -18,32 +17,6 @@ export type SpanAttributes = Partial<{
|
|
|
18
17
|
}> & Record<string, SpanAttributeValue | undefined>;
|
|
19
18
|
/** This type is aligned with the OpenTelemetry TimeInput type. */
|
|
20
19
|
export type SpanTimeInput = HrTime | number | Date;
|
|
21
|
-
/**
|
|
22
|
-
* JSON representation of a v2 span, as it should be sent to Sentry.
|
|
23
|
-
*/
|
|
24
|
-
export interface SpanV2JSON {
|
|
25
|
-
trace_id: string;
|
|
26
|
-
parent_span_id?: string;
|
|
27
|
-
span_id: string;
|
|
28
|
-
name: string;
|
|
29
|
-
start_timestamp: number;
|
|
30
|
-
end_timestamp: number;
|
|
31
|
-
status: 'ok' | 'error';
|
|
32
|
-
is_segment: boolean;
|
|
33
|
-
attributes?: TypedAttributes;
|
|
34
|
-
links?: SpanLinkJSON<TypedAttributes>[];
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* A SpanV2JSON with an attached reference to the segment span.
|
|
38
|
-
* This reference is used to compute dynamic sampling context before sending.
|
|
39
|
-
* The reference MUST be removed before sending the span envelope.
|
|
40
|
-
*/
|
|
41
|
-
export interface SpanV2JSONWithSegmentRef extends SpanV2JSON {
|
|
42
|
-
_segmentSpan: Span;
|
|
43
|
-
}
|
|
44
|
-
export type SerializedSpanContainer = {
|
|
45
|
-
items: Array<SpanV2JSON>;
|
|
46
|
-
};
|
|
47
20
|
/** A JSON representation of a span. */
|
|
48
21
|
export interface SpanJSON {
|
|
49
22
|
data: SpanAttributes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"span.d.ts","sourceRoot":"","sources":["../../../src/types-hoist/span.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"span.d.ts","sourceRoot":"","sources":["../../../src/types-hoist/span.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,KAAK,cAAc,GAAG,QAAQ,GAAG,MAAM,CAAC;AACxC,KAAK,kBAAkB,GAAG,MAAM,CAAC;AACjC,KAAK,yBAAyB,GAAG,MAAM,CAAC;AACxC,KAAK,yBAAyB,GAAG,MAAM,CAAC;AACxC,MAAM,MAAM,UAAU,GAClB,cAAc,GACd,GAAG,cAAc,IAAI,kBAAkB,EAAE,GACzC,GAAG,cAAc,IAAI,kBAAkB,IAAI,yBAAyB,EAAE,GACtE,GAAG,cAAc,IAAI,kBAAkB,IAAI,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;AAGxG,MAAM,MAAM,kBAAkB,GAC1B,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CAAC,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC,GAChC,KAAK,CA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AQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"stackframe.d.ts","sourceRoot":"","sources":["../../../src/types-hoist/stackframe.ts"],"names":[],"mappings":"AAAA,YAAY;AACZ,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,IAAI,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,eAAe,CAAC,EAAE,GAAG,CAAC;CACvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types-hoist/user.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,IAAI;
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types-hoist/user.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,IAAI;IAGnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -10,7 +10,7 @@ export declare function mergeScopeData(data: ScopeData, mergeData: ScopeData): v
|
|
|
10
10
|
* Merges certain scope data. Undefined values will overwrite any existing values.
|
|
11
11
|
* Exported only for tests.
|
|
12
12
|
*/
|
|
13
|
-
export declare function mergeAndOverwriteScopeData<Prop extends 'extra' | 'tags' | 'user' | 'contexts' | 'sdkProcessingMetadata', Data extends ScopeData>(data: Data, prop: Prop, mergeVal: Data[Prop]): void;
|
|
13
|
+
export declare function mergeAndOverwriteScopeData<Prop extends 'extra' | 'tags' | 'attributes' | 'user' | 'contexts' | 'sdkProcessingMetadata', Data extends ScopeData>(data: Data, prop: Prop, mergeVal: Data[Prop]): void;
|
|
14
14
|
/** Exported only for tests */
|
|
15
15
|
export declare function mergeArray<Prop extends 'breadcrumbs' | 'fingerprint'>(event: Event, prop: Prop, mergeVal: ScopeData[Prop]): void;
|
|
16
16
|
//# sourceMappingURL=applyScopeDataToEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyScopeDataToEvent.d.ts","sourceRoot":"","sources":["../../../src/utils/applyScopeDataToEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAKlD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,CAgBzE;AAED,yCAAyC;AACzC,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"applyScopeDataToEvent.d.ts","sourceRoot":"","sources":["../../../src/utils/applyScopeDataToEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAKlD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,CAgBzE;AAED,yCAAyC;AACzC,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI,CAuD1E;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,SAAS,OAAO,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM,GAAG,UAAU,GAAG,uBAAuB,EAC5F,IAAI,SAAS,SAAS,EACtB,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAEpD;AAED,8BAA8B;AAC9B,wBAAgB,UAAU,CAAC,IAAI,SAAS,aAAa,GAAG,aAAa,EACnE,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,GACxB,IAAI,CAUN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featureFlags.d.ts","sourceRoot":"","sources":["../../../src/utils/featureFlags.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAIlD;;;;GAIG;AAEH,MAAM,MAAM,WAAW,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAI/C;;GAEG;
|
|
1
|
+
{"version":3,"file":"featureFlags.d.ts","sourceRoot":"","sources":["../../../src/utils/featureFlags.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAIlD;;;;GAIG;AAEH,MAAM,MAAM,WAAW,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAI/C;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAcvE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,EACd,OAAO,GAAE,MAAmC,GAC3C,IAAI,CAON;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,WAAW,EAAE,EACpB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,MAAM,GACd,IAAI,CA4BN;AAED;;;;;;;;GAQG;AACH,wBAAgB,oCAAoC,CAClD,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,EACd,eAAe,GAAE,MAAqC,GACrD,IAAI,CAuBN"}
|
|
@@ -111,7 +111,7 @@ export declare function isSyntheticEvent(wat: unknown): boolean;
|
|
|
111
111
|
* @param base A constructor to be used in a check.
|
|
112
112
|
* @returns A boolean representing the result.
|
|
113
113
|
*/
|
|
114
|
-
export declare function isInstanceOf(wat: any, base: any):
|
|
114
|
+
export declare function isInstanceOf<T>(wat: any, base: any): wat is T;
|
|
115
115
|
/**
|
|
116
116
|
* Checks whether given value's type is a Vue ViewModel or a VNode.
|
|
117
117
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is.d.ts","sourceRoot":"","sources":["../../../src/utils/is.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAK9D;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,KAAK,CAUlD;AAYD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAElD;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAEhD;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAEpD;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAEpD;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,O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;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,OAAO,CAE9D"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ClientOptions } from '../types-hoist/options';
|
|
2
|
-
import type { SpanJSON
|
|
2
|
+
import type { SpanJSON } from '../types-hoist/span';
|
|
3
3
|
/**
|
|
4
4
|
* Check if a span should be ignored based on the ignoreSpans configuration.
|
|
5
5
|
*/
|
|
6
|
-
export declare function shouldIgnoreSpan(span: Pick<SpanJSON, 'description' | 'op'
|
|
6
|
+
export declare function shouldIgnoreSpan(span: Pick<SpanJSON, 'description' | 'op'>, ignoreSpans: Required<ClientOptions>['ignoreSpans']): boolean;
|
|
7
7
|
/**
|
|
8
8
|
* Takes a list of spans, and a span that was dropped, and re-parents the child spans of the dropped span to the parent of the dropped span, if possible.
|
|
9
9
|
* This mutates the spans array in place!
|
|
10
10
|
*/
|
|
11
|
-
export declare function reparentChildSpans(spans:
|
|
11
|
+
export declare function reparentChildSpans(spans: SpanJSON[], dropSpan: SpanJSON): void;
|
|
12
12
|
//# sourceMappingURL=should-ignore-span.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"should-ignore-span.d.ts","sourceRoot":"","sources":["../../../src/utils/should-ignore-span.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"should-ignore-span.d.ts","sourceRoot":"","sources":["../../../src/utils/should-ignore-span.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAQpD;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC,EAC1C,WAAW,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC,GAClD,OAAO,CAgCT;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAe9E"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { TypedAttributes } from '../attributes';
|
|
2
1
|
import type { TraceContext } from '../types-hoist/context';
|
|
3
2
|
import type { SpanLink, SpanLinkJSON } from '../types-hoist/link';
|
|
4
|
-
import type { Span, SpanAttributes, SpanJSON, SpanTimeInput
|
|
3
|
+
import type { Span, SpanAttributes, SpanJSON, SpanTimeInput } from '../types-hoist/span';
|
|
5
4
|
import type { SpanStatus } from '../types-hoist/spanStatus';
|
|
6
5
|
export declare const TRACE_FLAG_NONE = 0;
|
|
7
6
|
export declare const TRACE_FLAG_SAMPLED = 1;
|
|
@@ -29,12 +28,6 @@ export declare function spanToTraceparentHeader(span: Span): string;
|
|
|
29
28
|
* If the links array is empty, it returns `undefined` so the empty value can be dropped before it's sent.
|
|
30
29
|
*/
|
|
31
30
|
export declare function convertSpanLinksForEnvelope(links?: SpanLink[]): SpanLinkJSON[] | undefined;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @param links
|
|
35
|
-
* @returns
|
|
36
|
-
*/
|
|
37
|
-
export declare function getV2SpanLinks(links?: SpanLink[]): SpanLinkJSON<TypedAttributes>[] | undefined;
|
|
38
31
|
/**
|
|
39
32
|
* Convert a span time input into a timestamp in seconds.
|
|
40
33
|
*/
|
|
@@ -43,11 +36,6 @@ export declare function spanTimeInputToSeconds(input: SpanTimeInput | undefined)
|
|
|
43
36
|
* Convert a span to a JSON representation.
|
|
44
37
|
*/
|
|
45
38
|
export declare function spanToJSON(span: Span): SpanJSON;
|
|
46
|
-
/**
|
|
47
|
-
* Convert a span to a SpanV2JSON representation.
|
|
48
|
-
* @returns
|
|
49
|
-
*/
|
|
50
|
-
export declare function spanToV2JSON(span: Span): SpanV2JSON;
|
|
51
39
|
/** Exported only for tests. */
|
|
52
40
|
export interface OpenTelemetrySdkTraceBaseSpan extends Span {
|
|
53
41
|
attributes: SpanAttributes;
|
|
@@ -67,14 +55,6 @@ export interface OpenTelemetrySdkTraceBaseSpan extends Span {
|
|
|
67
55
|
export declare function spanIsSampled(span: Span): boolean;
|
|
68
56
|
/** Get the status message to use for a JSON representation of a span. */
|
|
69
57
|
export declare function getStatusMessage(status: SpanStatus | undefined): string | undefined;
|
|
70
|
-
/**
|
|
71
|
-
* Convert the various statuses to the ones expected by Sentry ('ok' is default)
|
|
72
|
-
*/
|
|
73
|
-
export declare function getV2StatusMessage(status: SpanStatus | undefined): 'ok' | 'error';
|
|
74
|
-
/**
|
|
75
|
-
* Convert the attributes to the ones expected by Sentry, including the type annotation
|
|
76
|
-
*/
|
|
77
|
-
export declare function getV2Attributes(attributes: SpanAttributes): TypedAttributes;
|
|
78
58
|
declare const CHILD_SPANS_FIELD = "_sentryChildSpans";
|
|
79
59
|
declare const ROOT_SPAN_FIELD = "_sentryRootSpan";
|
|
80
60
|
type SpanWithPotentialChildren = Span & {
|
|
@@ -94,11 +74,7 @@ export declare function getSpanDescendants(span: SpanWithPotentialChildren): Spa
|
|
|
94
74
|
/**
|
|
95
75
|
* Returns the root span of a given span.
|
|
96
76
|
*/
|
|
97
|
-
export declare
|
|
98
|
-
/**
|
|
99
|
-
* Returns the segment span of a given span.
|
|
100
|
-
*/
|
|
101
|
-
export declare function INTERNAL_getSegmentSpan(span: SpanWithPotentialChildren): Span;
|
|
77
|
+
export declare function getRootSpan(span: SpanWithPotentialChildren): Span;
|
|
102
78
|
/**
|
|
103
79
|
* Returns the currently active span.
|
|
104
80
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spanUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/spanUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"spanUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/spanUtils.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE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wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAKjD;AAED,yEAAyE;AACzE,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAUnF;AAED,QAAA,MAAM,iBAAiB,sBAAsB,CAAC;AAC9C,QAAA,MAAM,eAAe,oBAAoB,CAAC;AAE1C,KAAK,yBAAyB,GAAG,IAAI,GAAG;IACtC,CAAC,iBAAiB,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,yBAAyB,EAAE,SAAS,EAAE,IAAI,GAAG,IAAI,CAazF;AAED,kDAAkD;AAClD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,yBAAyB,EAAE,SAAS,EAAE,IAAI,GAAG,IAAI,CAI9F;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,yBAAyB,GAAG,IAAI,EAAE,CAoB1E;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,yBAAyB,GAAG,IAAI,CAEjE;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,IAAI,GAAG,SAAS,CAQhD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAU1C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAM7D"}
|
|
@@ -5,7 +5,7 @@ export type RawAttribute<T> = T extends {
|
|
|
5
5
|
} | {
|
|
6
6
|
unit: any;
|
|
7
7
|
} ? AttributeObject : T;
|
|
8
|
-
export type
|
|
8
|
+
export type Attributes = Record<string, TypedAttributeValue>;
|
|
9
9
|
export type AttributeValueType = string | number | boolean | Array<string> | Array<number> | Array<boolean>;
|
|
10
10
|
type AttributeTypeMap = {
|
|
11
11
|
string: string;
|
|
@@ -30,7 +30,7 @@ export type AttributeObject = {
|
|
|
30
30
|
value: unknown;
|
|
31
31
|
unit?: AttributeUnit;
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
type AttributeUnit = DurationUnit | InformationUnit | FractionUnit;
|
|
34
34
|
export type ValidatedAttributes<T> = {
|
|
35
35
|
[K in keyof T]: T[K] extends {
|
|
36
36
|
value: any;
|
|
@@ -46,12 +46,25 @@ export declare function isAttributeObject(maybeObj: unknown): maybeObj is Attrib
|
|
|
46
46
|
/**
|
|
47
47
|
* Converts an attribute value to a typed attribute value.
|
|
48
48
|
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
49
|
+
* For now, we intentionally only support primitive values and attribute objects with primitive values.
|
|
50
|
+
* If @param useFallback is true, we stringify non-primitive values to a string attribute value. Otherwise
|
|
51
|
+
* we return `undefined` for unsupported values.
|
|
51
52
|
*
|
|
52
53
|
* @param value - The value of the passed attribute.
|
|
54
|
+
* @param useFallback - If true, unsupported values will be stringified to a string attribute value.
|
|
55
|
+
* Defaults to false. In this case, `undefined` is returned for unsupported values.
|
|
53
56
|
* @returns The typed attribute.
|
|
54
57
|
*/
|
|
55
|
-
export declare function attributeValueToTypedAttributeValue(rawValue: unknown): TypedAttributeValue;
|
|
58
|
+
export declare function attributeValueToTypedAttributeValue(rawValue: unknown, useFallback?: boolean): TypedAttributeValue | void;
|
|
59
|
+
/**
|
|
60
|
+
* Serializes raw attributes to typed attributes as expected in our envelopes.
|
|
61
|
+
*
|
|
62
|
+
* @param attributes The raw attributes to serialize.
|
|
63
|
+
* @param fallback If true, unsupported values will be stringified to a string attribute value.
|
|
64
|
+
* Defaults to false. In this case, `undefined` is returned for unsupported values.
|
|
65
|
+
*
|
|
66
|
+
* @returns The serialized attributes.
|
|
67
|
+
*/
|
|
68
|
+
export declare function serializeAttributes<T>(attributes: RawAttributes<T>, fallback?: boolean): Attributes;
|
|
56
69
|
export {};
|
|
57
70
|
//# sourceMappingURL=attributes.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IntegrationIndex } from './integration';
|
|
2
|
-
import { Scope
|
|
2
|
+
import { Scope } from './scope';
|
|
3
3
|
import { Breadcrumb, BreadcrumbHint, FetchBreadcrumbHint, XhrBreadcrumbHint } from './types-hoist/breadcrumb';
|
|
4
4
|
import { CheckIn, MonitorConfig } from './types-hoist/checkin';
|
|
5
5
|
import { EventDropReason, Outcome } from './types-hoist/clientreport';
|
|
@@ -18,7 +18,7 @@ import { RequestEventData } from './types-hoist/request';
|
|
|
18
18
|
import { SdkMetadata } from './types-hoist/sdkmetadata';
|
|
19
19
|
import { Session, SessionAggregates } from './types-hoist/session';
|
|
20
20
|
import { SeverityLevel } from './types-hoist/severity';
|
|
21
|
-
import { Span, SpanAttributes, SpanContextData
|
|
21
|
+
import { Span, SpanAttributes, SpanContextData } from './types-hoist/span';
|
|
22
22
|
import { StartSpanOptions } from './types-hoist/startSpanOptions';
|
|
23
23
|
import { Transport, TransportMakeRequestResponse } from './types-hoist/transport';
|
|
24
24
|
/**
|
|
@@ -207,30 +207,6 @@ export declare abstract class Client<O extends ClientOptions = ClientOptions> {
|
|
|
207
207
|
* @returns {() => void} A function that, when executed, removes the registered callback.
|
|
208
208
|
*/
|
|
209
209
|
on(hook: 'spanEnd', callback: (span: Span) => void): () => void;
|
|
210
|
-
/**
|
|
211
|
-
* Register a callback for after a span is ended.
|
|
212
|
-
*/
|
|
213
|
-
on(hook: 'afterSpanEnd', callback: (span: Span) => void): () => void;
|
|
214
|
-
/**
|
|
215
|
-
* Register a callback for after a segment span is ended.
|
|
216
|
-
*/
|
|
217
|
-
on(hook: 'afterSegmentSpanEnd', callback: (span: Span) => void): () => void;
|
|
218
|
-
/**
|
|
219
|
-
* Register a callback for when the span JSON is ready to be enqueued into the span buffer.
|
|
220
|
-
*/
|
|
221
|
-
on(hook: 'enqueueSpan', callback: (spanJSON: SpanV2JSONWithSegmentRef) => void): () => void;
|
|
222
|
-
/**
|
|
223
|
-
* Register a callback for when a span JSON is processed, to add some data to the span JSON.
|
|
224
|
-
*/
|
|
225
|
-
on(hook: 'processSpan', callback: (spanJSON: SpanV2JSON, hint: {
|
|
226
|
-
readOnlySpan: Span;
|
|
227
|
-
}) => void): () => void;
|
|
228
|
-
/**
|
|
229
|
-
* Register a callback for when a segment span JSON is processed, to add some data to the segment span JSON.
|
|
230
|
-
*/
|
|
231
|
-
on(hook: 'processSegmentSpan', callback: (spanJSON: SpanV2JSON, hint: {
|
|
232
|
-
scopeData: ScopeData;
|
|
233
|
-
}) => void): () => void;
|
|
234
210
|
/**
|
|
235
211
|
* Register a callback for when an idle span is allowed to auto-finish.
|
|
236
212
|
* @returns {() => void} A function that, when executed, removes the registered callback.
|
|
@@ -426,20 +402,6 @@ export declare abstract class Client<O extends ClientOptions = ClientOptions> {
|
|
|
426
402
|
}): void;
|
|
427
403
|
/** Fire a hook whenever a span ends. */
|
|
428
404
|
emit(hook: 'spanEnd', span: Span): void;
|
|
429
|
-
/** Fire a hook after the `spanEnd` hook */
|
|
430
|
-
emit(hook: 'afterSpanEnd', span: Span): void;
|
|
431
|
-
/** Fire a hook after a span is processed, to add some attributes to the span JSON. */
|
|
432
|
-
emit(hook: 'processSpan', spanJSON: SpanV2JSON, hint: {
|
|
433
|
-
readOnlySpan: Span;
|
|
434
|
-
}): void;
|
|
435
|
-
/** Fire a hook after a span is processed, to add some attributes to the span JSON. */
|
|
436
|
-
emit(hook: 'processSegmentSpan', spanJSON: SpanV2JSON, hint: {
|
|
437
|
-
scopeData: ScopeData;
|
|
438
|
-
}): void;
|
|
439
|
-
/** Fire a hook after the `segmentSpanEnd` hook is fired. */
|
|
440
|
-
emit(hook: 'afterSegmentSpanEnd', span: Span): void;
|
|
441
|
-
/** Fire a hook after a span ready to be enqueued into the span buffer. */
|
|
442
|
-
emit(hook: 'enqueueSpan', spanJSON: SpanV2JSONWithSegmentRef): void;
|
|
443
405
|
/**
|
|
444
406
|
* Fire a hook indicating that an idle span is allowed to auto finish.
|
|
445
407
|
*/
|
|
@@ -2,12 +2,11 @@ import { Client } from './client';
|
|
|
2
2
|
import { SentrySpan } from './tracing/sentrySpan';
|
|
3
3
|
import { LegacyCSPReport } from './types-hoist/csp';
|
|
4
4
|
import { DsnComponents } from './types-hoist/dsn';
|
|
5
|
-
import {
|
|
5
|
+
import { EventEnvelope, RawSecurityEnvelope, SessionEnvelope, SpanEnvelope } from './types-hoist/envelope';
|
|
6
6
|
import { Event } from './types-hoist/event';
|
|
7
7
|
import { SdkInfo } from './types-hoist/sdkinfo';
|
|
8
8
|
import { SdkMetadata } from './types-hoist/sdkmetadata';
|
|
9
9
|
import { Session, SessionAggregates } from './types-hoist/session';
|
|
10
|
-
import { SpanV2JSON } from './types-hoist/span';
|
|
11
10
|
/**
|
|
12
11
|
* Apply SdkInfo (name, version, packages, integrations) to the corresponding event key.
|
|
13
12
|
* Merge with existing data if any.
|
|
@@ -30,10 +29,6 @@ export declare function createSpanEnvelope(spans: [
|
|
|
30
29
|
SentrySpan,
|
|
31
30
|
...SentrySpan[]
|
|
32
31
|
], client?: Client): SpanEnvelope;
|
|
33
|
-
/**
|
|
34
|
-
* Creates a span v2 envelope
|
|
35
|
-
*/
|
|
36
|
-
export declare function createSpanV2Envelope(serializedSpans: SpanV2JSON[], dsc: Partial<DynamicSamplingContext>, client: Client): SpanV2Envelope;
|
|
37
32
|
/**
|
|
38
33
|
* Create an Envelope from a CSP report.
|
|
39
34
|
*/
|
|
@@ -6,7 +6,7 @@ export { ServerRuntimeClientOptions } from './server-runtime-client';
|
|
|
6
6
|
export { IntegrationIndex } from './integration';
|
|
7
7
|
export * from './tracing';
|
|
8
8
|
export * from './semanticAttributes';
|
|
9
|
-
export { createEventEnvelope, createSessionEnvelope, createSpanEnvelope
|
|
9
|
+
export { createEventEnvelope, createSessionEnvelope, createSpanEnvelope } from './envelope';
|
|
10
10
|
export { captureCheckIn, withMonitor, captureException, captureEvent, captureMessage, lastEventId, close, flush, setContext, setExtra, setExtras, setTag, setTags, setUser, isInitialized, isEnabled, startSession, endSession, captureSession, addEventProcessor, } from './exports';
|
|
11
11
|
export { getCurrentScope, getIsolationScope, getGlobalScope, withScope, withIsolationScope, getClient, getTraceContextFromScope, } from './currentScopes';
|
|
12
12
|
export { getDefaultCurrentScope, getDefaultIsolationScope } from './defaultScopes';
|
|
@@ -35,10 +35,7 @@ export { handleCallbackErrors } from './utils/handleCallbackErrors';
|
|
|
35
35
|
export { parameterize, fmt } from './utils/parameterize';
|
|
36
36
|
export { addAutoIpAddressToSession } from './utils/ipAddress';
|
|
37
37
|
export { addAutoIpAddressToUser } from './utils/ipAddress';
|
|
38
|
-
export { convertSpanLinksForEnvelope, spanToTraceHeader, spanToJSON, spanIsSampled, spanToTraceContext, getSpanDescendants, getStatusMessage, getRootSpan,
|
|
39
|
-
export { captureSpan } from './spans/captureSpan';
|
|
40
|
-
export { safeSetSpanJSONAttributes } from './spans/spanFirstUtils';
|
|
41
|
-
export { SpanBuffer, SpanBufferOptions } from './spans/spanBuffer';
|
|
38
|
+
export { convertSpanLinksForEnvelope, spanToTraceHeader, spanToJSON, spanIsSampled, spanToTraceContext, getSpanDescendants, getStatusMessage, getRootSpan, getActiveSpan, addChildSpanToSpan, spanTimeInputToSeconds, updateSpanName, } from './utils/spanUtils';
|
|
42
39
|
export { _setSpanForScope as _INTERNAL_setSpanForScope } from './utils/spanOnScope';
|
|
43
40
|
export { parseSampleRate } from './utils/parseSampleRate';
|
|
44
41
|
export { applySdkMetadata } from './utils/sdkMetadata';
|
|
@@ -64,7 +61,6 @@ export { thirdPartyErrorFilterIntegration } from './integrations/third-party-err
|
|
|
64
61
|
export { consoleIntegration } from './integrations/console';
|
|
65
62
|
export { featureFlagsIntegration, FeatureFlagsIntegration } from './integrations/featureFlags';
|
|
66
63
|
export { growthbookIntegration } from './integrations/featureFlags';
|
|
67
|
-
export { serverSpanStreamingIntegration } from './integrations/serverSpanStreaming';
|
|
68
64
|
export { profiler } from './profiling';
|
|
69
65
|
export { instrumentFetchRequest } from './fetch';
|
|
70
66
|
export { trpcMiddleware } from './trpc';
|
|
@@ -149,8 +145,6 @@ export { flushIfServerless } from './utils/flushIfServerless';
|
|
|
149
145
|
export { SDK_VERSION } from './utils/version';
|
|
150
146
|
export { getDebugImagesForResources, getFilenameToDebugIdMap } from './utils/debug-ids';
|
|
151
147
|
export { escapeStringForRegex } from './vendor/escapeStringForRegex';
|
|
152
|
-
export { isV2BeforeSendSpanCallback, withStreamSpan } from './utils/beforeSendSpan';
|
|
153
|
-
export { shouldIgnoreSpan, reparentChildSpans } from './utils/should-ignore-span';
|
|
154
148
|
export { Attachment } from './types-hoist/attachment';
|
|
155
149
|
export { Breadcrumb, BreadcrumbHint, FetchBreadcrumbData, XhrBreadcrumbData, FetchBreadcrumbHint, XhrBreadcrumbHint, } from './types-hoist/breadcrumb';
|
|
156
150
|
export { ClientReport, Outcome, EventDropReason } from './types-hoist/clientreport';
|
|
@@ -158,7 +152,7 @@ export { Context, Contexts, DeviceContext, OsContext, AppContext, CultureContext
|
|
|
158
152
|
export { DataCategory } from './types-hoist/datacategory';
|
|
159
153
|
export { DsnComponents, DsnLike, DsnProtocol } from './types-hoist/dsn';
|
|
160
154
|
export { DebugImage, DebugMeta } from './types-hoist/debugMeta';
|
|
161
|
-
export { AttachmentItem, BaseEnvelopeHeaders, BaseEnvelopeItemHeaders, ClientReportEnvelope, ClientReportItem, DynamicSamplingContext, Envelope, EnvelopeItemType, EnvelopeItem, EventEnvelope, EventEnvelopeHeaders, EventItem, ReplayEnvelope, FeedbackItem, SessionEnvelope, SessionItem, UserFeedbackItem, CheckInItem, CheckInEnvelope, RawSecurityEnvelope, RawSecurityItem, ProfileItem, ProfileChunkEnvelope, ProfileChunkItem, SpanEnvelope,
|
|
155
|
+
export { AttachmentItem, BaseEnvelopeHeaders, BaseEnvelopeItemHeaders, ClientReportEnvelope, ClientReportItem, DynamicSamplingContext, Envelope, EnvelopeItemType, EnvelopeItem, EventEnvelope, EventEnvelopeHeaders, EventItem, ReplayEnvelope, FeedbackItem, SessionEnvelope, SessionItem, UserFeedbackItem, CheckInItem, CheckInEnvelope, RawSecurityEnvelope, RawSecurityItem, ProfileItem, ProfileChunkEnvelope, ProfileChunkItem, SpanEnvelope, SpanItem, LogEnvelope, MetricEnvelope, } from './types-hoist/envelope';
|
|
162
156
|
export { ExtendedError } from './types-hoist/error';
|
|
163
157
|
export { Event, EventHint, EventType, ErrorEvent, TransactionEvent } from './types-hoist/event';
|
|
164
158
|
export { EventProcessor } from './types-hoist/eventprocessor';
|
|
@@ -179,7 +173,7 @@ export { SdkInfo } from './types-hoist/sdkinfo';
|
|
|
179
173
|
export { SdkMetadata } from './types-hoist/sdkmetadata';
|
|
180
174
|
export { SessionAggregates, AggregationCounts, Session, SessionContext, SessionStatus, SerializedSession, } from './types-hoist/session';
|
|
181
175
|
export { SeverityLevel } from './types-hoist/severity';
|
|
182
|
-
export { Span, SentrySpanArguments, SpanOrigin, SpanAttributeValue, SpanAttributes, SpanTimeInput, SpanJSON, SpanContextData, TraceFlag,
|
|
176
|
+
export { Span, SentrySpanArguments, SpanOrigin, SpanAttributeValue, SpanAttributes, SpanTimeInput, SpanJSON, SpanContextData, TraceFlag, } from './types-hoist/span';
|
|
183
177
|
export { SpanStatus } from './types-hoist/spanStatus';
|
|
184
178
|
export { Log, LogSeverityLevel } from './types-hoist/log';
|
|
185
179
|
export { Metric, MetricType, SerializedMetric, SerializedMetricContainer, SerializedMetricAttributeValue, } from './types-hoist/metric';
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { Client } from '../client';
|
|
2
2
|
import { Scope } from '../scope';
|
|
3
|
-
import { Log, SerializedLog
|
|
4
|
-
/**
|
|
5
|
-
* Converts a log attribute to a serialized log attribute.
|
|
6
|
-
*
|
|
7
|
-
* @param key - The key of the log attribute.
|
|
8
|
-
* @param value - The value of the log attribute.
|
|
9
|
-
* @returns The serialized log attribute.
|
|
10
|
-
*/
|
|
11
|
-
export declare function logAttributeToSerializedLogAttribute(value: unknown): SerializedLogAttributeValue;
|
|
3
|
+
import { Log, SerializedLog } from '../types-hoist/log';
|
|
12
4
|
/**
|
|
13
5
|
* Captures a serialized log event and adds it to the log buffer for the given client.
|
|
14
6
|
*
|
|
@@ -174,8 +174,12 @@ export declare class Scope {
|
|
|
174
174
|
/**
|
|
175
175
|
* Sets attributes onto the scope.
|
|
176
176
|
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
177
|
+
* These attributes are currently only applied to logs.
|
|
178
|
+
* In the future, they will also be applied to metrics and spans.
|
|
179
|
+
*
|
|
180
|
+
* Important: For now, only strings, numbers and boolean attributes are supported, despite types allowing for
|
|
181
|
+
* more complex attribute types. We'll add this support in the future but already specify the wider type to
|
|
182
|
+
* avoid a breaking change in the future.
|
|
179
183
|
*
|
|
180
184
|
* @param newAttributes - The attributes to set on the scope. You can either pass in key-value pairs, or
|
|
181
185
|
* an object with a `value` and an optional `unit` (if applicable to your attribute).
|
|
@@ -185,7 +189,6 @@ export declare class Scope {
|
|
|
185
189
|
* scope.setAttributes({
|
|
186
190
|
* is_admin: true,
|
|
187
191
|
* payment_selection: 'credit_card',
|
|
188
|
-
* clicked_products: [130, 554, 292],
|
|
189
192
|
* render_duration: { value: 'render_duration', unit: 'ms' },
|
|
190
193
|
* });
|
|
191
194
|
* ```
|
|
@@ -194,8 +197,12 @@ export declare class Scope {
|
|
|
194
197
|
/**
|
|
195
198
|
* Sets an attribute onto the scope.
|
|
196
199
|
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
200
|
+
* These attributes are currently only applied to logs.
|
|
201
|
+
* In the future, they will also be applied to metrics and spans.
|
|
202
|
+
*
|
|
203
|
+
* Important: For now, only strings, numbers and boolean attributes are supported, despite types allowing for
|
|
204
|
+
* more complex attribute types. We'll add this support in the future but already specify the wider type to
|
|
205
|
+
* avoid a breaking change in the future.
|
|
199
206
|
*
|
|
200
207
|
* @param key - The attribute key.
|
|
201
208
|
* @param value - the attribute value. You can either pass in a raw value, or an attribute
|
|
@@ -204,7 +211,6 @@ export declare class Scope {
|
|
|
204
211
|
* @example
|
|
205
212
|
* ```typescript
|
|
206
213
|
* scope.setAttribute('is_admin', true);
|
|
207
|
-
* scope.setAttribute('clicked_products', [130, 554, 292]);
|
|
208
214
|
* scope.setAttribute('render_duration', { value: 'render_duration', unit: 'ms' });
|
|
209
215
|
* ```
|
|
210
216
|
*/
|
|
@@ -51,7 +51,6 @@ export declare const SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE = "cache.item_size";
|
|
|
51
51
|
/** TODO: Remove these once we update to latest semantic conventions */
|
|
52
52
|
export declare const SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD = "http.request.method";
|
|
53
53
|
export declare const SEMANTIC_ATTRIBUTE_URL_FULL = "url.full";
|
|
54
|
-
export declare const SEMANTIC_ATTRIBUTE_URL_QUERY = "url.query";
|
|
55
54
|
/**
|
|
56
55
|
* A span link attribute to mark the link as a special span link.
|
|
57
56
|
*
|
|
@@ -63,24 +62,4 @@ export declare const SEMANTIC_ATTRIBUTE_URL_QUERY = "url.query";
|
|
|
63
62
|
* @see https://develop.sentry.dev/sdk/telemetry/traces/span-links/#link-types
|
|
64
63
|
*/
|
|
65
64
|
export declare const SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE = "sentry.link.type";
|
|
66
|
-
/** The release version of the application */
|
|
67
|
-
export declare const SEMANTIC_ATTRIBUTE_SENTRY_RELEASE = "sentry.release";
|
|
68
|
-
/** The environment name (e.g., "production", "staging", "development") */
|
|
69
|
-
export declare const SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT = "sentry.environment";
|
|
70
|
-
/** The segment name (e.g., "GET /users") */
|
|
71
|
-
export declare const SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME = "sentry.segment.name";
|
|
72
|
-
/** The id of the segment that this span belongs to. */
|
|
73
|
-
export declare const SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID = "sentry.segment.id";
|
|
74
|
-
/** The user ID (gated by sendDefaultPii) */
|
|
75
|
-
export declare const SEMANTIC_ATTRIBUTE_USER_ID = "user.id";
|
|
76
|
-
/** The user email (gated by sendDefaultPii) */
|
|
77
|
-
export declare const SEMANTIC_ATTRIBUTE_USER_EMAIL = "user.email";
|
|
78
|
-
/** The user IP address (gated by sendDefaultPii) */
|
|
79
|
-
export declare const SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS = "user.ip_address";
|
|
80
|
-
/** The user username (gated by sendDefaultPii) */
|
|
81
|
-
export declare const SEMANTIC_ATTRIBUTE_USER_USERNAME = "user.name";
|
|
82
|
-
/** The name of the Sentry SDK (e.g., "sentry.php", "sentry.javascript") */
|
|
83
|
-
export declare const SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME = "sentry.sdk.name";
|
|
84
|
-
/** The version of the Sentry SDK */
|
|
85
|
-
export declare const SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION = "sentry.sdk.version";
|
|
86
65
|
//# sourceMappingURL=semanticAttributes.d.ts.map
|