Dynatrace OneAgent SDK for C/C++  1.7.1.1
Functions
Custom Request Attributes

Attach custom key/value pairs to the active tracer. More...

Functions

void onesdk_customrequestattribute_add_integer (onesdk_string_t key, onesdk_int64_t value)
 Adds a custom request attribute integer to the active tracer. More...
 
void onesdk_customrequestattribute_add_float (onesdk_string_t key, double value)
 Adds a custom request attribute floating point value to the active tracer. More...
 
void onesdk_customrequestattribute_add_string (onesdk_string_t key, onesdk_string_t value)
 Adds a custom request attribute string to the active tracer. More...
 

Detailed Description

Attach custom key/value pairs to the active tracer.

Custom request attributes can be used by an application to attach custom key/value pairs to the active tracer.

For further information, see the high level SDK documentation at https://github.com/Dynatrace/OneAgent-SDK/#scav

Since
Custom request attributes were added in version 1.2.0.

Function Documentation

◆ onesdk_customrequestattribute_add_float()

void onesdk_customrequestattribute_add_float ( onesdk_string_t  key,
double  value 
)
inline

Adds a custom request attribute floating point value to the active tracer.

Parameters
keyThe key (name, ID) of the custom request attribute.
valueThe value of the custom request attribute.

For more information see Custom Request Attributes.

Since
This function was added in version 1.2.0.

◆ onesdk_customrequestattribute_add_integer()

void onesdk_customrequestattribute_add_integer ( onesdk_string_t  key,
onesdk_int64_t  value 
)
inline

Adds a custom request attribute integer to the active tracer.

Parameters
keyThe key (name, ID) of the custom request attribute.
valueThe value of the custom request attribute.

For more information see Custom Request Attributes.

Since
This function was added in version 1.2.0.

◆ onesdk_customrequestattribute_add_string()

void onesdk_customrequestattribute_add_string ( onesdk_string_t  key,
onesdk_string_t  value 
)
inline

Adds a custom request attribute string to the active tracer.

Parameters
keyThe key (name, ID) of the custom request attribute.
value[optional] The value of the custom request attribute.

For more information see Custom Request Attributes.

Since
This function was added in version 1.2.0.