Dynatrace OneAgent SDK for C/C++
1.7.1.1
|
Functions | |
onesdk_xchar_t const * | onesdk_agent_get_version_string (void) |
Returns the version string of the loaded SDK agent module. More... | |
onesdk_int32_t | onesdk_agent_get_current_state (void) |
Returns the current agent state. More... | |
void | onesdk_agent_set_logging_callback (onesdk_agent_logging_callback_t *agent_logging_callback) |
DEPRECATED. Sets the agent warning callback function. More... | |
onesdk_result_t | onesdk_agent_set_warning_callback (onesdk_agent_logging_callback_t *agent_logging_callback) |
Sets the agent warning callback function. More... | |
onesdk_result_t | onesdk_agent_set_verbose_callback (onesdk_agent_logging_callback_t *agent_logging_callback) |
Sets the verbose agent logging callback function. More... | |
onesdk_int32_t | onesdk_agent_get_fork_state (void) |
Returns the current agent fork state. Only relevant if you used ONESDK_INIT_FLAG_FORKABLE. See Agent forking state constants. More... | |
onesdk_int32_t onesdk_agent_get_current_state | ( | void | ) |
onesdk_int32_t onesdk_agent_get_fork_state | ( | void | ) |
Returns the current agent fork state. Only relevant if you used ONESDK_INIT_FLAG_FORKABLE. See Agent forking state constants.
Calling this function only has a defined result when onesdk_agent_get_current_state returns ONESDK_AGENT_STATE_ACTIVE or ONESDK_AGENT_STATE_TEMPORARILY_INACTIVE.
onesdk_xchar_t const* onesdk_agent_get_version_string | ( | void | ) |
Returns the version string of the loaded SDK agent module.
Your application should not try to parse the version string or make any assumptions about its format.
void onesdk_agent_set_logging_callback | ( | onesdk_agent_logging_callback_t * | agent_logging_callback | ) |
DEPRECATED. Sets the agent warning callback function.
agent_logging_callback | The new agent warning callback function. |
onesdk_agent_set_logging_callback
, like onesdk_agent_set_warning_callback, can fail but it has no way to report errors). onesdk_result_t onesdk_agent_set_verbose_callback | ( | onesdk_agent_logging_callback_t * | agent_logging_callback | ) |
Sets the verbose agent logging callback function.
agent_logging_callback | The new verbose agent logging callback function. |
Similar to onesdk_agent_set_warning_callback but the callback supplied here will not be called with warning messages but with additional messages that may e.g. explain why a PurePath was not created even if the reason is (usually) benign.
onesdk_result_t onesdk_agent_set_warning_callback | ( | onesdk_agent_logging_callback_t * | agent_logging_callback | ) |
Sets the agent warning callback function.
agent_logging_callback | The new agent warning callback function. |
The agent warning callback is called whenever one of the following happens while executing an SDK function:
The agent warning callback is only ever called from SDK functions (i.e., it can only be invoked on threads that call SDK functions, while the SDK function is executing). The application must not call any SDK functions from the callback.
This mechanism is provided primarily as a development and debugging aid. Typically, you should set it once, right after initializing the SDK and never change it (though changing the callback is supported, it rarely makes sense).
There is no default logging function.