[][src]Crate newrelic_sys

Re-exports

pub use self::_newrelic_loglevel_t as newrelic_loglevel_t;
pub use self::_newrelic_tt_recordsql_t as newrelic_tt_recordsql_t;
pub use self::_newrelic_transaction_tracer_threshold_t as newrelic_transaction_tracer_threshold_t;

Structs

__fsid_t
_newrelic_app_config_t

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

_newrelic_custom_event_t
_newrelic_datastore_segment_config_t

@brief Configuration used to configure how datastore segments are recorded in a transaction.

_newrelic_datastore_segment_params_t

@brief Segment configuration used to instrument calls to databases and object stores.

_newrelic_external_segment_params_t

@brief Segment configuration used to instrument external calls.

_newrelic_process_config_t

@brief Optional configuration for the underlying communication mechanism between an instrumented application and the daemon. The default is to use a UNIX-domain socket located at /tmp/.newrelic.sock. If this default works for your system, creating this configuration is not necessary.

_newrelic_segment_t
_newrelic_transaction_tracer_config_t

@brief Configuration used to configure transaction tracing.

_newrelic_transaction_tracer_config_t__bindgen_ty_1

@brief The datastore_reporting field of newrelic_transaction_tracer_config_t is a collection of configuration values that control how certain characteristics of datastore queries are recorded.

_newrelic_txn_t
_nr_app_and_info_t

Constants

INT8_MIN
INT8_MAX
INT16_MIN
INT16_MAX
INT32_MIN
INT32_MAX
INTPTR_MAX
INTPTR_MIN
INT_FAST8_MIN
INT_FAST8_MAX
INT_FAST16_MIN
INT_FAST16_MAX
INT_FAST32_MIN
INT_FAST32_MAX
INT_LEAST8_MIN
INT_LEAST8_MAX
INT_LEAST16_MIN
INT_LEAST16_MAX
INT_LEAST32_MIN
INT_LEAST32_MAX
NEWRELIC_DATASTORE_FIREBIRD
NEWRELIC_DATASTORE_INFORMIX
NEWRELIC_DATASTORE_MEMCACHE
NEWRELIC_DATASTORE_MONGODB
NEWRELIC_DATASTORE_MSSQL
NEWRELIC_DATASTORE_MYSQL
NEWRELIC_DATASTORE_ODBC
NEWRELIC_DATASTORE_ORACLE
NEWRELIC_DATASTORE_OTHER
NEWRELIC_DATASTORE_POSTGRES
NEWRELIC_DATASTORE_REDIS
NEWRELIC_DATASTORE_SQLITE
NEWRELIC_DATASTORE_SYBASE
PTRDIFF_MAX
PTRDIFF_MIN
SIG_ATOMIC_MAX
SIG_ATOMIC_MIN
SIZE_MAX
UINT8_MAX
UINT16_MAX
UINT32_MAX
UINTPTR_MAX
UINT_FAST8_MAX
UINT_FAST16_MAX
UINT_FAST32_MAX
UINT_LEAST8_MAX
UINT_LEAST16_MAX
UINT_LEAST32_MAX
WINT_MAX
WINT_MIN
_ATFILE_SOURCE
_BITS_STDINT_INTN_H
_BITS_STDINT_UINTN_H
_BITS_TIME64_H
_BITS_TYPESIZES_H
_BITS_TYPES_H
_BITS_WCHAR_H
_DEFAULT_SOURCE
_FEATURES_H
_POSIX_C_SOURCE
_POSIX_SOURCE
_STDC_PREDEF_H
_STDINT_H
_SYS_CDEFS_H
__FD_SETSIZE
__GLIBC_MINOR__
__GLIBC_USE_DEPRECATED_GETS
__GLIBC_USE_DEPRECATED_SCANF
__GLIBC_USE_IEC_60559_BFP_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT
__GLIBC_USE_IEC_60559_TYPES_EXT
__GLIBC_USE_LIB_EXT2
__GLIBC__
__GNU_LIBRARY__
__HAVE_GENERIC_SELECTION
__INO_T_MATCHES_INO64_T
__OFF_T_MATCHES_OFF64_T
__RLIM_T_MATCHES_RLIM64_T
__STDC_IEC_559__
__STDC_IEC_559_COMPLEX__
__STDC_ISO_10646__
__SYSCALL_WORDSIZE
__TIMESIZE
__USE_ATFILE
__USE_FORTIFY_LEVEL
__USE_ISOC11
__USE_ISOC95
__USE_ISOC99
__USE_MISC
__USE_POSIX
__USE_POSIX2
__USE_POSIX199309
__USE_POSIX199506
__USE_POSIX_IMPLICITLY
__USE_XOPEN2K
__USE_XOPEN2K8
__WORDSIZE
__WORDSIZE_TIME64_COMPAT32
__bool_true_false_are_defined
__glibc_c99_flexarr_available
_newrelic_loglevel_t_NEWRELIC_LOG_DEBUG

The highest-verbosity loglevel.

_newrelic_loglevel_t_NEWRELIC_LOG_ERROR

The highest-priority loglevel; only errors are logged.

_newrelic_loglevel_t_NEWRELIC_LOG_INFO

The loglevel for informational logs, warnings, and errors.

_newrelic_loglevel_t_NEWRELIC_LOG_WARNING

The loglevel for warnings and errors.

_newrelic_transaction_tracer_threshold_t_NEWRELIC_THRESHOLD_IS_APDEX_FAILING

Use 4*apdex(T) as the minimum time a transaction must take before it is eligible for a transaction trace.

_newrelic_transaction_tracer_threshold_t_NEWRELIC_THRESHOLD_IS_OVER_DURATION

Use the value given in the duration_us field as the minimum time a transaction must take before it is eligible for a transaction trace.

_newrelic_tt_recordsql_t_NEWRELIC_SQL_OBFUSCATED

For the SQL-like datastores which are supported by the C SDK, when the record_sql field of the newrelic_transaction_tracer_config_t is set to NEWRELIC_SQL_RAW the query param of the newrelic_datastore_segment_config_t is reported to New Relic with alphanumeric characters set to '?'

_newrelic_tt_recordsql_t_NEWRELIC_SQL_OFF

When the record_sql field of the newrelic_transaction_tracer_config_t is set to NEWRELIC_SQL_OFF, no queries are reported to New Relic.

_newrelic_tt_recordsql_t_NEWRELIC_SQL_RAW

For the SQL-like datastores which are supported by the C SDK, when the record_sql field of the newrelic_transaction_tracer_config_t is set to NEWRELIC_SQL_RAW the query param of the newrelic_datastore_segment_config_t is reported as-is to New Relic.

false_
true_

Functions

newrelic_add_attribute_double

@brief Add a custom double attribute to a transaction.

newrelic_add_attribute_int

@brief Add a custom integer attribute to a transaction.

newrelic_add_attribute_long

@brief Add a custom long attribute to a transaction.

newrelic_add_attribute_string

@brief Add a custom string attribute to a transaction.

newrelic_configure_log

@brief Configure the C SDK's logging system.

newrelic_create_app

@brief Create an application.

newrelic_create_app_config

@brief Create a populated application configuration.

newrelic_create_custom_event

@brief Creates a custom event

newrelic_custom_event_add_attribute_double

@brief Adds a double key/value pair to the custom event's attributes

newrelic_custom_event_add_attribute_int

@brief Adds an int key/value pair to the custom event's attributes

newrelic_custom_event_add_attribute_long

@brief Adds a long key/value pair to the custom event's attributes

newrelic_custom_event_add_attribute_string

@brief Adds a string key/value pair to the custom event's attributes

newrelic_destroy_app

@brief Destroy the application.

newrelic_destroy_app_config

@brief Destroy the application configuration.

newrelic_discard_custom_event

@brief Frees the memory for custom events created via the newrelic_create_custom_event function

newrelic_end_segment

@brief Record the completion of a segment in a transaction.

newrelic_end_transaction

@brief End a transaction.

newrelic_ignore_transaction

@brief Ignore the current transaction

newrelic_init

@brief Initialise the C SDK with non-default settings.

newrelic_notice_error

@brief Record an error in a transaction.

newrelic_record_custom_event

@brief Records the custom event.

newrelic_record_custom_metric

@brief Generate a custom metric.

newrelic_set_segment_parent

@brief Set the parent for the given segment.

newrelic_set_segment_parent_root

@brief Set the transaction's root as the parent for the given segment.

newrelic_set_segment_timing

@brief Override the timing for the given segment.

newrelic_set_transaction_timing

@brief Override the timing for the given transaction.

newrelic_start_datastore_segment

@brief Record the start of a datastore segment in a transaction.

newrelic_start_external_segment

@brief Start recording an external segment within a transaction.

newrelic_start_non_web_transaction

@brief Start a non-web based transaction.

newrelic_start_segment

@brief Record the start of a custom segment in a transaction.

newrelic_start_web_transaction

@brief Start a web based transaction.

newrelic_version

@brief Get the SDK version.

Type Definitions

__blkcnt64_t
__blkcnt_t
__blksize_t
__caddr_t
__clock_t
__clockid_t
__daddr_t
__dev_t
__fsblkcnt64_t
__fsblkcnt_t
__fsfilcnt64_t
__fsfilcnt_t
__fsword_t
__gid_t
__id_t
__ino64_t
__ino_t
__int8_t
__int16_t
__int32_t
__int64_t
__int_least8_t
__int_least16_t
__int_least32_t
__int_least64_t
__intmax_t
__intptr_t
__key_t
__loff_t
__mode_t
__nlink_t
__off64_t
__off_t
__pid_t
__quad_t
__rlim64_t
__rlim_t
__sig_atomic_t
__socklen_t
__ssize_t
__suseconds_t
__syscall_slong_t
__syscall_ulong_t
__time_t
__timer_t
__u_char
__u_int
__u_long
__u_quad_t
__u_short
__uid_t
__uint8_t
__uint16_t
__uint32_t
__uint64_t
__uint_least8_t
__uint_least16_t
__uint_least32_t
__uint_least64_t
__uintmax_t
__useconds_t
_newrelic_loglevel_t

@brief Log levels. An enumeration of the possible log levels for an SDK configuration, or newrelic_app_config_t. The highest priority loglevel is NEWRELIC_LOG_ERROR. The level NEWRELIC_LOG_DEBUG offers the greatest verbosity.

_newrelic_transaction_tracer_threshold_t

@brief Configuration values used to configure the behaviour of the transaction tracer.

_newrelic_tt_recordsql_t

@brief Configuration values used to configure how SQL queries are recorded and reported to New Relic.

int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_least8_t
int_least16_t
int_least32_t
int_least64_t
intmax_t
newrelic_app_config_t
newrelic_app_t

@brief A New Relic application. Once an application configuration is created with newrelic_create_app_config(), call newrelic_create_app() to create an application to report data to the daemon; the daemon, in turn, reports data to New Relic.

newrelic_custom_event_t

@brief A Custom Event. The C SDK provides a Custom Events API that allows one to send custom events to New Relic Insights. To send an event, start a transaction and use the newrelic_create_custom_event() and newrelic_record_custom_event() functions. Examples of sending custom events are available in the examples directory.

newrelic_datastore_segment_config_t
newrelic_datastore_segment_params_t
newrelic_external_segment_params_t
newrelic_process_config_t
newrelic_segment_t

@brief A segment within a transaction. Within an active transaction, instrument additional segments for greater granularity. Instrument external calls with newrelic_start_external_segment(). Instrument datastore calls with newrelic_start_datastore_segment(). Instrument arbitrary function calls or other code with newrelic_start_segment(). All segments must be ended with newrelic_end_segment(). Examples of instrumenting segments are available in the examples directory.

newrelic_time_us_t

@brief A time, measured in microseconds. C SDK configuration and API calls with time-related parameters expect this type. For an example configuration, see newrelic_transaction_tracer_config_t.

newrelic_transaction_tracer_config_t
newrelic_txn_t

@brief A New Relic transaction. A transaction is started using newrelic_start_web_transaction() or newrelic_start_non_web_transaction(). A started, or active, transaction is stopped using newrelic_end_transaction(). One may modify a transaction by adding custom attributes or recording errors only after it has been started.

uint_fast8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
uintmax_t