Skip to content

Commit 6592fc0

Browse files
committed
statsd types
1 parent 7f731a3 commit 6592fc0

File tree

4 files changed

+0
-15
lines changed

4 files changed

+0
-15
lines changed

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

-6
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export type EnvelopeItemType =
4141
| 'replay_event'
4242
| 'replay_recording'
4343
| 'check_in'
44-
| 'statsd'
4544
| 'span'
4645
| 'raw_security';
4746

@@ -84,7 +83,6 @@ type ReplayRecordingItemHeaders = { type: 'replay_recording'; length: number };
8483
type CheckInItemHeaders = { type: 'check_in' };
8584
type ProfileItemHeaders = { type: 'profile' };
8685
type ProfileChunkItemHeaders = { type: 'profile_chunk' };
87-
type StatsdItemHeaders = { type: 'statsd'; length: number };
8886
type SpanItemHeaders = { type: 'span' };
8987
type RawSecurityHeaders = { type: 'raw_security'; sentry_release?: string; sentry_environment?: string };
9088

@@ -98,7 +96,6 @@ export type ClientReportItem = BaseEnvelopeItem<ClientReportItemHeaders, ClientR
9896
export type CheckInItem = BaseEnvelopeItem<CheckInItemHeaders, SerializedCheckIn>;
9997
type ReplayEventItem = BaseEnvelopeItem<ReplayEventItemHeaders, ReplayEvent>;
10098
type ReplayRecordingItem = BaseEnvelopeItem<ReplayRecordingItemHeaders, ReplayRecordingData>;
101-
export type StatsdItem = BaseEnvelopeItem<StatsdItemHeaders, string>;
10299
export type FeedbackItem = BaseEnvelopeItem<FeedbackItemHeaders, FeedbackEvent>;
103100
export type ProfileItem = BaseEnvelopeItem<ProfileItemHeaders, Profile>;
104101
export type ProfileChunkItem = BaseEnvelopeItem<ProfileChunkItemHeaders, ProfileChunk>;
@@ -110,7 +107,6 @@ type SessionEnvelopeHeaders = { sent_at: string };
110107
type CheckInEnvelopeHeaders = { trace?: DynamicSamplingContext };
111108
type ClientReportEnvelopeHeaders = BaseEnvelopeHeaders;
112109
type ReplayEnvelopeHeaders = BaseEnvelopeHeaders;
113-
type StatsdEnvelopeHeaders = BaseEnvelopeHeaders;
114110
type SpanEnvelopeHeaders = BaseEnvelopeHeaders & { trace?: DynamicSamplingContext };
115111

116112
export type EventEnvelope = BaseEnvelope<
@@ -121,7 +117,6 @@ export type SessionEnvelope = BaseEnvelope<SessionEnvelopeHeaders, SessionItem>;
121117
export type ClientReportEnvelope = BaseEnvelope<ClientReportEnvelopeHeaders, ClientReportItem>;
122118
export type ReplayEnvelope = [ReplayEnvelopeHeaders, [ReplayEventItem, ReplayRecordingItem]];
123119
export type CheckInEnvelope = BaseEnvelope<CheckInEnvelopeHeaders, CheckInItem>;
124-
export type StatsdEnvelope = BaseEnvelope<StatsdEnvelopeHeaders, StatsdItem>;
125120
export type SpanEnvelope = BaseEnvelope<SpanEnvelopeHeaders, SpanItem>;
126121
export type ProfileChunkEnvelope = BaseEnvelope<BaseEnvelopeHeaders, ProfileChunkItem>;
127122
export type RawSecurityEnvelope = BaseEnvelope<BaseEnvelopeHeaders, RawSecurityItem>;
@@ -133,7 +128,6 @@ export type Envelope =
133128
| ProfileChunkEnvelope
134129
| ReplayEnvelope
135130
| CheckInEnvelope
136-
| StatsdEnvelope
137131
| SpanEnvelope
138132
| RawSecurityEnvelope;
139133

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

-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ export type {
4545
CheckInEnvelope,
4646
RawSecurityEnvelope,
4747
RawSecurityItem,
48-
StatsdItem,
49-
StatsdEnvelope,
5048
ProfileItem,
5149
ProfileChunkEnvelope,
5250
ProfileChunkItem,

packages/core/src/utils-hoist/envelope.ts

-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ const ITEM_TYPE_TO_DATA_CATEGORY_MAP: Record<EnvelopeItemType, DataCategory> = {
222222
check_in: 'monitor',
223223
feedback: 'feedback',
224224
span: 'span',
225-
statsd: 'metric_bucket',
226225
raw_security: 'security',
227226
};
228227

packages/types/src/index.ts

-6
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ import type {
152152
StackParser as StackParser_imported,
153153
Stacktrace as Stacktrace_imported,
154154
StartSpanOptions as StartSpanOptions_imported,
155-
StatsdEnvelope as StatsdEnvelope_imported,
156-
StatsdItem as StatsdItem_imported,
157155
Thread as Thread_imported,
158156
ThreadCpuFrame as ThreadCpuFrame_imported,
159157
ThreadCpuProfile as ThreadCpuProfile_imported,
@@ -276,10 +274,6 @@ export type CheckInItem = CheckInItem_imported;
276274
/** @deprecated This type has been moved to `@sentry/core`. */
277275
export type CheckInEnvelope = CheckInEnvelope_imported;
278276
/** @deprecated This type has been moved to `@sentry/core`. */
279-
export type StatsdItem = StatsdItem_imported;
280-
/** @deprecated This type has been moved to `@sentry/core`. */
281-
export type StatsdEnvelope = StatsdEnvelope_imported;
282-
/** @deprecated This type has been moved to `@sentry/core`. */
283277
export type ProfileItem = ProfileItem_imported;
284278
/** @deprecated This type has been moved to `@sentry/core`. */
285279
export type ProfileChunkEnvelope = ProfileChunkEnvelope_imported;

0 commit comments

Comments
 (0)