From 7412fa9717f2b8988963ce556a3ebc47e5969e6f Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Mon, 16 Dec 2024 17:38:14 -0500 Subject: [PATCH] statsd types --- packages/core/src/types-hoist/envelope.ts | 6 ------ packages/core/src/types-hoist/index.ts | 2 -- packages/core/src/utils-hoist/envelope.ts | 1 - packages/types/src/index.ts | 6 ------ 4 files changed, 15 deletions(-) diff --git a/packages/core/src/types-hoist/envelope.ts b/packages/core/src/types-hoist/envelope.ts index b5e2599942d4..ab7af66f3a01 100644 --- a/packages/core/src/types-hoist/envelope.ts +++ b/packages/core/src/types-hoist/envelope.ts @@ -41,7 +41,6 @@ export type EnvelopeItemType = | 'replay_event' | 'replay_recording' | 'check_in' - | 'statsd' | 'span' | 'raw_security'; @@ -84,7 +83,6 @@ type ReplayRecordingItemHeaders = { type: 'replay_recording'; length: number }; type CheckInItemHeaders = { type: 'check_in' }; type ProfileItemHeaders = { type: 'profile' }; type ProfileChunkItemHeaders = { type: 'profile_chunk' }; -type StatsdItemHeaders = { type: 'statsd'; length: number }; type SpanItemHeaders = { type: 'span' }; type RawSecurityHeaders = { type: 'raw_security'; sentry_release?: string; sentry_environment?: string }; @@ -98,7 +96,6 @@ export type ClientReportItem = BaseEnvelopeItem; type ReplayEventItem = BaseEnvelopeItem; type ReplayRecordingItem = BaseEnvelopeItem; -export type StatsdItem = BaseEnvelopeItem; export type FeedbackItem = BaseEnvelopeItem; export type ProfileItem = BaseEnvelopeItem; export type ProfileChunkItem = BaseEnvelopeItem; @@ -110,7 +107,6 @@ type SessionEnvelopeHeaders = { sent_at: string }; type CheckInEnvelopeHeaders = { trace?: DynamicSamplingContext }; type ClientReportEnvelopeHeaders = BaseEnvelopeHeaders; type ReplayEnvelopeHeaders = BaseEnvelopeHeaders; -type StatsdEnvelopeHeaders = BaseEnvelopeHeaders; type SpanEnvelopeHeaders = BaseEnvelopeHeaders & { trace?: DynamicSamplingContext }; export type EventEnvelope = BaseEnvelope< @@ -121,7 +117,6 @@ export type SessionEnvelope = BaseEnvelope; export type ClientReportEnvelope = BaseEnvelope; export type ReplayEnvelope = [ReplayEnvelopeHeaders, [ReplayEventItem, ReplayRecordingItem]]; export type CheckInEnvelope = BaseEnvelope; -export type StatsdEnvelope = BaseEnvelope; export type SpanEnvelope = BaseEnvelope; export type ProfileChunkEnvelope = BaseEnvelope; export type RawSecurityEnvelope = BaseEnvelope; @@ -133,7 +128,6 @@ export type Envelope = | ProfileChunkEnvelope | ReplayEnvelope | CheckInEnvelope - | StatsdEnvelope | SpanEnvelope | RawSecurityEnvelope; diff --git a/packages/core/src/types-hoist/index.ts b/packages/core/src/types-hoist/index.ts index 3d66c952b7ac..82cae72af76d 100644 --- a/packages/core/src/types-hoist/index.ts +++ b/packages/core/src/types-hoist/index.ts @@ -45,8 +45,6 @@ export type { CheckInEnvelope, RawSecurityEnvelope, RawSecurityItem, - StatsdItem, - StatsdEnvelope, ProfileItem, ProfileChunkEnvelope, ProfileChunkItem, diff --git a/packages/core/src/utils-hoist/envelope.ts b/packages/core/src/utils-hoist/envelope.ts index 52fb7e175070..ea2b733f1dc1 100644 --- a/packages/core/src/utils-hoist/envelope.ts +++ b/packages/core/src/utils-hoist/envelope.ts @@ -222,7 +222,6 @@ const ITEM_TYPE_TO_DATA_CATEGORY_MAP: Record = { check_in: 'monitor', feedback: 'feedback', span: 'span', - statsd: 'metric_bucket', raw_security: 'security', }; diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 482d80279eef..5dc7a916c9d7 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -152,8 +152,6 @@ import type { StackParser as StackParser_imported, Stacktrace as Stacktrace_imported, StartSpanOptions as StartSpanOptions_imported, - StatsdEnvelope as StatsdEnvelope_imported, - StatsdItem as StatsdItem_imported, Thread as Thread_imported, ThreadCpuFrame as ThreadCpuFrame_imported, ThreadCpuProfile as ThreadCpuProfile_imported, @@ -276,10 +274,6 @@ export type CheckInItem = CheckInItem_imported; /** @deprecated This type has been moved to `@sentry/core`. */ export type CheckInEnvelope = CheckInEnvelope_imported; /** @deprecated This type has been moved to `@sentry/core`. */ -export type StatsdItem = StatsdItem_imported; -/** @deprecated This type has been moved to `@sentry/core`. */ -export type StatsdEnvelope = StatsdEnvelope_imported; -/** @deprecated This type has been moved to `@sentry/core`. */ export type ProfileItem = ProfileItem_imported; /** @deprecated This type has been moved to `@sentry/core`. */ export type ProfileChunkEnvelope = ProfileChunkEnvelope_imported;