You can include response body in analytics by using the atatus_set_response_body()
function.
Compatibility
Requires PHP agent version 1.14.0 or higher.
Syntax
atatus_set_response_body($value)
Parameter
Parameter | Type | Description |
---|---|---|
$value | String (Required) | Body data. |
Example
copy
<?php
if (extension_loaded('atatus')) {
atatus_set_response_body('[
{
"name": "primary_color_border",
"href": "/api/catalog/accounts/60073/account_preferences/primary_color_border",
"kind": "self_service#account_preference",
"value": "#476189",
"timestamps": {
"created_at": "2014-07-31T19:29:36.513+00:00",
"updated_at": "2014-07-31T19:29:36.513+00:00"
}
}
]');
}