@sentry/types
Advanced tools
Comparing version 8.8.0 to 8.9.0
{ | ||
"name": "@sentry/types", | ||
"version": "8.8.0", | ||
"version": "8.9.0", | ||
"description": "Types for all Sentry JavaScript SDKs", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", |
@@ -7,3 +7,3 @@ import { AttachmentType } from './attachment'; | ||
import { FeedbackEvent, UserFeedback } from './feedback'; | ||
import { Profile } from './profiling'; | ||
import { Profile, ProfileChunk } from './profiling'; | ||
import { ReplayEvent, ReplayRecordingData } from './replay'; | ||
@@ -23,3 +23,3 @@ import { SdkInfo } from './sdkinfo'; | ||
}; | ||
export type EnvelopeItemType = 'client_report' | 'user_report' | 'feedback' | 'session' | 'sessions' | 'transaction' | 'attachment' | 'event' | 'profile' | 'replay_event' | 'replay_recording' | 'check_in' | 'statsd' | 'span'; | ||
export type EnvelopeItemType = 'client_report' | 'user_report' | 'feedback' | 'session' | 'sessions' | 'transaction' | 'attachment' | 'event' | 'profile' | 'profile_chunk' | 'replay_event' | 'replay_recording' | 'check_in' | 'statsd' | 'span'; | ||
export type BaseEnvelopeHeaders = { | ||
@@ -78,2 +78,8 @@ [key: string]: unknown; | ||
}; | ||
type ProfileItemHeaders = { | ||
type: 'profile'; | ||
}; | ||
type ProfileChunkItemHeaders = { | ||
type: 'profile_chunk'; | ||
}; | ||
type StatsdItemHeaders = { | ||
@@ -83,5 +89,2 @@ type: 'statsd'; | ||
}; | ||
type ProfileItemHeaders = { | ||
type: 'profile'; | ||
}; | ||
type SpanItemHeaders = { | ||
@@ -101,2 +104,3 @@ type: 'span'; | ||
export type ProfileItem = BaseEnvelopeItem<ProfileItemHeaders, Profile>; | ||
export type ProfileChunkItem = BaseEnvelopeItem<ProfileChunkItemHeaders, ProfileChunk>; | ||
export type SpanItem = BaseEnvelopeItem<SpanItemHeaders, Partial<SpanJSON>>; | ||
@@ -133,5 +137,6 @@ export type EventEnvelopeHeaders = { | ||
export type SpanEnvelope = BaseEnvelope<SpanEnvelopeHeaders, SpanItem>; | ||
export type Envelope = EventEnvelope | SessionEnvelope | ClientReportEnvelope | ReplayEnvelope | CheckInEnvelope | StatsdEnvelope | SpanEnvelope; | ||
export type ProfileChunkEnvelope = BaseEnvelope<BaseEnvelopeHeaders, ProfileChunkItem>; | ||
export type Envelope = EventEnvelope | SessionEnvelope | ClientReportEnvelope | ProfileChunkEnvelope | ReplayEnvelope | CheckInEnvelope | StatsdEnvelope | SpanEnvelope; | ||
export type EnvelopeItem = Envelope[1][number]; | ||
export {}; | ||
//# sourceMappingURL=envelope.d.ts.map |
@@ -9,3 +9,3 @@ export { Attachment } from './attachment'; | ||
export { DebugImage, DebugMeta } from './debugMeta'; | ||
export { AttachmentItem, BaseEnvelopeHeaders, BaseEnvelopeItemHeaders, ClientReportEnvelope, ClientReportItem, DynamicSamplingContext, Envelope, EnvelopeItemType, EnvelopeItem, EventEnvelope, EventEnvelopeHeaders, EventItem, ReplayEnvelope, FeedbackItem, SessionEnvelope, SessionItem, UserFeedbackItem, CheckInItem, CheckInEnvelope, StatsdItem, StatsdEnvelope, ProfileItem, SpanEnvelope, SpanItem, } from './envelope'; | ||
export { AttachmentItem, BaseEnvelopeHeaders, BaseEnvelopeItemHeaders, ClientReportEnvelope, ClientReportItem, DynamicSamplingContext, Envelope, EnvelopeItemType, EnvelopeItem, EventEnvelope, EventEnvelopeHeaders, EventItem, ReplayEnvelope, FeedbackItem, SessionEnvelope, SessionItem, UserFeedbackItem, CheckInItem, CheckInEnvelope, StatsdItem, StatsdEnvelope, ProfileItem, ProfileChunkEnvelope, SpanEnvelope, SpanItem, } from './envelope'; | ||
export { ExtendedError } from './error'; | ||
@@ -23,3 +23,3 @@ export { Event, EventHint, EventType, ErrorEvent, TransactionEvent } from './event'; | ||
export { PolymorphicEvent, PolymorphicRequest } from './polymorphics'; | ||
export { ThreadId, FrameId, StackId, ThreadCpuSample, ThreadCpuStack, ThreadCpuFrame, ThreadCpuProfile, Profile, } from './profiling'; | ||
export { ThreadId, FrameId, StackId, ThreadCpuSample, ThreadCpuStack, ThreadCpuFrame, ThreadCpuProfile, ContinuousThreadCpuProfile, Profile, ProfileChunk, } from './profiling'; | ||
export { ReplayEvent, ReplayRecordingData, ReplayRecordingMode } from './replay'; | ||
@@ -26,0 +26,0 @@ export { FeedbackDialog, FeedbackEvent, FeedbackFormData, FeedbackInternalOptions, FeedbackModalIntegration, FeedbackScreenshotIntegration, SendFeedback, SendFeedbackParams, CreateDialogProps, UserFeedback, } from './feedback'; |
@@ -12,2 +12,8 @@ import { DebugImage } from './debugMeta'; | ||
} | ||
export interface ContinuousThreadCpuSample { | ||
stack_id: StackId; | ||
thread_id: ThreadId; | ||
queue_address?: string; | ||
timestamp: number; | ||
} | ||
export type ThreadCpuStack = FrameId[]; | ||
@@ -37,3 +43,33 @@ export type ThreadCpuFrame = { | ||
} | ||
export interface Profile { | ||
export interface ContinuousThreadCpuProfile { | ||
samples: ContinuousThreadCpuSample[]; | ||
stacks: ThreadCpuStack[]; | ||
frames: ThreadCpuFrame[]; | ||
thread_metadata: Record<ThreadId, { | ||
name?: string; | ||
priority?: number; | ||
}>; | ||
queue_metadata?: Record<string, { | ||
label: string; | ||
}>; | ||
} | ||
interface BaseProfile<T> { | ||
timestamp: string; | ||
version: string; | ||
release: string; | ||
environment: string; | ||
platform: string; | ||
profile: T; | ||
debug_meta?: { | ||
images: DebugImage[]; | ||
}; | ||
measurements?: Record<string, { | ||
unit: MeasurementUnit; | ||
values: { | ||
elapsed_since_start_ns: number; | ||
value: number; | ||
}[]; | ||
}>; | ||
} | ||
export interface Profile extends BaseProfile<ThreadCpuProfile> { | ||
event_id: string; | ||
@@ -87,2 +123,7 @@ version: string; | ||
} | ||
export interface ProfileChunk extends BaseProfile<ContinuousThreadCpuProfile> { | ||
chunk_id: string; | ||
profiler_id: string; | ||
} | ||
export {}; | ||
//# sourceMappingURL=profiling.d.ts.map |
@@ -7,3 +7,3 @@ import type { AttachmentType } from './attachment'; | ||
import type { FeedbackEvent, UserFeedback } from './feedback'; | ||
import type { Profile } from './profiling'; | ||
import type { Profile, ProfileChunk } from './profiling'; | ||
import type { ReplayEvent, ReplayRecordingData } from './replay'; | ||
@@ -23,3 +23,3 @@ import type { SdkInfo } from './sdkinfo'; | ||
}; | ||
export type EnvelopeItemType = 'client_report' | 'user_report' | 'feedback' | 'session' | 'sessions' | 'transaction' | 'attachment' | 'event' | 'profile' | 'replay_event' | 'replay_recording' | 'check_in' | 'statsd' | 'span'; | ||
export type EnvelopeItemType = 'client_report' | 'user_report' | 'feedback' | 'session' | 'sessions' | 'transaction' | 'attachment' | 'event' | 'profile' | 'profile_chunk' | 'replay_event' | 'replay_recording' | 'check_in' | 'statsd' | 'span'; | ||
export type BaseEnvelopeHeaders = { | ||
@@ -75,2 +75,8 @@ [key: string]: unknown; | ||
}; | ||
type ProfileItemHeaders = { | ||
type: 'profile'; | ||
}; | ||
type ProfileChunkItemHeaders = { | ||
type: 'profile_chunk'; | ||
}; | ||
type StatsdItemHeaders = { | ||
@@ -80,5 +86,2 @@ type: 'statsd'; | ||
}; | ||
type ProfileItemHeaders = { | ||
type: 'profile'; | ||
}; | ||
type SpanItemHeaders = { | ||
@@ -98,2 +101,3 @@ type: 'span'; | ||
export type ProfileItem = BaseEnvelopeItem<ProfileItemHeaders, Profile>; | ||
export type ProfileChunkItem = BaseEnvelopeItem<ProfileChunkItemHeaders, ProfileChunk>; | ||
export type SpanItem = BaseEnvelopeItem<SpanItemHeaders, Partial<SpanJSON>>; | ||
@@ -124,5 +128,6 @@ export type EventEnvelopeHeaders = { | ||
export type SpanEnvelope = BaseEnvelope<SpanEnvelopeHeaders, SpanItem>; | ||
export type Envelope = EventEnvelope | SessionEnvelope | ClientReportEnvelope | ReplayEnvelope | CheckInEnvelope | StatsdEnvelope | SpanEnvelope; | ||
export type ProfileChunkEnvelope = BaseEnvelope<BaseEnvelopeHeaders, ProfileChunkItem>; | ||
export type Envelope = EventEnvelope | SessionEnvelope | ClientReportEnvelope | ProfileChunkEnvelope | ReplayEnvelope | CheckInEnvelope | StatsdEnvelope | SpanEnvelope; | ||
export type EnvelopeItem = Envelope[1][number]; | ||
export {}; | ||
//# sourceMappingURL=envelope.d.ts.map |
@@ -9,3 +9,3 @@ export type { Attachment } from './attachment'; | ||
export type { DebugImage, DebugMeta } from './debugMeta'; | ||
export type { AttachmentItem, BaseEnvelopeHeaders, BaseEnvelopeItemHeaders, ClientReportEnvelope, ClientReportItem, DynamicSamplingContext, Envelope, EnvelopeItemType, EnvelopeItem, EventEnvelope, EventEnvelopeHeaders, EventItem, ReplayEnvelope, FeedbackItem, SessionEnvelope, SessionItem, UserFeedbackItem, CheckInItem, CheckInEnvelope, StatsdItem, StatsdEnvelope, ProfileItem, SpanEnvelope, SpanItem, } from './envelope'; | ||
export type { AttachmentItem, BaseEnvelopeHeaders, BaseEnvelopeItemHeaders, ClientReportEnvelope, ClientReportItem, DynamicSamplingContext, Envelope, EnvelopeItemType, EnvelopeItem, EventEnvelope, EventEnvelopeHeaders, EventItem, ReplayEnvelope, FeedbackItem, SessionEnvelope, SessionItem, UserFeedbackItem, CheckInItem, CheckInEnvelope, StatsdItem, StatsdEnvelope, ProfileItem, ProfileChunkEnvelope, SpanEnvelope, SpanItem, } from './envelope'; | ||
export type { ExtendedError } from './error'; | ||
@@ -23,3 +23,3 @@ export type { Event, EventHint, EventType, ErrorEvent, TransactionEvent } from './event'; | ||
export type { PolymorphicEvent, PolymorphicRequest } from './polymorphics'; | ||
export type { ThreadId, FrameId, StackId, ThreadCpuSample, ThreadCpuStack, ThreadCpuFrame, ThreadCpuProfile, Profile, } from './profiling'; | ||
export type { ThreadId, FrameId, StackId, ThreadCpuSample, ThreadCpuStack, ThreadCpuFrame, ThreadCpuProfile, ContinuousThreadCpuProfile, Profile, ProfileChunk, } from './profiling'; | ||
export type { ReplayEvent, ReplayRecordingData, ReplayRecordingMode } from './replay'; | ||
@@ -26,0 +26,0 @@ export type { FeedbackDialog, FeedbackEvent, FeedbackFormData, FeedbackInternalOptions, FeedbackModalIntegration, FeedbackScreenshotIntegration, SendFeedback, SendFeedbackParams, CreateDialogProps, UserFeedback, } from './feedback'; |
@@ -12,2 +12,8 @@ import type { DebugImage } from './debugMeta'; | ||
} | ||
export interface ContinuousThreadCpuSample { | ||
stack_id: StackId; | ||
thread_id: ThreadId; | ||
queue_address?: string; | ||
timestamp: number; | ||
} | ||
export type ThreadCpuStack = FrameId[]; | ||
@@ -37,3 +43,33 @@ export type ThreadCpuFrame = { | ||
} | ||
export interface Profile { | ||
export interface ContinuousThreadCpuProfile { | ||
samples: ContinuousThreadCpuSample[]; | ||
stacks: ThreadCpuStack[]; | ||
frames: ThreadCpuFrame[]; | ||
thread_metadata: Record<ThreadId, { | ||
name?: string; | ||
priority?: number; | ||
}>; | ||
queue_metadata?: Record<string, { | ||
label: string; | ||
}>; | ||
} | ||
interface BaseProfile<T> { | ||
timestamp: string; | ||
version: string; | ||
release: string; | ||
environment: string; | ||
platform: string; | ||
profile: T; | ||
debug_meta?: { | ||
images: DebugImage[]; | ||
}; | ||
measurements?: Record<string, { | ||
unit: MeasurementUnit; | ||
values: { | ||
elapsed_since_start_ns: number; | ||
value: number; | ||
}[]; | ||
}>; | ||
} | ||
export interface Profile extends BaseProfile<ThreadCpuProfile> { | ||
event_id: string; | ||
@@ -87,2 +123,7 @@ version: string; | ||
} | ||
export interface ProfileChunk extends BaseProfile<ContinuousThreadCpuProfile> { | ||
chunk_id: string; | ||
profiler_id: string; | ||
} | ||
export {}; | ||
//# sourceMappingURL=profiling.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
320580
6625