-
Notifications
You must be signed in to change notification settings - Fork 522
Client Telemetry And Diagnostics : Adds VMId or Unique Id in payload #3100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
7afeaa5
first draft
sourabh1007 e89db26
bug fix and code refcator
sourabh1007 65b89e5
code clean
sourabh1007 74872bc
client telemetry with machine id
sourabh1007 439a9f2
add machineid to diagnostics
sourabh1007 abb5047
code refactor
sourabh1007 e8c3bbb
remove console statmenet
sourabh1007 037f729
fix test
sourabh1007 ac73fd9
dispose cache on dispose
sourabh1007 6ca17f9
code refactor
sourabh1007 e9b53d8
null check
sourabh1007 c5d9783
test fix
sourabh1007 5f721c6
no retry for client telemetry
sourabh1007 170c3bb
code refactor
sourabh1007 8c69d25
code refactor
sourabh1007 bd8eb8f
retry tests
sourabh1007 5131754
code refcator
sourabh1007 d64affd
add documentation
sourabh1007 2915bbd
remove dispose in vmhandler
sourabh1007 157c585
hashedMachineId and add test
sourabh1007 3e11264
sha1
sourabh1007 a0684fd
vm clear
sourabh1007 ba53f39
test intitliz add
sourabh1007 2199837
intilize to try initilize
sourabh1007 3f21905
conflict resolve
sourabh1007 3babee0
code refactor
sourabh1007 98ebd6b
clear cache using reflection
sourabh1007 2c1a100
lazy hashed machine name
sourabh1007 cd19391
hash value
sourabh1007 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
Microsoft.Azure.Cosmos/src/HttpClient/HttpTimeoutPolicyNoRetry.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| //------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| //------------------------------------------------------------ | ||
| namespace Microsoft.Azure.Cosmos | ||
| { | ||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Net.Http; | ||
| using System.Text; | ||
|
|
||
| internal sealed class HttpTimeoutPolicyNoRetry : HttpTimeoutPolicy | ||
| { | ||
| public static readonly HttpTimeoutPolicy Instance = new HttpTimeoutPolicyNoRetry(); | ||
| private static readonly string Name = nameof(HttpTimeoutPolicyNoRetry); | ||
|
|
||
| private HttpTimeoutPolicyNoRetry() | ||
| { | ||
| } | ||
|
|
||
| private readonly IReadOnlyList<(TimeSpan requestTimeout, TimeSpan delayForNextRequest)> TimeoutsAndDelays = new List<(TimeSpan requestTimeout, TimeSpan delayForNextRequest)>(); | ||
|
|
||
| public override string TimeoutPolicyName => HttpTimeoutPolicyNoRetry.Name; | ||
|
|
||
| public override TimeSpan MaximumRetryTimeLimit => TimeSpan.Zero; | ||
|
|
||
| public override int TotalRetryCount => 0; | ||
|
|
||
| public override IEnumerator<(TimeSpan requestTimeout, TimeSpan delayForNextRequest)> GetTimeoutEnumerator() | ||
| { | ||
| return this.TimeoutsAndDelays.GetEnumerator(); | ||
| } | ||
|
|
||
| // Always Unsafe to retry | ||
| public override bool IsSafeToRetry(HttpMethod httpMethod) | ||
| { | ||
| return false; | ||
| } | ||
|
|
||
| public override bool ShouldRetryBasedOnResponse(HttpMethod requestHttpMethod, HttpResponseMessage responseMessage) | ||
| { | ||
| return false; | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.