@@ -34,7 +34,8 @@ export type EnvelopeItemType =
34
34
| 'profile'
35
35
| 'replay_event'
36
36
| 'replay_recording'
37
- | 'check_in' ;
37
+ | 'check_in'
38
+ | 'statsd' ;
38
39
39
40
export type BaseEnvelopeHeaders = {
40
41
[ key : string ] : unknown ;
@@ -72,6 +73,7 @@ type ClientReportItemHeaders = { type: 'client_report' };
72
73
type ReplayEventItemHeaders = { type : 'replay_event' } ;
73
74
type ReplayRecordingItemHeaders = { type : 'replay_recording' ; length : number } ;
74
75
type CheckInItemHeaders = { type : 'check_in' } ;
76
+ type StatsdItemHeaders = { type : 'statsd' } ;
75
77
76
78
export type EventItem = BaseEnvelopeItem < EventItemHeaders , Event > ;
77
79
export type AttachmentItem = BaseEnvelopeItem < AttachmentItemHeaders , string | Uint8Array > ;
@@ -84,18 +86,21 @@ export type ClientReportItem = BaseEnvelopeItem<ClientReportItemHeaders, ClientR
84
86
export type CheckInItem = BaseEnvelopeItem < CheckInItemHeaders , SerializedCheckIn > ;
85
87
type ReplayEventItem = BaseEnvelopeItem < ReplayEventItemHeaders , ReplayEvent > ;
86
88
type ReplayRecordingItem = BaseEnvelopeItem < ReplayRecordingItemHeaders , ReplayRecordingData > ;
89
+ export type StatsdItem = BaseEnvelopeItem < StatsdItemHeaders , string > ;
87
90
88
91
export type EventEnvelopeHeaders = { event_id : string ; sent_at : string ; trace ?: DynamicSamplingContext } ;
89
92
type SessionEnvelopeHeaders = { sent_at : string } ;
90
93
type CheckInEnvelopeHeaders = { trace ?: DynamicSamplingContext } ;
91
94
type ClientReportEnvelopeHeaders = BaseEnvelopeHeaders ;
92
95
type ReplayEnvelopeHeaders = BaseEnvelopeHeaders ;
96
+ type StatsdEnvelopeHeaders = BaseEnvelopeHeaders ;
93
97
94
98
export type EventEnvelope = BaseEnvelope < EventEnvelopeHeaders , EventItem | AttachmentItem | UserFeedbackItem > ;
95
99
export type SessionEnvelope = BaseEnvelope < SessionEnvelopeHeaders , SessionItem > ;
96
100
export type ClientReportEnvelope = BaseEnvelope < ClientReportEnvelopeHeaders , ClientReportItem > ;
97
101
export type ReplayEnvelope = [ ReplayEnvelopeHeaders , [ ReplayEventItem , ReplayRecordingItem ] ] ;
98
102
export type CheckInEvelope = BaseEnvelope < CheckInEnvelopeHeaders , CheckInItem > ;
103
+ export type StatsdEnvelope = BaseEnvelope < StatsdEnvelopeHeaders , StatsdItem > ;
99
104
100
105
export type Envelope = EventEnvelope | SessionEnvelope | ClientReportEnvelope | ReplayEnvelope | CheckInEvelope ;
101
106
export type EnvelopeItem = Envelope [ 1 ] [ number ] ;
0 commit comments