ext/oboe_metal/src/oboe.h in appoptics_apm-4.12.2 vs ext/oboe_metal/src/oboe.h in appoptics_apm-4.13.0

- old
+ new

@@ -159,11 +159,11 @@ char *key; char *value; } oboe_metric_tag_t; typedef struct oboe_init_options { - int version; // the version of this structure + int version; // the version of this structure (currently on version 12) const char *hostname_alias; // optional hostname alias int log_level; // level at which log messages will be written to log file (0-6) // use LOGLEVEL_DEFAULT for default log level const char *log_file_path; // file name including path for log file int max_transactions; // maximum number of transaction names to track @@ -182,10 +182,13 @@ double token_bucket_rate; // custom token bucket rate int file_single; // use single files in file reporter for each event int ec2_metadata_timeout; // EC2 metadata timeout in milliseconds const char *proxy; // HTTP proxy address and port to be used for the gRPC connection + int stdout_clear_nonblocking; // flag indicating if the O_NONBLOCK flag on stdout should be cleared, + // only used in lambda reporter (off=0, on=1, default off) + int is_grpc_clean_hack_enabled; // flag indicating if custom grpc clean hack enabled (default 0) } oboe_init_options_t; typedef struct oboe_span_params { int version; // the version of this structure const char *service; // custom service name (will be NULL or empty if default service name should be used) @@ -263,13 +266,13 @@ int oboe_metadata_init (oboe_metadata_t *); int oboe_metadata_destroy (oboe_metadata_t *); int oboe_metadata_is_valid (const oboe_metadata_t *); -void oboe_metadata_copy (oboe_metadata_t *, const oboe_metadata_t *); +int oboe_metadata_copy (oboe_metadata_t *, const oboe_metadata_t *); -void oboe_metadata_random (oboe_metadata_t *); +int oboe_metadata_random (oboe_metadata_t *); int oboe_metadata_set_lengths (oboe_metadata_t *, size_t, size_t); int oboe_metadata_create_event (const oboe_metadata_t *, oboe_event_t *); int oboe_metadata_tostr (const oboe_metadata_t *, char *, size_t); @@ -309,13 +312,13 @@ // oboe_context oboe_metadata_t *oboe_context_get(); -void oboe_context_set(oboe_metadata_t *); +int oboe_context_set(oboe_metadata_t *); int oboe_context_set_fromstr(const char *, size_t); -void oboe_context_clear(); +int oboe_context_clear(); int oboe_context_is_valid(); int oboe_context_is_sampled();