[][src]Function newrelic_sys::newrelic_init

pub unsafe extern "C" fn newrelic_init(
    daemon_socket: *const c_char,
    time_limit_ms: c_int
) -> bool

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

Generally, this function only needs to be called explicitly if the daemon socket location needs to be customised. By default, "/tmp/.newrelic.sock" is used, which matches the default socket location used by newrelic-daemon if one isn't given.

If an explicit call to this function is required, it must occur before the first call to newrelic_create_app().

Subsequent calls to this function after a successful call to newrelic_init() or newrelic_create_app() will fail.

@param [in] daemon_socket The path to the daemon socket. On Linux, if this starts with a literal '@', then this is treated as the name of an abstract domain socket instead of a filesystem path. If this is NULL, then the default behaviour described above will be used. @param [in] time_limit_ms The amount of time, in milliseconds, that the C SDK will wait for a response from the daemon before considering initialization to have failed. If this is 0, then a default value will be used. @return true on success; false otherwise.