How to get x-ms-request-id from Azure table storage api call
-
שבת 28 יולי 2012 21:14
I getting slow behavior for my azure tablestorage api calls on a windows azure app.I need to get the request id (x-ms-request-id in the response header) for a particular call. Is there a way I can get it using the storageclient api? Does the storage client api even expose this id? If not, is there any other way to get this id?
I am using the api in the following way:
public UserDataModel GetUserData(String UserId) { UserDataModel osudm = null; try { var result = (from c in GetServiceContext().OrgUserIdTable where (c.RowKey == UserId) select c).FirstOrDefault(); UserDataSource osuds = new UserDataSource(this.account); osudm = osuds.GetUserData(result.PartitionKey, result.UserName); } catch (Exception e) { } return osudm; }
כל התגובות
-
יום ראשון 29 יולי 2012 04:59
From what I can tell in the documentation, this header is only used with the Service Management API where one would create hosted services or storage accounts programmatically, for example, not access them.
See the http://msdn.microsoft.com/en-us/library/windowsazure/ee460807.aspx topic, specifically the http://msdn.microsoft.com/en-us/library/windowsazure/ee460791 section on MSDN for more info.
- סומן כתשובה על-ידי Arwind - MSFTModerator יום שישי 03 אוגוסט 2012 05:43
-
יום ראשון 29 יולי 2012 05:39
As I mentioned on the Stack Overflow thread (http://stackoverflow.com/questions/11704688/how-to-get-x-ms-request-id-from-azure-table-storage-api-call), this header is included in responses from storage.- הוצע כתשובה על-ידי Veerendra Kumar יום שני 30 יולי 2012 06:09
- סומן כתשובה על-ידי Arwind - MSFTModerator יום שישי 03 אוגוסט 2012 05:43