Skip to content

Commit 98613eb

Browse files
committed
.
1 parent 9750daf commit 98613eb

263 files changed

Lines changed: 497 additions & 4454 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/core/src/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ReportDialogOptions } from './report-dialog';
2-
import type { DsnComponents, DsnLike } from './types-hoist/dsn';
3-
import type { SdkInfo } from './types-hoist/sdkinfo';
2+
import type { DsnComponents, DsnLike } from './types/dsn';
3+
import type { SdkInfo } from './types/sdkinfo';
44
import { dsnToString, makeDsn } from './utils/dsn';
55

66
export const SENTRY_API_VERSION = '7';

packages/core/src/attributes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { DurationUnit, FractionUnit, InformationUnit } from './types-hoist/measurement';
2-
import type { Primitive } from './types-hoist/misc';
1+
import type { DurationUnit, FractionUnit, InformationUnit } from './types/measurement';
2+
import type { Primitive } from './types/misc';
33
import { isPrimitive } from './utils/is';
44

55
export type RawAttributes<T> = T & ValidatedAttributes<T>;

packages/core/src/breadcrumbs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getClient, getIsolationScope } from './currentScopes';
2-
import type { Breadcrumb, BreadcrumbHint } from './types-hoist/breadcrumb';
2+
import type { Breadcrumb, BreadcrumbHint } from './types/breadcrumb';
33
import { consoleSandbox } from './utils/debug-logger';
44
import { dateTimestampInSeconds } from './utils/time';
55

packages/core/src/browser-exports.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
*/
66
export { getComponentName, getLocationHref, htmlTreeAsString } from './utils/browser';
77
export { supportsDOMError, supportsHistory, supportsNativeFetch, supportsReportingObserver } from './utils/supports';
8-
export type { XhrBreadcrumbData, XhrBreadcrumbHint } from './types-hoist/breadcrumb';
8+
export type { XhrBreadcrumbData, XhrBreadcrumbHint } from './types/breadcrumb';
99
export type {
1010
HandlerDataXhr,
1111
HandlerDataDom,
1212
HandlerDataHistory,
1313
SentryXhrData,
1414
SentryWrappedXMLHttpRequest,
15-
} from './types-hoist/instrument';
16-
export type { BrowserClientReplayOptions, BrowserClientProfilingOptions } from './types-hoist/browseroptions';
15+
} from './types/instrument';
16+
export type { BrowserClientReplayOptions, BrowserClientProfilingOptions } from './types/browseroptions';

packages/core/src/carrier.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import type { AsyncContextStack } from './asyncContext/stackStrategy';
22
import type { AsyncContextStrategy } from './asyncContext/types';
33
import type { Client } from './client';
44
import type { Scope } from './scope';
5-
import type { SerializedLog } from './types-hoist/log';
6-
import type { SerializedMetric } from './types-hoist/metric';
5+
import type { SerializedLog } from './types/log';
6+
import type { SerializedMetric } from './types/metric';
77
import { SDK_VERSION } from './utils/version';
88
import { GLOBAL_OBJ } from './utils/worldwide';
99

packages/core/src/checkin.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { SerializedCheckIn } from './types-hoist/checkin';
2-
import type { DsnComponents } from './types-hoist/dsn';
3-
import type { CheckInEnvelope, CheckInItem, DynamicSamplingContext } from './types-hoist/envelope';
4-
import type { SdkMetadata } from './types-hoist/sdkmetadata';
1+
import type { SerializedCheckIn } from './types/checkin';
2+
import type { DsnComponents } from './types/dsn';
3+
import type { CheckInEnvelope, CheckInItem, DynamicSamplingContext } from './types/envelope';
4+
import type { SdkMetadata } from './types/sdkmetadata';
55
import { dsnToString } from './utils/dsn';
66
import { createEnvelope } from './utils/envelope';
77

packages/core/src/client.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,29 @@ import { getDynamicSamplingContextFromScope } from './tracing/dynamicSamplingCon
1414
import { isStreamedBeforeSendSpanCallback } from './tracing/spans/beforeSendSpan';
1515
import { extractGenAiSpansFromEvent } from './tracing/spans/extractGenAiSpans';
1616
import { DEFAULT_TRANSPORT_BUFFER_SIZE } from './transports/base';
17-
import type { Breadcrumb, BreadcrumbHint, FetchBreadcrumbHint, XhrBreadcrumbHint } from './types-hoist/breadcrumb';
18-
import type { CheckIn, MonitorConfig } from './types-hoist/checkin';
19-
import type { EventDropReason, Outcome } from './types-hoist/clientreport';
20-
import type { DataCategory } from './types-hoist/datacategory';
21-
import type { DsnComponents } from './types-hoist/dsn';
22-
import type { DynamicSamplingContext, Envelope } from './types-hoist/envelope';
23-
import type { ErrorEvent, Event, EventHint, EventType, TransactionEvent } from './types-hoist/event';
24-
import type { EventProcessor } from './types-hoist/eventprocessor';
25-
import type { FeedbackEvent } from './types-hoist/feedback';
26-
import type { Integration } from './types-hoist/integration';
27-
import type { Log } from './types-hoist/log';
28-
import type { Metric } from './types-hoist/metric';
29-
import type { Primitive } from './types-hoist/misc';
30-
import type { ClientOptions } from './types-hoist/options';
31-
import type { ParameterizedString } from './types-hoist/parameterize';
32-
import type { ReplayEndEvent, ReplayStartEvent } from './types-hoist/replay';
33-
import type { RequestEventData } from './types-hoist/request';
34-
import type { SdkMetadata } from './types-hoist/sdkmetadata';
35-
import type { Session, SessionAggregates } from './types-hoist/session';
36-
import type { SeverityLevel } from './types-hoist/severity';
37-
import type { Span, SpanAttributes, SpanContextData, SpanJSON, StreamedSpanJSON } from './types-hoist/span';
38-
import type { StartSpanOptions } from './types-hoist/startSpanOptions';
39-
import type { Transport, TransportMakeRequestResponse } from './types-hoist/transport';
17+
import type { Breadcrumb, BreadcrumbHint, FetchBreadcrumbHint, XhrBreadcrumbHint } from './types/breadcrumb';
18+
import type { CheckIn, MonitorConfig } from './types/checkin';
19+
import type { EventDropReason, Outcome } from './types/clientreport';
20+
import type { DataCategory } from './types/datacategory';
21+
import type { DsnComponents } from './types/dsn';
22+
import type { DynamicSamplingContext, Envelope } from './types/envelope';
23+
import type { ErrorEvent, Event, EventHint, EventType, TransactionEvent } from './types/event';
24+
import type { EventProcessor } from './types/eventprocessor';
25+
import type { FeedbackEvent } from './types/feedback';
26+
import type { Integration } from './types/integration';
27+
import type { Log } from './types/log';
28+
import type { Metric } from './types/metric';
29+
import type { Primitive } from './types/misc';
30+
import type { ClientOptions } from './types/options';
31+
import type { ParameterizedString } from './types/parameterize';
32+
import type { ReplayEndEvent, ReplayStartEvent } from './types/replay';
33+
import type { RequestEventData } from './types/request';
34+
import type { SdkMetadata } from './types/sdkmetadata';
35+
import type { Session, SessionAggregates } from './types/session';
36+
import type { SeverityLevel } from './types/severity';
37+
import type { Span, SpanAttributes, SpanContextData, SpanJSON, StreamedSpanJSON } from './types/span';
38+
import type { StartSpanOptions } from './types/startSpanOptions';
39+
import type { Transport, TransportMakeRequestResponse } from './types/transport';
4040
import { createClientReportEnvelope } from './utils/clientreport';
4141
import { debug } from './utils/debug-logger';
4242
import { dsnToString, makeDsn } from './utils/dsn';

packages/core/src/currentScopes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getAsyncContextStrategy } from './asyncContext';
22
import { getGlobalSingleton, getMainCarrier } from './carrier';
33
import type { Client } from './client';
44
import { Scope } from './scope';
5-
import type { TraceContext } from './types-hoist/context';
5+
import type { TraceContext } from './types/context';
66
import { generateSpanId } from './utils/propagationContext';
77

88
let _externalPropagationContextProvider: (() => { traceId: string; spanId: string } | undefined) | undefined;

packages/core/src/envelope.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import type { Client } from './client';
22
import { getDynamicSamplingContextFromSpan } from './tracing/dynamicSamplingContext';
33
import type { SentrySpan } from './tracing/sentrySpan';
44
import { isStreamedBeforeSendSpanCallback } from './tracing/spans/beforeSendSpan';
5-
import type { LegacyCSPReport } from './types-hoist/csp';
6-
import type { DsnComponents } from './types-hoist/dsn';
5+
import type { LegacyCSPReport } from './types/csp';
6+
import type { DsnComponents } from './types/dsn';
77
import type {
88
DynamicSamplingContext,
99
EventEnvelope,
@@ -14,11 +14,11 @@ import type {
1414
SessionItem,
1515
SpanEnvelope,
1616
SpanItem,
17-
} from './types-hoist/envelope';
18-
import type { Event } from './types-hoist/event';
19-
import type { SdkInfo } from './types-hoist/sdkinfo';
20-
import type { SdkMetadata } from './types-hoist/sdkmetadata';
21-
import type { Session, SessionAggregates } from './types-hoist/session';
17+
} from './types/envelope';
18+
import type { Event } from './types/event';
19+
import type { SdkInfo } from './types/sdkinfo';
20+
import type { SdkMetadata } from './types/sdkmetadata';
21+
import type { Session, SessionAggregates } from './types/session';
2222
import { dsnToString } from './utils/dsn';
2323
import {
2424
createEnvelope,

packages/core/src/eventProcessors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { DEBUG_BUILD } from './debug-build';
2-
import type { Event, EventHint } from './types-hoist/event';
3-
import type { EventProcessor } from './types-hoist/eventprocessor';
2+
import type { Event, EventHint } from './types/event';
3+
import type { EventProcessor } from './types/eventprocessor';
44
import { debug } from './utils/debug-logger';
55
import { isThenable } from './utils/is';
66
import { rejectedSyncPromise, resolvedSyncPromise } from './utils/syncpromise';

0 commit comments

Comments
 (0)