newrelic-telemetry-sdk.h
struct _nrt_client_config_t nrt_client_config_t
A configuration object used to initialize a nrt_client_t.
Definition: newrelic-telemetry-sdk.h:28
bool nrt_attributes_set_string(nrt_attributes_t *attributes, const char *key, const char *value)
Add a string attribute to an attribute collection.
bool nrt_span_set_attributes(nrt_span_t *span, nrt_attributes_t **attributes)
Set attributes on a span.
bool nrt_attributes_set_int(nrt_attributes_t *attributes, const char *key, int64_t value)
Add an int attribute to an attribute collection.
bool nrt_span_set_timestamp(nrt_span_t *span, nrt_time_t timestamp)
Set the start timestamp for a span.
struct _nrt_client_t nrt_client_t
A Client is capable of both queuing and sending span and metrics batches to a configured New Relic co...
Definition: newrelic-telemetry-sdk.h:34
nrt_client_config_t * nrt_client_config_new(const char *key)
Create a new client configuration with an Insights API key.
bool nrt_span_set_parent_id(nrt_span_t *span, const char *parent_id)
Set the parent_id of a span.
bool nrt_span_set_service_name(nrt_span_t *span, const char *service_name)
Set the service name of a span.
struct _nrt_span_batch_t nrt_span_batch_t
A span batch.
Definition: newrelic-telemetry-sdk.h:44
bool nrt_attributes_set_bool(nrt_attributes_t *attributes, const char *key, bool value)
Add a bool attribute to an attribute collection.
uint64_t nrt_time_t
Indicates a point in time or a duration.
Definition: newrelic-telemetry-sdk.h:68
void nrt_client_config_set_retries_max(nrt_client_config_t *config, uint32_t retries)
Configures the maximum numbers of retries.
bool nrt_attributes_set_uint(nrt_attributes_t *attributes, const char *key, uint64_t value)
Add an unsigned int attribute to an attribute collection.
bool nrt_span_batch_record(nrt_span_batch_t *batch, nrt_span_t **span)
Add a span to a span batch.
void nrt_client_config_set_backoff_factor(nrt_client_config_t *config, nrt_time_t backoff_factor)
Configures a backoff factor.
void nrt_client_config_set_product_info(nrt_client_config_t *config, const char *product, const char *version)
Configure a product and version.
nrt_log_level_t
Represents the available verbosity levels of the logger.
Definition: newrelic-telemetry-sdk.h:82
void nrt_attributes_destroy(nrt_attributes_t **attributes)
Destroy an attribute collection.
struct _nrt_attributes_t nrt_attributes_t
A collection of attributes.
Definition: newrelic-telemetry-sdk.h:60
void nrt_client_config_set_endpoint_traces(nrt_client_config_t *config, const char *host, uint16_t port)
Configure the ingest host for traces.
void nrt_client_config_set_queue_max(nrt_client_config_t *config, size_t queue_max)
Configure the maximum of batches sent in one go.
bool nrt_span_set_duration(nrt_span_t *span, nrt_time_t duration)
Set the duration for a span.
void nrt_client_config_destroy(nrt_client_config_t **config)
Destroy a client configuration.
bool nrt_attributes_set_double(nrt_attributes_t *attributes, const char *key, double value)
Add a double attribute to an attribute collection.
nrt_span_t * nrt_span_new(const char *id, const char *trace_id, uint64_t timestamp)
Create a new span.
bool nrt_span_set_trace_id(nrt_span_t *span, const char *trace_id)
Set the trace_id of a span.
bool nrt_client_send(nrt_client_t *client, nrt_span_batch_t **batch)
Send a span batch.
Generated on Wed Sep 16 2020 23:07:29 for New Relic C Telemetry SDK by
