import type { Primitive } from './misc'; import type { SpanOrigin } from './span'; export type Context = Record; export interface Contexts extends Record { app?: AppContext; device?: DeviceContext; os?: OsContext; culture?: CultureContext; response?: ResponseContext; trace?: TraceContext; cloud_resource?: CloudResourceContext; state?: StateContext; profile?: ProfileContext; } export interface StateContext extends Record { state: { type: string; value: Record; }; } export interface AppContext extends Record { app_name?: string; app_start_time?: string; app_version?: string; app_identifier?: string; build_type?: string; app_memory?: number; free_memory?: number; } export interface DeviceContext extends Record { name?: string; family?: string; model?: string; model_id?: string; arch?: string; battery_level?: number; orientation?: 'portrait' | 'landscape'; manufacturer?: string; brand?: string; screen_resolution?: string; screen_height_pixels?: number; screen_width_pixels?: number; screen_density?: number; screen_dpi?: number; online?: boolean; charging?: boolean; low_memory?: boolean; simulator?: boolean; memory_size?: number; free_memory?: number; usable_memory?: number; storage_size?: number; free_storage?: number; external_storage_size?: number; external_free_storage?: number; boot_time?: string; processor_count?: number; cpu_description?: string; processor_frequency?: number; device_type?: string; battery_status?: string; device_unique_identifier?: string; supports_vibration?: boolean; supports_accelerometer?: boolean; supports_gyroscope?: boolean; supports_audio?: boolean; supports_location_service?: boolean; } export interface OsContext extends Record { name?: string; version?: string; build?: string; kernel_version?: string; } export interface CultureContext extends Record { calendar?: string; display_name?: string; locale?: string; is_24_hour_format?: boolean; timezone?: string; } export interface ResponseContext extends Record { type?: string; cookies?: string[][] | Record; headers?: Record; status_code?: number; body_size?: number; } export interface TraceContext extends Record { data?: { [key: string]: any; }; op?: string; parent_span_id?: string; span_id: string; status?: string; tags?: { [key: string]: Primitive; }; trace_id: string; origin?: SpanOrigin; } export interface CloudResourceContext extends Record { ['cloud.provider']?: string; ['cloud.account.id']?: string; ['cloud.region']?: string; ['cloud.availability_zone']?: string; ['cloud.platform']?: string; ['host.id']?: string; ['host.type']?: string; } export interface ProfileContext extends Record { profile_id: string; } export interface MissingInstrumentationContext extends Record { package: string; ['javascript.is_cjs']?: boolean; } //# sourceMappingURL=context.d.ts.map