newrelic_app_config_t Struct Reference

Configuration used to describe application name, license key, as well as optional transaction tracer and datastore configuration. More...

Data Fields

char app_name [255]
 Specifies the name of the application to which data shall be reported.
 
char license_key [255]
 Specifies the New Relic license key to use.
 
char redirect_collector [100]
 Optional. Specifies the New Relic provided host. There is little reason to ever change this from the default.
 
char log_filename [512]
 Optional. Specifies the file to be used for C SDK logs. More...
 
newrelic_loglevel_t log_level
 Optional. Specifies the logfile's level of detail. More...
 
newrelic_transaction_tracer_config_t transaction_tracer
 Optional. The transaction tracer configuration. More...
 
newrelic_datastore_segment_config_t datastore_tracer
 Optional. The datastore tracer configuration. More...
 
newrelic_distributed_tracing_config_t distributed_tracing
 Optional. Distributed tracing configuration. More...
 
newrelic_span_event_config_t span_events
 Optional. Span event configuration. More...
 

Detailed Description

Configuration used to describe application name, license key, as well as optional transaction tracer and datastore configuration.

See also
newrelic_create_app_config().
Examples
ex_custom.c, ex_datastore.c, ex_distributed_tracing_client.c, ex_distributed_tracing_server.c, ex_external.c, ex_notice_error.c, ex_segment.c, ex_simple.c, and ex_timing.c.

Field Documentation

◆ datastore_tracer

newrelic_datastore_segment_config_t newrelic_app_config_t::datastore_tracer

Optional. The datastore tracer configuration.

By default, the configuration returned by newrelic_create_app_config() enables datastore segments with instance_reporting and database_name_reporting set to true.

◆ distributed_tracing

newrelic_distributed_tracing_config_t newrelic_app_config_t::distributed_tracing

Optional. Distributed tracing configuration.

By default, the configuration returned by newrelic_create_app_config() disables the distributed tracing feature by setting distributed_tracing.enabled to true.

Examples
ex_distributed_tracing_client.c, and ex_distributed_tracing_server.c.

◆ log_filename

char newrelic_app_config_t::log_filename[512]

Optional. Specifies the file to be used for C SDK logs.

If no filename is provided, no logging shall occur.

◆ log_level

newrelic_loglevel_t newrelic_app_config_t::log_level

Optional. Specifies the logfile's level of detail.

There is little reason to change this from the default value except in troubleshooting scenarios.

Must be one of the following values: NEWRELIC_LOG_ERROR, NEWRELIC_LOG_WARNING NEWRELIC_LOG_INFO (default), NEWRELIC_LOG_DEBUG.

◆ span_events

newrelic_span_event_config_t newrelic_app_config_t::span_events

Optional. Span event configuration.

By default, the configuration returned by newrelic_create_app_config() enables span event creation for the C SDK by setting span_events.enabled to true.

◆ transaction_tracer

newrelic_transaction_tracer_config_t newrelic_app_config_t::transaction_tracer

Optional. The transaction tracer configuration.

By default, the configuration returned by newrelic_create_app_config() enables transaction traces, with the threshold set to NEWRELIC_THRESHOLD_IS_APDEX_FAILING.

Examples
ex_custom.c, ex_datastore.c, ex_distributed_tracing_client.c, ex_distributed_tracing_server.c, ex_external.c, ex_segment.c, and ex_timing.c.

The documentation for this struct was generated from the following file: