You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an option to set the x-request-id header for debug problem rest-api queries
Request-Id, it's uniquely identifies every HTTP request involved in operation processing, and is generated on the caller side and passed to callee.
Requirements
Autogenerate x-request-id if not set
pass exists x-request-id from different sources: http-query, call args, etc
write x-request-id to existing logs
add x-request-id to the response meta information
Example
Default flow
The user clicks on a button in the Bitrix24 application
Browser send request to server
The server creates a unique x-request-id key and adds it to request headers
The PHP application calls bitrix24-php-sdk and try to request bitrix24 rest-api
SDK find exists x-request-id key and add this key to request headers
Bitrix24 API-GATEWAY finds x-request-id key and writes it in his logs
Bitrix24 send response to bitrix24-php-sdk
bitrix24-php-sdk sign response with this x-request-id key and write it to logs
If a developer needs to investigate some problems in rest-api calls they can send x-request-id key to bitrix24 support and they try to find his request
Default fields in $_SERVER to pass exists request id into sdk
Add an option to set the
x-request-id
header for debug problem rest-api queriesRequirements
Example
Default flow
If a developer needs to investigate some problems in rest-api calls they can send x-request-id key to bitrix24 support and they try to find his request
Default fields in $_SERVER to pass exists request id into sdk
HTTP_X_REQUEST_ID
UNIQUE_ID
Server configuration
The text was updated successfully, but these errors were encountered: