-
-
Notifications
You must be signed in to change notification settings - Fork 169
/
sentry_options.h
70 lines (58 loc) · 1.77 KB
/
sentry_options.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef SENTRY_OPTIONS_H_INCLUDED
#define SENTRY_OPTIONS_H_INCLUDED
#include "sentry_boot.h"
#include "sentry_logger.h"
#include "sentry_utils.h"
// Defaults to 2s as per
// https://docs.sentry.io/error-reporting/configuration/?platform=native#shutdown-timeout
#define SENTRY_DEFAULT_SHUTDOWN_TIMEOUT 2000
typedef struct sentry_path_s sentry_path_t;
typedef struct sentry_run_s sentry_run_t;
struct sentry_backend_s;
/**
* This is a linked list of all the attachments registered via
* `sentry_options_add_attachment`.
*/
typedef struct sentry_attachment_s sentry_attachment_t;
struct sentry_attachment_s {
sentry_path_t *path;
sentry_attachment_t *next;
};
/**
* This is the main options struct, which is being accessed throughout all of
* the sentry internals.
*/
typedef struct sentry_options_s {
double sample_rate;
sentry_dsn_t *dsn;
char *release;
char *environment;
char *dist;
char *http_proxy;
char *ca_certs;
char *transport_thread_name;
sentry_path_t *database_path;
sentry_path_t *handler_path;
sentry_logger_t logger;
size_t max_breadcrumbs;
bool debug;
bool auto_session_tracking;
bool require_user_consent;
bool symbolize_stacktraces;
bool system_crash_reporter_enabled;
sentry_attachment_t *attachments;
sentry_run_t *run;
sentry_transport_t *transport;
sentry_event_function_t before_send_func;
void *before_send_data;
/* everything from here on down are options which are stored here but
not exposed through the options API */
struct sentry_backend_s *backend;
long user_consent;
long refcount;
} sentry_options_t;
/**
* Increments the reference count and returns the options.
*/
sentry_options_t *sentry__options_incref(sentry_options_t *options);
#endif