Skip to content
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

Diagnostics : Adds Continuation Token from PkRange cache #3180

Merged
merged 9 commits into from
May 13, 2022

Conversation

sourabh1007
Copy link
Contributor

@sourabh1007 sourabh1007 commented May 6, 2022

Description

After this PR,
image

Right now, NoOpTrace has been passed in most of the cases for PartitionKeyRangeCache call. In future PRs, we will be removing NoOpTrace from these calls to get the proper diagnostics.

Type of change

  • [] New feature (non-breaking change which adds functionality)

Closing issues

To automatically close an issue: closes #3167

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors|Removes) Description"

Internal should be used for PRs that have no customer impact. This flag is used to help generate the changelog to know which PRs should be included. Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors|Removes) Description"

Internal should be used for PRs that have no customer impact. This flag is used to help generate the changelog to know which PRs should be included. Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.

@sourabh1007 sourabh1007 changed the title Diagnostics : Add Cancellation Token in HttpResponseStatistics Diagnostics : Adds Cancellation Token in HttpResponseStatistics May 6, 2022
@github-actions github-actions bot dismissed stale reviews from themself May 6, 2022 21:40

All good!

@kirankumarkolli
Copy link
Member

Title says "Cancellation Token" is it supposed to be "ContinuationToken"?

@kirankumarkolli
Copy link
Member

What's the scenario for continuation token? (Is it for PkRangeFeed Api's)

@sourabh1007 sourabh1007 changed the title Diagnostics : Adds Cancellation Token in HttpResponseStatistics Diagnostics : Adds Continuation Token in HttpResponseStatistics May 9, 2022
@sourabh1007
Copy link
Contributor Author

Title says "Cancellation Token" is it supposed to be "ContinuationToken"?

It is always ContinuationToken only..Sorry for the typo and confusion.

@sourabh1007
Copy link
Contributor Author

sourabh1007 commented May 9, 2022

What's the scenario for continuation token? (Is it for PkRangeFeed Api's)

Yes..it is the same..I have put link of the issue in the PR description for more detail.

@sourabh1007 sourabh1007 force-pushed the users/sourabhjain/logcontinuationToken branch from f411bef to 1dfc08d Compare May 9, 2022 08:29
@sourabh1007 sourabh1007 changed the title Diagnostics : Adds Continuation Token in HttpResponseStatistics Diagnostics : Adds Continuation Token from PkRange cache May 10, 2022
@sourabh1007 sourabh1007 force-pushed the users/sourabhjain/logcontinuationToken branch from 1dfc08d to 9f3fe57 Compare May 10, 2022 18:29
@sourabh1007 sourabh1007 force-pushed the users/sourabhjain/logcontinuationToken branch from 0e3010f to 5df4038 Compare May 12, 2022 12:08
@sourabh1007 sourabh1007 force-pushed the users/sourabhjain/logcontinuationToken branch from 8819fad to 5651586 Compare May 12, 2022 19:15
@j82w j82w merged commit ba47e73 into master May 13, 2022
@j82w j82w deleted the users/sourabhjain/logcontinuationToken branch May 13, 2022 16:19
{
this.jsonWriter.WriteObjectStart();

this.jsonWriter.WriteFieldName("Previous Continuation Token");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use "PreviousContinuationToken"? similar as "BELatencyInMs", no space in between

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Diagnostics]Add ContinuationToken for pkRanges request in Diagnostics
5 participants