-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Diagnostics : Adds Continuation Token from PkRange cache (#3180)
Diagnostics : Adds Continuation Token from PkRange cache. 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.
- Loading branch information
1 parent
69d5ef4
commit ba47e73
Showing
6 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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
23 changes: 23 additions & 0 deletions
23
Microsoft.Azure.Cosmos/src/Tracing/TraceData/PartitionKeyRangeCacheTraceDatum.cs
This file contains 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,23 @@ | ||
// ------------------------------------------------------------ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// ------------------------------------------------------------ | ||
|
||
namespace Microsoft.Azure.Cosmos.Tracing.TraceData | ||
{ | ||
internal class PartitionKeyRangeCacheTraceDatum : TraceDatum | ||
{ | ||
public string PreviousContinuationToken { get; } | ||
public string ContinuationToken { get; } | ||
|
||
public PartitionKeyRangeCacheTraceDatum(string previousContinuationToken, string continuationToken) | ||
{ | ||
this.PreviousContinuationToken = previousContinuationToken; | ||
this.ContinuationToken = continuationToken; | ||
} | ||
|
||
internal override void Accept(ITraceDatumVisitor traceDatumVisitor) | ||
{ | ||
traceDatumVisitor.Visit(this); | ||
} | ||
} | ||
} |
This file contains 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 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 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