Dynatrace OneAgent SDK for C/C++
1.7.1.1
|
Trace SQL-based database requests. More...
Functions | |
onesdk_databaseinfo_handle_t | onesdk_databaseinfo_create (onesdk_string_t name, onesdk_string_t vendor, onesdk_int32_t channel_type, onesdk_string_t channel_endpoint) |
Creates a database info object. More... | |
void | onesdk_databaseinfo_delete (onesdk_databaseinfo_handle_t databaseinfo_handle) |
Releases a database info object. More... | |
onesdk_tracer_handle_t | onesdk_databaserequesttracer_create_sql (onesdk_databaseinfo_handle_t databaseinfo_handle, onesdk_string_t statement) |
Creates a tracer for tracing SQL database requests. More... | |
void | onesdk_databaserequesttracer_set_returned_row_count (onesdk_tracer_handle_t tracer_handle, onesdk_int32_t returned_row_count) |
Sets the number of returned rows for a database request. More... | |
void | onesdk_databaserequesttracer_set_round_trip_count (onesdk_tracer_handle_t tracer_handle, onesdk_int32_t round_trip_count) |
Sets the number of round trips for a database request. More... | |
Trace SQL-based database requests.
Database request tracers are used to capture information about database requests. They're not taggable.
To create a database request tracer, an application must first create a database info object which describes the database that the application uses - see onesdk_databaseinfo_create.
For further information, see the high level SDK documentation at https://github.com/Dynatrace/OneAgent-SDK/#database
|
inline |
Creates a database info object.
name | The name of the database. |
vendor | The type of the database (e.g. "sqlite", "MySQL", "Oracle", "DB2" - see database_vendor_strings). |
channel_type | The type of the channel used to communicate with the database. |
channel_endpoint | [optional] The endpoint of the channel used to communicate with the database. |
This function creates a database info object which describes a database instance and is required for tracing database requests (see onesdk_databaserequesttracer_create_sql).
For information about channel_type
and channel_endpoint
see Channel Types and Endpoints.
void onesdk_databaseinfo_delete | ( | onesdk_databaseinfo_handle_t | databaseinfo_handle | ) |
Releases a database info object.
databaseinfo_handle | A valid database info handle. |
This function releases the specified database info object. Allocated resources are freed and the handle is invalidated.
An application should call onesdk_databaseinfo_delete exactly once for each database info object that it has created.
|
inline |
Creates a tracer for tracing SQL database requests.
databaseinfo_handle | A valid database info handle. |
statement | The database statement (SQL). |
void onesdk_databaserequesttracer_set_returned_row_count | ( | onesdk_tracer_handle_t | tracer_handle, |
onesdk_int32_t | returned_row_count | ||
) |
Sets the number of returned rows for a database request.
tracer_handle | A valid database request tracer handle. |
returned_row_count | The number of returned rows. Must be >= 0. |
void onesdk_databaserequesttracer_set_round_trip_count | ( | onesdk_tracer_handle_t | tracer_handle, |
onesdk_int32_t | round_trip_count | ||
) |
Sets the number of round trips for a database request.
tracer_handle | A valid database request tracer handle. |
round_trip_count | The number of round trips between the client and the database. Must be >= 0. |