@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.
- package/bindings/cpu_profiler.cc +5 -3
- package/lib/cjs/index.js +2 -662
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.js +2 -662
- package/lib/esm/index.js.map +1 -1
- package/lib/sentry_cpu_profiler-darwin-arm64-108.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-arm64-115.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-arm64-127.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-arm64-93.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-x64-108.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-x64-115.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-x64-127.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-x64-93.node +0 -0
- package/lib/sentry_cpu_profiler-linux-arm64-glibc-108.node +0 -0
- package/lib/sentry_cpu_profiler-linux-arm64-glibc-115.node +0 -0
- package/lib/sentry_cpu_profiler-linux-arm64-glibc-127.node +0 -0
- package/lib/sentry_cpu_profiler-linux-arm64-glibc-93.node +0 -0
- package/lib/sentry_cpu_profiler-linux-arm64-musl-108.node +0 -0
- package/lib/sentry_cpu_profiler-linux-arm64-musl-115.node +0 -0
- package/lib/sentry_cpu_profiler-linux-arm64-musl-127.node +0 -0
- package/lib/sentry_cpu_profiler-linux-arm64-musl-93.node +0 -0
- package/lib/sentry_cpu_profiler-linux-x64-glibc-108.node +0 -0
- package/lib/sentry_cpu_profiler-linux-x64-glibc-115.node +0 -0
- package/lib/sentry_cpu_profiler-linux-x64-glibc-127.node +0 -0
- package/lib/sentry_cpu_profiler-linux-x64-glibc-93.node +0 -0
- package/lib/sentry_cpu_profiler-linux-x64-musl-108.node +0 -0
- package/lib/sentry_cpu_profiler-linux-x64-musl-115.node +0 -0
- package/lib/sentry_cpu_profiler-linux-x64-musl-127.node +0 -0
- package/lib/sentry_cpu_profiler-linux-x64-musl-93.node +0 -0
- package/lib/sentry_cpu_profiler-win32-x64-108.node +0 -0
- package/lib/sentry_cpu_profiler-win32-x64-115.node +0 -0
- package/lib/sentry_cpu_profiler-win32-x64-127.node +0 -0
- package/lib/sentry_cpu_profiler-win32-x64-93.node +0 -0
- package/lib/types/cpu_profiler.d.ts.map +1 -0
- package/lib/types/debug-build.d.ts.map +1 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/integration.d.ts.map +1 -0
- package/lib/types/nodeVersion.d.ts.map +1 -0
- package/lib/types/spanProfileUtils.d.ts.map +1 -0
- package/lib/types/types.d.ts.map +1 -0
- package/lib/types/utils.d.ts.map +1 -0
- package/package.json +5 -5
- package/lib/types/core/src/asyncContext/index.d.ts +0 -14
- package/lib/types/core/src/asyncContext/index.d.ts.map +0 -1
- package/lib/types/core/src/asyncContext/stackStrategy.d.ts +0 -52
- package/lib/types/core/src/asyncContext/stackStrategy.d.ts.map +0 -1
- package/lib/types/core/src/asyncContext/types.d.ts +0 -47
- package/lib/types/core/src/asyncContext/types.d.ts.map +0 -1
- package/lib/types/core/src/carrier.d.ts +0 -37
- package/lib/types/core/src/carrier.d.ts.map +0 -1
- package/lib/types/core/src/constants.d.ts +0 -2
- package/lib/types/core/src/constants.d.ts.map +0 -1
- package/lib/types/core/src/currentScopes.d.ts +0 -55
- package/lib/types/core/src/currentScopes.d.ts.map +0 -1
- package/lib/types/core/src/debug-build.d.ts.map +0 -1
- package/lib/types/core/src/defaultScopes.d.ts +0 -6
- package/lib/types/core/src/defaultScopes.d.ts.map +0 -1
- package/lib/types/core/src/envelope.d.ts +0 -15
- package/lib/types/core/src/envelope.d.ts.map +0 -1
- package/lib/types/core/src/metrics/constants.d.ts +0 -19
- package/lib/types/core/src/metrics/constants.d.ts.map +0 -1
- package/lib/types/core/src/metrics/metric-summary.d.ts +0 -13
- package/lib/types/core/src/metrics/metric-summary.d.ts.map +0 -1
- package/lib/types/core/src/metrics/types.d.ts +0 -5
- package/lib/types/core/src/metrics/types.d.ts.map +0 -1
- package/lib/types/core/src/scope.d.ts +0 -211
- package/lib/types/core/src/scope.d.ts.map +0 -1
- package/lib/types/core/src/semanticAttributes.d.ts +0 -33
- package/lib/types/core/src/semanticAttributes.d.ts.map +0 -1
- package/lib/types/core/src/session.d.ts +0 -35
- package/lib/types/core/src/session.d.ts.map +0 -1
- package/lib/types/core/src/tracing/dynamicSamplingContext.d.ts +0 -24
- package/lib/types/core/src/tracing/dynamicSamplingContext.d.ts.map +0 -1
- package/lib/types/core/src/tracing/logSpans.d.ts +0 -10
- package/lib/types/core/src/tracing/logSpans.d.ts.map +0 -1
- package/lib/types/core/src/tracing/measurement.d.ts +0 -10
- package/lib/types/core/src/tracing/measurement.d.ts.map +0 -1
- package/lib/types/core/src/tracing/sampling.d.ts +0 -9
- package/lib/types/core/src/tracing/sampling.d.ts.map +0 -1
- package/lib/types/core/src/tracing/sentryNonRecordingSpan.d.ts +0 -26
- package/lib/types/core/src/tracing/sentryNonRecordingSpan.d.ts.map +0 -1
- package/lib/types/core/src/tracing/sentrySpan.d.ts +0 -86
- package/lib/types/core/src/tracing/sentrySpan.d.ts.map +0 -1
- package/lib/types/core/src/tracing/spanstatus.d.ts +0 -17
- package/lib/types/core/src/tracing/spanstatus.d.ts.map +0 -1
- package/lib/types/core/src/tracing/trace.d.ts +0 -76
- package/lib/types/core/src/tracing/trace.d.ts.map +0 -1
- package/lib/types/core/src/tracing/utils.d.ts +0 -13
- package/lib/types/core/src/tracing/utils.d.ts.map +0 -1
- package/lib/types/core/src/utils/handleCallbackErrors.d.ts +0 -13
- package/lib/types/core/src/utils/handleCallbackErrors.d.ts.map +0 -1
- package/lib/types/core/src/utils/hasTracingEnabled.d.ts +0 -8
- package/lib/types/core/src/utils/hasTracingEnabled.d.ts.map +0 -1
- package/lib/types/core/src/utils/parseSampleRate.d.ts +0 -9
- package/lib/types/core/src/utils/parseSampleRate.d.ts.map +0 -1
- package/lib/types/core/src/utils/spanOnScope.d.ts +0 -17
- package/lib/types/core/src/utils/spanOnScope.d.ts.map +0 -1
- package/lib/types/core/src/utils/spanUtils.d.ts +0 -74
- package/lib/types/core/src/utils/spanUtils.d.ts.map +0 -1
- package/lib/types/profiling-node/src/cpu_profiler.d.ts.map +0 -1
- package/lib/types/profiling-node/src/debug-build.d.ts +0 -7
- package/lib/types/profiling-node/src/debug-build.d.ts.map +0 -1
- package/lib/types/profiling-node/src/index.d.ts.map +0 -1
- package/lib/types/profiling-node/src/integration.d.ts.map +0 -1
- package/lib/types/profiling-node/src/nodeVersion.d.ts.map +0 -1
- package/lib/types/profiling-node/src/spanProfileUtils.d.ts.map +0 -1
- package/lib/types/profiling-node/src/types.d.ts.map +0 -1
- package/lib/types/profiling-node/src/utils.d.ts.map +0 -1
- package/lib/types-ts3.8/core/src/asyncContext/index.d.ts +0 -14
- package/lib/types-ts3.8/core/src/asyncContext/stackStrategy.d.ts +0 -52
- package/lib/types-ts3.8/core/src/asyncContext/types.d.ts +0 -47
- package/lib/types-ts3.8/core/src/carrier.d.ts +0 -37
- package/lib/types-ts3.8/core/src/constants.d.ts +0 -2
- package/lib/types-ts3.8/core/src/currentScopes.d.ts +0 -55
- package/lib/types-ts3.8/core/src/defaultScopes.d.ts +0 -6
- package/lib/types-ts3.8/core/src/envelope.d.ts +0 -18
- package/lib/types-ts3.8/core/src/metrics/constants.d.ts +0 -19
- package/lib/types-ts3.8/core/src/metrics/metric-summary.d.ts +0 -13
- package/lib/types-ts3.8/core/src/metrics/types.d.ts +0 -5
- package/lib/types-ts3.8/core/src/scope.d.ts +0 -211
- package/lib/types-ts3.8/core/src/semanticAttributes.d.ts +0 -33
- package/lib/types-ts3.8/core/src/session.d.ts +0 -35
- package/lib/types-ts3.8/core/src/tracing/dynamicSamplingContext.d.ts +0 -24
- package/lib/types-ts3.8/core/src/tracing/logSpans.d.ts +0 -10
- package/lib/types-ts3.8/core/src/tracing/measurement.d.ts +0 -10
- package/lib/types-ts3.8/core/src/tracing/sampling.d.ts +0 -12
- package/lib/types-ts3.8/core/src/tracing/sentryNonRecordingSpan.d.ts +0 -26
- package/lib/types-ts3.8/core/src/tracing/sentrySpan.d.ts +0 -86
- package/lib/types-ts3.8/core/src/tracing/spanstatus.d.ts +0 -17
- package/lib/types-ts3.8/core/src/tracing/trace.d.ts +0 -76
- package/lib/types-ts3.8/core/src/tracing/utils.d.ts +0 -13
- package/lib/types-ts3.8/core/src/utils/handleCallbackErrors.d.ts +0 -13
- package/lib/types-ts3.8/core/src/utils/hasTracingEnabled.d.ts +0 -8
- package/lib/types-ts3.8/core/src/utils/parseSampleRate.d.ts +0 -9
- package/lib/types-ts3.8/core/src/utils/spanOnScope.d.ts +0 -17
- package/lib/types-ts3.8/core/src/utils/spanUtils.d.ts +0 -74
- package/lib/types-ts3.8/profiling-node/src/debug-build.d.ts +0 -7
- /package/lib/types/{profiling-node/src/cpu_profiler.d.ts → cpu_profiler.d.ts} +0 -0
- /package/lib/types/{core/src/debug-build.d.ts → debug-build.d.ts} +0 -0
- /package/lib/types/{profiling-node/src/index.d.ts → index.d.ts} +0 -0
- /package/lib/types/{profiling-node/src/integration.d.ts → integration.d.ts} +0 -0
- /package/lib/types/{profiling-node/src/nodeVersion.d.ts → nodeVersion.d.ts} +0 -0
- /package/lib/types/{profiling-node/src/spanProfileUtils.d.ts → spanProfileUtils.d.ts} +0 -0
- /package/lib/types/{profiling-node/src/types.d.ts → types.d.ts} +0 -0
- /package/lib/types/{profiling-node/src/utils.d.ts → utils.d.ts} +0 -0
- /package/lib/types-ts3.8/{profiling-node/src/cpu_profiler.d.ts → cpu_profiler.d.ts} +0 -0
- /package/lib/types-ts3.8/{core/src/debug-build.d.ts → debug-build.d.ts} +0 -0
- /package/lib/types-ts3.8/{profiling-node/src/index.d.ts → index.d.ts} +0 -0
- /package/lib/types-ts3.8/{profiling-node/src/integration.d.ts → integration.d.ts} +0 -0
- /package/lib/types-ts3.8/{profiling-node/src/nodeVersion.d.ts → nodeVersion.d.ts} +0 -0
- /package/lib/types-ts3.8/{profiling-node/src/spanProfileUtils.d.ts → spanProfileUtils.d.ts} +0 -0
- /package/lib/types-ts3.8/{profiling-node/src/types.d.ts → types.d.ts} +0 -0
- /package/lib/types-ts3.8/{profiling-node/src/utils.d.ts → utils.d.ts} +0 -0
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Scope, Span } from '@sentry/types';
|
|
2
|
-
declare const SCOPE_SPAN_FIELD = "_sentrySpan";
|
|
3
|
-
type ScopeWithMaybeSpan = Scope & {
|
|
4
|
-
[SCOPE_SPAN_FIELD]?: Span;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Set the active span for a given scope.
|
|
8
|
-
* NOTE: This should NOT be used directly, but is only used internally by the trace methods.
|
|
9
|
-
*/
|
|
10
|
-
export declare function _setSpanForScope(scope: Scope, span: Span | undefined): void;
|
|
11
|
-
/**
|
|
12
|
-
* Get the active span for a given scope.
|
|
13
|
-
* NOTE: This should NOT be used directly, but is only used internally by the trace methods.
|
|
14
|
-
*/
|
|
15
|
-
export declare function _getSpanForScope(scope: ScopeWithMaybeSpan): Span | undefined;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=spanOnScope.d.ts.map
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { MeasurementUnit, Primitive, Span, SpanAttributes, SpanJSON, SpanStatus, SpanTimeInput, TraceContext } from '@sentry/types';
|
|
2
|
-
import { MetricType } from '../metrics/types';
|
|
3
|
-
export declare const TRACE_FLAG_NONE = 0;
|
|
4
|
-
export declare const TRACE_FLAG_SAMPLED = 1;
|
|
5
|
-
/**
|
|
6
|
-
* Convert a span to a trace context, which can be sent as the `trace` context in an event.
|
|
7
|
-
* By default, this will only include trace_id, span_id & parent_span_id.
|
|
8
|
-
* If `includeAllData` is true, it will also include data, op, status & origin.
|
|
9
|
-
*/
|
|
10
|
-
export declare function spanToTransactionTraceContext(span: Span): TraceContext;
|
|
11
|
-
/**
|
|
12
|
-
* Convert a span to a trace context, which can be sent as the `trace` context in a non-transaction event.
|
|
13
|
-
*/
|
|
14
|
-
export declare function spanToTraceContext(span: Span): TraceContext;
|
|
15
|
-
/**
|
|
16
|
-
* Convert a Span to a Sentry trace header.
|
|
17
|
-
*/
|
|
18
|
-
export declare function spanToTraceHeader(span: Span): string;
|
|
19
|
-
/**
|
|
20
|
-
* Convert a span time input intp a timestamp in seconds.
|
|
21
|
-
*/
|
|
22
|
-
export declare function spanTimeInputToSeconds(input: SpanTimeInput | undefined): number;
|
|
23
|
-
/**
|
|
24
|
-
* Convert a span to a JSON representation.
|
|
25
|
-
*/
|
|
26
|
-
export declare function spanToJSON(span: Span): Partial<SpanJSON>;
|
|
27
|
-
/** Exported only for tests. */
|
|
28
|
-
export interface OpenTelemetrySdkTraceBaseSpan extends Span {
|
|
29
|
-
attributes: SpanAttributes;
|
|
30
|
-
startTime: SpanTimeInput;
|
|
31
|
-
name: string;
|
|
32
|
-
status: SpanStatus;
|
|
33
|
-
endTime: SpanTimeInput;
|
|
34
|
-
parentSpanId?: string;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Returns true if a span is sampled.
|
|
38
|
-
* In most cases, you should just use `span.isRecording()` instead.
|
|
39
|
-
* However, this has a slightly different semantic, as it also returns false if the span is finished.
|
|
40
|
-
* So in the case where this distinction is important, use this method.
|
|
41
|
-
*/
|
|
42
|
-
export declare function spanIsSampled(span: Span): boolean;
|
|
43
|
-
/** Get the status message to use for a JSON representation of a span. */
|
|
44
|
-
export declare function getStatusMessage(status: SpanStatus | undefined): string | undefined;
|
|
45
|
-
declare const CHILD_SPANS_FIELD = "_sentryChildSpans";
|
|
46
|
-
declare const ROOT_SPAN_FIELD = "_sentryRootSpan";
|
|
47
|
-
type SpanWithPotentialChildren = Span & {
|
|
48
|
-
[CHILD_SPANS_FIELD]?: Set<Span>;
|
|
49
|
-
[ROOT_SPAN_FIELD]?: Span;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Adds an opaque child span reference to a span.
|
|
53
|
-
*/
|
|
54
|
-
export declare function addChildSpanToSpan(span: SpanWithPotentialChildren, childSpan: Span): void;
|
|
55
|
-
/** This is only used internally by Idle Spans. */
|
|
56
|
-
export declare function removeChildSpanFromSpan(span: SpanWithPotentialChildren, childSpan: Span): void;
|
|
57
|
-
/**
|
|
58
|
-
* Returns an array of the given span and all of its descendants.
|
|
59
|
-
*/
|
|
60
|
-
export declare function getSpanDescendants(span: SpanWithPotentialChildren): Span[];
|
|
61
|
-
/**
|
|
62
|
-
* Returns the root span of a given span.
|
|
63
|
-
*/
|
|
64
|
-
export declare function getRootSpan(span: SpanWithPotentialChildren): Span;
|
|
65
|
-
/**
|
|
66
|
-
* Returns the currently active span.
|
|
67
|
-
*/
|
|
68
|
-
export declare function getActiveSpan(): Span | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* Updates the metric summary on the currently active span
|
|
71
|
-
*/
|
|
72
|
-
export declare function updateMetricSummaryOnActiveSpan(metricType: MetricType, sanitizedName: string, value: number, unit: MeasurementUnit, tags: Record<string, Primitive>, bucketKey: string): void;
|
|
73
|
-
export {};
|
|
74
|
-
//# sourceMappingURL=spanUtils.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.
|
|
3
|
-
*
|
|
4
|
-
* ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.
|
|
5
|
-
*/
|
|
6
|
-
export declare const DEBUG_BUILD: boolean;
|
|
7
|
-
//# sourceMappingURL=debug-build.d.ts.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|