(Optional) End to end tracing enables an application developer and end user to trace a request that is sent from the client to the back-end. This spans the entire landscape where you can derive a correlation of traces at the client, server and back-end.
On the client side, the client framework enables an application developer to switch on the trace for messages. The client traces the request at predefined points and all these transactions/requests are recorded in a Business Transaction XML. Additionally, the client maintains a unique identifier in the HTTP header called the SAP Passport that is used to correlate traces across various components. This Business Transaction XML can later be uploaded to the SAP Solution Manager which is a central location to correlate all logging information.
The end to end tracing APIs are available in the SMPClientConnection class.
-(void)setTraceLevel:(E2ELevel)value_in;
-(void)startTrace;
-(void)stopTrace;
-(void)uploadTraceWithUserName:(NSString*)username passWord:(NSString*)password error:(NSError**)error;
SMPClientConnection* clientConn = [SMPClientConnection initializeWithAppID:@"com.sap.NewFlight" domain:@"default" secConfiguration:@"SSO"]; [clientConn setConnectionProfileWithUrl:@"http://dewdf30185.wdf.sap.corp:8000"]; //Successfully onboard the user [clientConn setTraceLevel:E2EHIGH]; [clientConn startTrace]; //Perform request response [clientConn stopTrace]; NSError* _uploadError = nil; [clientConn uploadTraceWithUserName:@"supuser" passWord:@"s3puser" error:&_uploadError]; if(_uploadError) { NSLog(@"BTX UPLOAD ERROR: %@",_uploadError); }