|
Conviva Client Library
2.187.0.0
|
|
19 #include "ccl_dictionary.h"
21 #define CAT_MAX_APP_NAME_LENGTH 64
22 #define CAT_MAX_USER_ID_LENGTH 64
23 #define CAT_MAX_IID_LENGTH 64
25 #define CCL_APP_MAX_SCREEN_NAME_LEN 1024
26 #define CCL_APP_MAX_SCREEN_ID_LEN 38
29 #define CAT_MAX_URL_LENGTH 1024
30 #define CAT_MAX_METHOD_LENGTH 15
31 #define CAT_MAX_BODY_LENGTH 10000 // 10 KB
33 #define CAT_MEMORY_ERROR -1
34 #define CAT_MUTEX_ERROR -2
35 #define CAT_INPUT_ERROR -3
36 #define CAT_TIMER_ERROR -4
40 #define CAT_MAX_APP_BUILD_LENGTH 64
41 #define CAT_MAX_APP_VERSION_LENGTH 64
122 #define STR_MAX_LEN_1024 1024
123 #define STR_MAX_LEN_2048 2048
124 #define STR_MAX_LEN_8192 8192
@ CAT_ERROR_LANG_JAVA
Definition: app_tracker.h:96
int cat_track_app_install(void)
notifies the app install event, normally calls on fresh launch after install or upgrade
char app_version[CAT_MAX_APP_VERSION_LENGTH]
Definition: app_tracker.h:83
char * stack_trace
Definition: app_tracker.h:140
@ CAT_ERROR_LANG_RUBY
Definition: app_tracker.h:100
@ CAT_ERROR_LANG_JAVASCRIPT
Definition: app_tracker.h:102
void * request_body
Definition: app_tracker.h:64
@ CAT_ERROR_LANG_C
Definition: app_tracker.h:107
struct ccl_dictionary ccl_dictionary_t
Definition: ccl_dictionary.h:18
@ CAT_ERROR_LANG_ELIXIR
Definition: app_tracker.h:116
uint64_t load_end
Definition: app_tracker.h:172
int cat_clear_all_custom_tags()
clear all custom tags
void * response_body
Definition: app_tracker.h:66
Application Not Responding details.
Definition: app_tracker.h:70
struct cat_anr_info cat_anr_info_t
Application Not Responding details.
uint64_t request_timestamp
Definition: app_tracker.h:54
char * file_name
Definition: app_tracker.h:152
@ CAT_ERROR_LANG_CLOJURE
Definition: app_tracker.h:114
cat_error_lang_t error_lang
Definition: app_tracker.h:130
#define CAT_MAX_APP_BUILD_LENGTH
Definition: app_tracker.h:40
struct cat_app_error_info cat_app_error_info_t
Application Error Information.
char * anr_reason
Definition: app_tracker.h:74
char app_build[CAT_MAX_APP_BUILD_LENGTH]
Definition: app_tracker.h:81
int is_fatal
Definition: app_tracker.h:154
Use to set the network request details.
Definition: app_tracker.h:45
int line_column
Definition: app_tracker.h:146
uint64_t app_load_end
Definition: app_tracker.h:89
char * class_name
Definition: app_tracker.h:148
@ CAT_ERROR_LANG_RUST
Definition: app_tracker.h:112
@ CAT_ERROR_LANG_CPLUSPLUS
Definition: app_tracker.h:108
struct cat_app_info cat_app_info_t
Use to set the application details.
@ CAT_ERROR_LANG_ERLANG
Definition: app_tracker.h:115
struct cat_screen_info cat_screen_info_t
Screen details.
int cat_set_application_info(cat_app_info_t *app_info)
set application info, can set right after the tracker creation.
cat_error_lang
Language of the error message.
Definition: app_tracker.h:94
char * screen_transition_type
Definition: app_tracker.h:168
@ CAT_ERROR_LANG_HASKELL
Definition: app_tracker.h:113
int response_code
Definition: app_tracker.h:52
@ CAT_ERROR_LANG_NIM
Definition: app_tracker.h:119
@ CAT_ERROR_LANG_UNKNOWN
Definition: app_tracker.h:95
int cat_set_user_id(const char *uid)
Sets the user ID for ECO.
char * cause_stack_trace
Definition: app_tracker.h:142
@ CAT_ERROR_LANG_OBJECTIVEC
Definition: app_tracker.h:105
void * request_header
Definition: app_tracker.h:60
Screen details.
Definition: app_tracker.h:159
void * response_header
Definition: app_tracker.h:62
int cat_pause_tracker(void)
pause the app tracker to stop monitoring
@ CAT_ERROR_LANG_LUA
Definition: app_tracker.h:111
#define CAT_MAX_URL_LENGTH
Definition: app_tracker.h:29
char * exception_name
Definition: app_tracker.h:150
@ CAT_ERROR_LANG_KOTLIN
Definition: app_tracker.h:98
Application Error Information.
Definition: app_tracker.h:127
@ CAT_ERROR_LANG_CSHARP
Definition: app_tracker.h:109
int cat_clear_custom_tags(char *keys[], int key_count)
clear the specific custom tags with keys
uint64_t app_load_start
Definition: app_tracker.h:87
char * screen_type
Definition: app_tracker.h:166
@ CAT_ERROR_LANG_GROOVY
Definition: app_tracker.h:99
@ CAT_ERROR_LANG_ACTIONSCRIPT
Definition: app_tracker.h:110
Use to set the application details.
Definition: app_tracker.h:78
int cat_set_custom_tags(ccl_dictionary_t *tags)
set the custom tags
char * thread_name
Definition: app_tracker.h:136
@ CAT_ERROR_LANG_SCALA
Definition: app_tracker.h:97
@ CAT_ERROR_LANG_PYTHON
Definition: app_tracker.h:104
int thread_id
Definition: app_tracker.h:138
@ CAT_ERROR_LANG_PONY
Definition: app_tracker.h:118
int cat_resume_tracker(void)
resume the app tracker to start monitoring again
int line_number
Definition: app_tracker.h:144
@ CAT_ERROR_LANG_CRYSTAL
Definition: app_tracker.h:117
enum cat_error_lang cat_error_lang_t
Language of the error message.
char target_url[CAT_MAX_URL_LENGTH]
Definition: app_tracker.h:48
int cat_track_screen_view(cat_screen_info_t *screen_info)
send the screen info
uint64_t load_start
Definition: app_tracker.h:170
int cat_track_network_request(cat_network_request_info_t *nw_info)
send the network request info to eco
char * error_msg
Definition: app_tracker.h:132
@ CAT_ERROR_LANG_GOLANG
Definition: app_tracker.h:101
int cat_track_application_error(cat_app_error_info_t *error_info)
send the application error to eco, use this API for realtime error tracking.
int cat_send_custom_event(const char *name, ccl_dictionary_t *attributes)
send custom event to eco
uint64_t response_timestamp
Definition: app_tracker.h:56
#define CAT_MAX_METHOD_LENGTH
Definition: app_tracker.h:30
struct cat_network_request_info cat_network_request_info_t
Use to set the network request details.
@ CAT_ERROR_LANG_SWIFT
Definition: app_tracker.h:106
char method[CAT_MAX_METHOD_LENGTH]
Definition: app_tracker.h:50
#define CAT_MAX_APP_VERSION_LENGTH
Definition: app_tracker.h:41
@ CAT_ERROR_LANG_PHP
Definition: app_tracker.h:103
uint64_t anr_start
Definition: app_tracker.h:72
char * screen_name
Definition: app_tracker.h:162
int cat_track_anr(cat_anr_info_t *anr_info)
send the ANR(application not responding) event, shall send on unrecovered ANRs on next launch.