Skip to content

Instantly share code, notes, and snippets.

@buchizo
Created June 1, 2021 20:57
Show Gist options
  • Save buchizo/52b3133a12cd5ba0b30bb95da9af631d to your computer and use it in GitHub Desktop.
Save buchizo/52b3133a12cd5ba0b30bb95da9af631d to your computer and use it in GitHub Desktop.
直接接続モードのクライアントクエリの診断ログ
{
"name": "ReadItemAsync",
"id": "dc751f42-3903-4876-a4b8-d343bdbc5d5b",
"caller info": {
"member": "OperationHelperWithRootTraceAsync",
"file": "ClientContextCore.cs",
"line": 219
},
"start time": "08:07:18:807",
"duration in milliseconds": 4259.9249,
"data": {
"Client Configuration": {
"Client Created Time Utc": "2021-06-01T20:07:18.7276444Z",
"NumberOfClientsCreated": 2,
"User Agent": "cosmos-netstandard-sdk/3.19.0|3.19.1|02|X64|Microsoft Windows 10.0.19043|.NET Core 3.1.15|N|",
"ConnectionConfig": {
"gw": "(cps:50, urto:10, p:False, httpf: False)",
"rntbd": "(cto: 5, icto: -1, mrpc: 30, mcpe: 65535, erd: False, pr: ReuseUnicastPort)",
"other": "(ed:False, be:False)"
},
"ConsistencyConfig": "(consistency: NotSet, prgns:[])"
}
},
"children": [
{
"name": "Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler",
"id": "09e8c937-0022-47f5-9391-d61a622ca37f",
"start time": "08:07:18:813",
"duration in milliseconds": 4242.426,
"children": [
{
"name": "Microsoft.Azure.Cosmos.Handlers.DiagnosticsHandler",
"id": "f1415a10-7a2f-4d44-a271-e62cf134ee79",
"start time": "08:07:19:993",
"duration in milliseconds": 3061.6897,
"data": {
"CPU Load History": {
"CPU History": "(2021-06-01T20:07:20.0070181Z 18.750)"
}
},
"children": [
{
"name": "Microsoft.Azure.Cosmos.Handlers.RetryHandler",
"id": "b7757d05-093d-4b82-97f1-51400c28c4b3",
"start time": "08:07:20:011",
"duration in milliseconds": 3043.7136,
"children": [
{
"name": "Microsoft.Azure.Cosmos.Handlers.RouterHandler",
"id": "cd87fa95-91cf-4478-9e2c-bd10169e88a5",
"start time": "08:07:20:019",
"duration in milliseconds": 3035.668,
"children": [
{
"name": "Microsoft.Azure.Cosmos.Handlers.TransportHandler",
"id": "89cbc680-ae1c-47f6-8d7d-c361730c7a5e",
"start time": "08:07:20:020",
"duration in milliseconds": 3034.2815,
"children": [
{
"name": "Microsoft.Azure.Documents.ServerStoreModel Transport Request",
"id": "06a27174-f4cf-49fb-bb45-1119f04a1b3c",
"caller info": {
"member": "ProcessMessageAsync",
"file": "TransportHandler.cs",
"line": 109
},
"start time": "08:07:20:028",
"duration in milliseconds": 3024.9621,
"data": {
"Client Side Request Stats": {
"Id": "AggregatedClientSideRequestStatistics",
"ContactedReplicas": [],
"RegionsContacted": [
"https://kosmosebi-db-eastus2.documents.azure.com/"
],
"FailedReplicas": [],
"AddressResolutionStatistics": [
{
"StartTimeUTC": "2021-06-01T20:07:21.5625391Z",
"EndTimeUTC": "2021-06-01T20:07:21.7780732Z",
"TargetEndpoint": "https://kosmosebi-db-eastus2.documents.azure.com//addresses/?$resolveFor=dbs%2fLkMjAA%3d%3d%2fcolls%2fLkMjAJGDN-M%3d%2fdocs&$filter=protocol eq rntbd&$partitionKeyRangeIds=0"
}
],
"StoreResponseStatistics": [
{
"ResponseTimeUTC": "2021-06-01T20:07:23.0371791Z",
"ResourceType": "Document",
"OperationType": "Read",
"LocationEndpoint": "https://kosmosebi-db-eastus2.documents.azure.com/",
"StoreResult": {
"ActivityId": "cbfee39a-9440-4246-a140-16b73bf03010",
"StatusCode": "Ok",
"SubStatusCode": "Unknown",
"LSN": 5,
"PartitionKeyRangeId": "0",
"GlobalCommittedLSN": 5,
"ItemLSN": 5,
"UsingLocalLSN": true,
"QuorumAckedLSN": 5,
"SessionToken": "-1#5",
"CurrentWriteQuorum": 3,
"CurrentReplicaSetSize": 4,
"NumberOfReadRegions": 0,
"IsClientCpuOverloaded": false,
"IsValid": true,
"StorePhysicalAddress": "rntbd://cdb-ms-prod-eastus2-fd62.documents.azure.com:14030/apps/9aaea0b6-5c74-4616-a31e-fac7c4dfae58/services/063f1e99-c71e-40f7-9adc-9b95dddb0206/partitions/18cc10d5-0cc0-465c-9435-15dda22bc843/replicas/132670191018739832p/",
"RequestCharge": 2.19,
"BELatencyInMs": "0.255",
"TransportException": null
}
}
],
"HttpResponseStats": [
{
"StartTimeUTC": "2021-06-01T20:07:20.9934778Z",
"EndTimeUTC": "2021-06-01T20:07:20.9934805Z",
"RequestUri": "https://kosmosebi-db-eastus2.documents.azure.com/dbs/kosmosdb/colls/sample",
"ResourceType": "Collection",
"HttpMethod": "GET",
"ActivityId": "227df39a-4879-4ad8-84b5-8245cc078084",
"StatusCode": "OK"
},
{
"StartTimeUTC": "2021-06-01T20:07:21.2678127Z",
"EndTimeUTC": "2021-06-01T20:07:21.2678131Z",
"RequestUri": "https://kosmosebi-db-eastus2.documents.azure.com/dbs/LkMjAA==/colls/LkMjAJGDN-M=/pkranges",
"ResourceType": "PartitionKeyRange",
"HttpMethod": "GET",
"ActivityId": "a1429289-caa3-4373-ade9-080f67d5a6ae",
"StatusCode": "OK"
},
{
"StartTimeUTC": "2021-06-01T20:07:21.5319331Z",
"EndTimeUTC": "2021-06-01T20:07:21.5319356Z",
"RequestUri": "https://kosmosebi-db-eastus2.documents.azure.com/dbs/LkMjAA==/colls/LkMjAJGDN-M=/pkranges",
"ResourceType": "PartitionKeyRange",
"HttpMethod": "GET",
"ActivityId": "ecff2331-1f69-42a8-a860-ec4008d88971",
"StatusCode": "NotModified",
"ReasonPhrase": "Not Modified"
},
{
"StartTimeUTC": "2021-06-01T20:07:21.7769546Z",
"EndTimeUTC": "2021-06-01T20:07:21.7769587Z",
"RequestUri": "https://kosmosebi-db-eastus2.documents.azure.com//addresses/?$resolveFor=dbs%2fLkMjAA%3d%3d%2fcolls%2fLkMjAJGDN-M%3d%2fdocs&$filter=protocol eq rntbd&$partitionKeyRangeIds=0",
"ResourceType": "Document",
"HttpMethod": "GET",
"ActivityId": "cbfee39a-9440-4246-a140-16b73bf03010",
"StatusCode": "OK"
}
]
}
}
}
]
}
]
}
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment