@dynatrace/react-native-plugin
Version:
This plugin gives you the ability to use the Dynatrace Mobile agent in your react native application.
48 lines (47 loc) • 2.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MODIFY_EVENT_WHITELIST_NAMESPACE = exports.MODIFY_EVENT_WHITELIST_FIELDS = exports.SEND_SESSION_PROPERTY_EVENT_WHITELIST_FIELDS = exports.SEND_EVENT_WHITELIST_FIELDS = exports.SEND_SESSION_PROPERTY_EVENT_WHITELIST_NAMESPACES = exports.SEND_EVENT_WHITELIST_NAMESPACES = exports.AllCharacteristicsKeys = exports.KEY_NAME_REGEX = exports.MAX_CUSTOM_EVENT_VALUE_LENGTH = exports.MAX_CUSTOM_EVENT_KEY_LENGTH = exports.MAX_CUSTOM_EVENT_FIELDS = void 0;
const SPECIFICATION_VERSION = '0.18';
exports.MAX_CUSTOM_EVENT_FIELDS = 50;
exports.MAX_CUSTOM_EVENT_KEY_LENGTH = 100;
exports.MAX_CUSTOM_EVENT_VALUE_LENGTH = 5000;
exports.KEY_NAME_REGEX = RegExp('^[a-z0-9]+(?:\\.[a-z][a-z0-9]*|_[a-z0-9]+)*$');
exports.AllCharacteristicsKeys = [
"characteristics.has_anr",
"characteristics.has_crash",
"characteristics.has_csp_violation",
"characteristics.has_error",
"characteristics.has_exception",
"characteristics.has_failed_request",
"characteristics.has_request",
"characteristics.has_w3c_navigation_timings",
"characteristics.has_w3c_resource_timings",
"characteristics.has_navigation",
"characteristics.has_page_summary",
"characteristics.has_user_interaction",
"characteristics.has_view_summary",
"characteristics.is_api_reported",
"characteristics.is_app_start",
"characteristics.is_internal",
"characteristics.is_self_monitoring",
"characteristics.is_visibility_change",
"characteristics.has_event_properties",
"characteristics.has_session_properties",
];
exports.SEND_EVENT_WHITELIST_NAMESPACES = [
"event_properties",
];
exports.SEND_SESSION_PROPERTY_EVENT_WHITELIST_NAMESPACES = [
"session_properties",
];
exports.SEND_EVENT_WHITELIST_FIELDS = [
"duration",
];
exports.SEND_SESSION_PROPERTY_EVENT_WHITELIST_FIELDS = exports.SEND_EVENT_WHITELIST_FIELDS;
exports.MODIFY_EVENT_WHITELIST_FIELDS = [
"exception.stack_trace",
];
exports.MODIFY_EVENT_WHITELIST_NAMESPACE = [
"session_properties",
"event_properties",
];