@@ -3,6 +3,7 @@ import type { ClientReport } from './clientreport';
3
3
import type { DsnComponents } from './dsn' ;
4
4
import type { Event } from './event' ;
5
5
import type { FeedbackEvent } from './feedback' ;
6
+ import type { Profile } from './profiling' ;
6
7
import type { ReplayEvent , ReplayRecordingData } from './replay' ;
7
8
import type { SdkInfo } from './sdkinfo' ;
8
9
import type { SerializedSession , Session , SessionAggregates } from './session' ;
@@ -77,6 +78,7 @@ type ReplayEventItemHeaders = { type: 'replay_event' };
77
78
type ReplayRecordingItemHeaders = { type : 'replay_recording' ; length : number } ;
78
79
type CheckInItemHeaders = { type : 'check_in' } ;
79
80
type StatsdItemHeaders = { type : 'statsd' } ;
81
+ type ProfileItemHeaders = { type : 'profile' } ;
80
82
81
83
export type EventItem = BaseEnvelopeItem < EventItemHeaders , Event > ;
82
84
export type AttachmentItem = BaseEnvelopeItem < AttachmentItemHeaders , string | Uint8Array > ;
@@ -91,6 +93,7 @@ type ReplayEventItem = BaseEnvelopeItem<ReplayEventItemHeaders, ReplayEvent>;
91
93
type ReplayRecordingItem = BaseEnvelopeItem < ReplayRecordingItemHeaders , ReplayRecordingData > ;
92
94
export type StatsdItem = BaseEnvelopeItem < StatsdItemHeaders , string > ;
93
95
export type FeedbackItem = BaseEnvelopeItem < FeedbackItemHeaders , FeedbackEvent > ;
96
+ export type ProfileItem = BaseEnvelopeItem < ProfileItemHeaders , Profile > ;
94
97
95
98
export type EventEnvelopeHeaders = { event_id : string ; sent_at : string ; trace ?: DynamicSamplingContext } ;
96
99
type SessionEnvelopeHeaders = { sent_at : string } ;
@@ -101,7 +104,7 @@ type StatsdEnvelopeHeaders = BaseEnvelopeHeaders;
101
104
102
105
export type EventEnvelope = BaseEnvelope <
103
106
EventEnvelopeHeaders ,
104
- EventItem | AttachmentItem | UserFeedbackItem | FeedbackItem
107
+ EventItem | AttachmentItem | UserFeedbackItem | FeedbackItem | ProfileItem
105
108
> ;
106
109
export type SessionEnvelope = BaseEnvelope < SessionEnvelopeHeaders , SessionItem > ;
107
110
export type ClientReportEnvelope = BaseEnvelope < ClientReportEnvelopeHeaders , ClientReportItem > ;
0 commit comments