@embrace-io/web-sdk
Version:
1 lines • 1.78 kB
Source Map (JSON)
{"version":3,"file":"constants.cjs","names":[],"sources":["../../../src/managers/EmbraceLimitManager/constants.ts"],"sourcesContent":["import type { EmbraceLimitManagerArgs } from './types.ts';\n\nexport const DEFAULT_MAX_LOG_ATTRIBUTES = 50;\n\nexport const DEFAULT_LIMITS: EmbraceLimitManagerArgs = {\n // These are per session limits, the counts of items against these maximums start over when `reset` is called on the\n // limit manager which is done whenever a session ends\n maxAllowed: {\n error_log: 500,\n warning_log: 200,\n info_log: 100,\n exception: 500,\n breadcrumb: 100,\n session_property: 100,\n span: 1_000,\n network_request: 10_000,\n user_timing_mark: 200,\n user_timing_measure: 100,\n element_timing: 100,\n server_timing: 50,\n soft_navigation: 100,\n },\n maxLength: {\n error_log: 128,\n warning_log: 128,\n info_log: 128,\n exception: 1024,\n breadcrumb: 256,\n session_property_key: 128,\n session_property_value: 256,\n log_attribute_key: 128,\n log_attribute_value: 256,\n exception_attribute_key: 128,\n exception_attribute_value: 256,\n },\n maxAttributes: {\n error_log: DEFAULT_MAX_LOG_ATTRIBUTES,\n warning_log: DEFAULT_MAX_LOG_ATTRIBUTES,\n info_log: DEFAULT_MAX_LOG_ATTRIBUTES,\n exception: DEFAULT_MAX_LOG_ATTRIBUTES,\n },\n};\n"],"mappings":";;AAEA,MAAa,6BAA6B;AAE1C,MAAa,iBAA0C;CAGrD,YAAY;EACV,WAAW;EACX,aAAa;EACb,UAAU;EACV,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,MAAM;EACN,iBAAiB;EACjB,kBAAkB;EAClB,qBAAqB;EACrB,gBAAgB;EAChB,eAAe;EACf,iBAAiB;CACnB;CACA,WAAW;EACT,WAAW;EACX,aAAa;EACb,UAAU;EACV,WAAW;EACX,YAAY;EACZ,sBAAsB;EACtB,wBAAwB;EACxB,mBAAmB;EACnB,qBAAqB;EACrB,yBAAyB;EACzB,2BAA2B;CAC7B;CACA,eAAe;EACb,WAAA;EACA,aAAA;EACA,UAAA;EACA,WAAA;CACF;AACF"}