You can access SAP performance statistics from the SAP NetWeaver Gateway framework for each
OData request without having to activate the Performance Trace tool. To
obtain the SAP performance statistics, you can
add"?sap-statistics=true" at the end of the request URL, regardless
of whether it is an HTTP method of type GET, POST, PUT, MERGE,
PATCH or DELETE.
Alternatively, you can enter (name=sap-statistics, value=true) in the
HTTP request header. The setting in the URL is treated with higher priority that the
setting in the HTTP header.
The
SAP NetWeaver Gateway framework provides the performance statistics to the consumer
in the HTTP response header in the following format:
- HTTP Header Name: sap-statistics
- HTTP Header Value: total, fw, app, gwtotal, gwhub, gwrfcoh,
gwbe, gwapp
Description:
- total: Total processing time
- fw: Framework
- app: Application
- gwtotal: Total processing time of the
OData request
- gwhub: Processing time in SAP NetWeaver Gateway hub system
- gwrfcoh: RFC and network overhead for
communication between the hub and backend system
- gwbe: Processing time in SAP NetWeaver Gateway framework in backend system (without application time)
- gwapp: Processing time in application
(data provider)
Note Due to SAP security policy, the SAP NetWeaver Gateway framework only provides the
performance statistics if the OData request could be processed successfully.