Skip to content

Commit 6d9a4bf

Browse files
committed
remove in types and meta frameworks
1 parent f7f80a9 commit 6d9a4bf

File tree

10 files changed

+0
-56
lines changed

10 files changed

+0
-56
lines changed

dev-packages/browser-integration-tests/utils/helpers.ts

-12
Original file line numberDiff line numberDiff line change
@@ -270,18 +270,6 @@ export function shouldSkipFeedbackTest(): boolean {
270270
return false;
271271
}
272272

273-
/**
274-
* We can only test metrics tests in certain bundles/packages:
275-
* - NPM (ESM, CJS)
276-
* - CDN bundles that include tracing
277-
*
278-
* @returns `true` if we should skip the metrics test
279-
*/
280-
export function shouldSkipMetricsTest(): boolean {
281-
const bundle = process.env.PW_BUNDLE as string | undefined;
282-
return bundle != null && !bundle.includes('tracing') && !bundle.includes('esm') && !bundle.includes('cjs');
283-
}
284-
285273
/**
286274
* We only test feature flags integrations in certain bundles/packages:
287275
* - NPM (ESM, CJS)

packages/astro/src/index.types.ts

-2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,4 @@ export declare const continueTrace: typeof clientSdk.continueTrace;
3232

3333
export declare const Span: clientSdk.Span;
3434

35-
// eslint-disable-next-line deprecation/deprecation
36-
export declare const metrics: typeof clientSdk.metrics & typeof serverSdk;
3735
export default sentryAstro;

packages/core/src/carrier.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { AsyncContextStack } from './asyncContext/stackStrategy';
22
import type { AsyncContextStrategy } from './asyncContext/types';
33
import type { Scope } from './scope';
4-
import type { Client, MetricsAggregator } from './types-hoist';
54
import type { Logger } from './utils-hoist/logger';
65
import { SDK_VERSION } from './utils-hoist/version';
76
import { GLOBAL_OBJ } from './utils-hoist/worldwide';
@@ -25,7 +24,6 @@ export interface SentryCarrier {
2524
globalScope?: Scope;
2625
defaultIsolationScope?: Scope;
2726
defaultCurrentScope?: Scope;
28-
globalMetricsAggregators?: WeakMap<Client, MetricsAggregator> | undefined;
2927
logger?: Logger;
3028

3129
/** Overwrites TextEncoder used in `@sentry/core`, need for `[email protected]` and older */

packages/core/src/types-hoist/index.ts

-8
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ export type {
125125
SpanJSON,
126126
SpanContextData,
127127
TraceFlag,
128-
MetricSummary,
129128
} from './span';
130129
export type { SpanStatus } from './spanStatus';
131130
export type { TimedEvent } from './timedEvent';
@@ -173,13 +172,6 @@ export type {
173172

174173
export type { BrowserClientReplayOptions, BrowserClientProfilingOptions } from './browseroptions';
175174
export type { CheckIn, MonitorConfig, FinishedCheckIn, InProgressCheckIn, SerializedCheckIn } from './checkin';
176-
export type {
177-
MetricsAggregator,
178-
MetricBucketItem,
179-
MetricInstance,
180-
MetricData,
181-
Metrics,
182-
} from './metrics';
183175
export type { ParameterizedString } from './parameterize';
184176
export type { ContinuousProfiler, ProfilingIntegration, Profiler } from './profiling';
185177
export type { ViewHierarchyData, ViewHierarchyWindow } from './view-hierarchy';

packages/nextjs/src/index.types.ts

-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ export declare const createReduxEnhancer: typeof clientSdk.createReduxEnhancer;
3636
export declare const showReportDialog: typeof clientSdk.showReportDialog;
3737
export declare const withErrorBoundary: typeof clientSdk.withErrorBoundary;
3838

39-
// eslint-disable-next-line deprecation/deprecation
40-
export declare const metrics: typeof clientSdk.metrics & typeof serverSdk.metrics;
41-
4239
export { withSentryConfig } from './config';
4340

4441
/**

packages/nuxt/src/index.types.ts

-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,3 @@ export declare const contextLinesIntegration: typeof clientSdk.contextLinesInteg
1515
export declare const getDefaultIntegrations: (options: Options) => Integration[];
1616
export declare const defaultStackParser: StackParser;
1717
export declare const continueTrace: typeof clientSdk.continueTrace;
18-
// eslint-disable-next-line deprecation/deprecation
19-
export declare const metrics: typeof clientSdk.metrics & typeof serverSdk.metrics;

packages/remix/src/index.types.ts

-3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,3 @@ export declare const continueTrace: typeof clientSdk.continueTrace;
3838
export const close = runtime === 'client' ? clientSdk.close : serverSdk.close;
3939
export const flush = runtime === 'client' ? clientSdk.flush : serverSdk.flush;
4040
export const lastEventId = runtime === 'client' ? clientSdk.lastEventId : serverSdk.lastEventId;
41-
42-
// eslint-disable-next-line deprecation/deprecation
43-
export declare const metrics: typeof clientSdk.metrics & typeof serverSdk.metrics;

packages/solidstart/src/index.types.ts

-3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,3 @@ export declare function flush(timeout?: number | undefined): PromiseLike<boolean
2626
export declare function lastEventId(): string | undefined;
2727

2828
export declare const continueTrace: typeof clientSdk.continueTrace;
29-
30-
// eslint-disable-next-line deprecation/deprecation
31-
export declare const metrics: typeof clientSdk.metrics & typeof serverSdk.metrics;

packages/sveltekit/src/index.types.ts

-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,4 @@ export declare function lastEventId(): string | undefined;
5252

5353
export declare const continueTrace: typeof clientSdk.continueTrace;
5454

55-
// eslint-disable-next-line deprecation/deprecation
56-
export declare const metrics: typeof clientSdk.metrics & typeof serverSdk.metrics;
57-
5855
export declare function trackComponent(options: clientSdk.TrackingOptions): ReturnType<typeof clientSdk.trackComponent>;

packages/types/src/index.ts

-18
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,6 @@ import type {
8383
MeasurementUnit as MeasurementUnit_imported,
8484
Measurements as Measurements_imported,
8585
Mechanism as Mechanism_imported,
86-
MetricBucketItem as MetricBucketItem_imported,
87-
MetricData as MetricData_imported,
88-
MetricInstance as MetricInstance_imported,
89-
MetricSummary as MetricSummary_imported,
90-
Metrics as Metrics_imported,
91-
MetricsAggregator as MetricsAggregator_imported,
9286
MissingInstrumentationContext as MissingInstrumentationContext_imported,
9387
MonitorConfig as MonitorConfig_imported,
9488
NoneUnit as NoneUnit_imported,
@@ -454,8 +448,6 @@ export type SpanContextData = SpanContextData_imported;
454448
/** @deprecated This type has been moved to `@sentry/core`. */
455449
export type TraceFlag = TraceFlag_imported;
456450
/** @deprecated This type has been moved to `@sentry/core`. */
457-
export type MetricSummary = MetricSummary_imported;
458-
/** @deprecated This type has been moved to `@sentry/core`. */
459451
export type SpanStatus = SpanStatus_imported;
460452
/** @deprecated This type has been moved to `@sentry/core`. */
461453
export type TimedEvent = TimedEvent_imported;
@@ -555,16 +547,6 @@ export type InProgressCheckIn = InProgressCheckIn_imported;
555547
/** @deprecated This type has been moved to `@sentry/core`. */
556548
export type SerializedCheckIn = SerializedCheckIn_imported;
557549
/** @deprecated This type has been moved to `@sentry/core`. */
558-
export type MetricsAggregator = MetricsAggregator_imported;
559-
/** @deprecated This type has been moved to `@sentry/core`. */
560-
export type MetricBucketItem = MetricBucketItem_imported;
561-
/** @deprecated This type has been moved to `@sentry/core`. */
562-
export type MetricInstance = MetricInstance_imported;
563-
/** @deprecated This type has been moved to `@sentry/core`. */
564-
export type MetricData = MetricData_imported;
565-
/** @deprecated This type has been moved to `@sentry/core`. */
566-
export type Metrics = Metrics_imported;
567-
/** @deprecated This type has been moved to `@sentry/core`. */
568550
export type ParameterizedString = ParameterizedString_imported;
569551
/** @deprecated This type has been moved to `@sentry/core`. */
570552
export type ContinuousProfiler<T extends Client_imported> = ContinuousProfiler_imported<T>;

0 commit comments

Comments
 (0)