Skip to content

Commit

Permalink
statsd types
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Dec 16, 2024
1 parent 7f731a3 commit 6592fc0
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 15 deletions.
6 changes: 0 additions & 6 deletions packages/core/src/types-hoist/envelope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export type EnvelopeItemType =
| 'replay_event'
| 'replay_recording'
| 'check_in'
| 'statsd'
| 'span'
| 'raw_security';

Expand Down Expand Up @@ -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 };

Expand All @@ -98,7 +96,6 @@ export type ClientReportItem = BaseEnvelopeItem<ClientReportItemHeaders, ClientR
export type CheckInItem = BaseEnvelopeItem<CheckInItemHeaders, SerializedCheckIn>;
type ReplayEventItem = BaseEnvelopeItem<ReplayEventItemHeaders, ReplayEvent>;
type ReplayRecordingItem = BaseEnvelopeItem<ReplayRecordingItemHeaders, ReplayRecordingData>;
export type StatsdItem = BaseEnvelopeItem<StatsdItemHeaders, string>;
export type FeedbackItem = BaseEnvelopeItem<FeedbackItemHeaders, FeedbackEvent>;
export type ProfileItem = BaseEnvelopeItem<ProfileItemHeaders, Profile>;
export type ProfileChunkItem = BaseEnvelopeItem<ProfileChunkItemHeaders, ProfileChunk>;
Expand All @@ -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<
Expand All @@ -121,7 +117,6 @@ export type SessionEnvelope = BaseEnvelope<SessionEnvelopeHeaders, SessionItem>;
export type ClientReportEnvelope = BaseEnvelope<ClientReportEnvelopeHeaders, ClientReportItem>;
export type ReplayEnvelope = [ReplayEnvelopeHeaders, [ReplayEventItem, ReplayRecordingItem]];
export type CheckInEnvelope = BaseEnvelope<CheckInEnvelopeHeaders, CheckInItem>;
export type StatsdEnvelope = BaseEnvelope<StatsdEnvelopeHeaders, StatsdItem>;
export type SpanEnvelope = BaseEnvelope<SpanEnvelopeHeaders, SpanItem>;
export type ProfileChunkEnvelope = BaseEnvelope<BaseEnvelopeHeaders, ProfileChunkItem>;
export type RawSecurityEnvelope = BaseEnvelope<BaseEnvelopeHeaders, RawSecurityItem>;
Expand All @@ -133,7 +128,6 @@ export type Envelope =
| ProfileChunkEnvelope
| ReplayEnvelope
| CheckInEnvelope
| StatsdEnvelope
| SpanEnvelope
| RawSecurityEnvelope;

Expand Down
2 changes: 0 additions & 2 deletions packages/core/src/types-hoist/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ export type {
CheckInEnvelope,
RawSecurityEnvelope,
RawSecurityItem,
StatsdItem,
StatsdEnvelope,
ProfileItem,
ProfileChunkEnvelope,
ProfileChunkItem,
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/utils-hoist/envelope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ const ITEM_TYPE_TO_DATA_CATEGORY_MAP: Record<EnvelopeItemType, DataCategory> = {
check_in: 'monitor',
feedback: 'feedback',
span: 'span',
statsd: 'metric_bucket',
raw_security: 'security',
};

Expand Down
6 changes: 0 additions & 6 deletions packages/types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6592fc0

Please sign in to comment.