@@ -34,7 +34,8 @@ export type EnvelopeItemType =
3434 | 'profile'
3535 | 'replay_event'
3636 | 'replay_recording'
37- | 'check_in' ;
37+ | 'check_in'
38+ | 'statsd' ;
3839
3940export type BaseEnvelopeHeaders = {
4041 [ key : string ] : unknown ;
@@ -72,6 +73,7 @@ type ClientReportItemHeaders = { type: 'client_report' };
7273type ReplayEventItemHeaders = { type : 'replay_event' } ;
7374type ReplayRecordingItemHeaders = { type : 'replay_recording' ; length : number } ;
7475type CheckInItemHeaders = { type : 'check_in' } ;
76+ type StatsdItemHeaders = { type : 'statsd' } ;
7577
7678export type EventItem = BaseEnvelopeItem < EventItemHeaders , Event > ;
7779export type AttachmentItem = BaseEnvelopeItem < AttachmentItemHeaders , string | Uint8Array > ;
@@ -84,18 +86,21 @@ export type ClientReportItem = BaseEnvelopeItem<ClientReportItemHeaders, ClientR
8486export type CheckInItem = BaseEnvelopeItem < CheckInItemHeaders , SerializedCheckIn > ;
8587type ReplayEventItem = BaseEnvelopeItem < ReplayEventItemHeaders , ReplayEvent > ;
8688type ReplayRecordingItem = BaseEnvelopeItem < ReplayRecordingItemHeaders , ReplayRecordingData > ;
89+ export type StatsdItem = BaseEnvelopeItem < StatsdItemHeaders , string > ;
8790
8891export type EventEnvelopeHeaders = { event_id : string ; sent_at : string ; trace ?: DynamicSamplingContext } ;
8992type SessionEnvelopeHeaders = { sent_at : string } ;
9093type CheckInEnvelopeHeaders = { trace ?: DynamicSamplingContext } ;
9194type ClientReportEnvelopeHeaders = BaseEnvelopeHeaders ;
9295type ReplayEnvelopeHeaders = BaseEnvelopeHeaders ;
96+ type StatsdEnvelopeHeaders = BaseEnvelopeHeaders ;
9397
9498export type EventEnvelope = BaseEnvelope < EventEnvelopeHeaders , EventItem | AttachmentItem | UserFeedbackItem > ;
9599export type SessionEnvelope = BaseEnvelope < SessionEnvelopeHeaders , SessionItem > ;
96100export type ClientReportEnvelope = BaseEnvelope < ClientReportEnvelopeHeaders , ClientReportItem > ;
97101export type ReplayEnvelope = [ ReplayEnvelopeHeaders , [ ReplayEventItem , ReplayRecordingItem ] ] ;
98102export type CheckInEvelope = BaseEnvelope < CheckInEnvelopeHeaders , CheckInItem > ;
103+ export type StatsdEnvelope = BaseEnvelope < StatsdEnvelopeHeaders , StatsdItem > ;
99104
100105export type Envelope = EventEnvelope | SessionEnvelope | ClientReportEnvelope | ReplayEnvelope | CheckInEvelope ;
101106export type EnvelopeItem = Envelope [ 1 ] [ number ] ;
0 commit comments