Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Microsoft.Azure.Cosmos/src/Resource/ClientContextCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ private Task<TResult> OperationHelperWithRootTraceWithSynchronizationContextAsyn

using (ITrace trace = disableDiagnostics ? NoOpTrace.Singleton : (ITrace)Tracing.Trace.GetRootTrace(operationName, traceComponent, traceLevel))
{
trace.AddDatum("Client Configuration", this.client.ClientConfigurationTraceDatum);
trace.AddDatum("Synchronization Context", syncContextVirtualAddress);

return await this.RunWithDiagnosticsHelperAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public void VerifySynchronizationContextDoesNotLock(bool withClientTelemetry)
Assert.IsNotNull(response);
string diagnostics = response.Diagnostics.ToString();
Assert.IsTrue(diagnostics.Contains("Synchronization Context"));
Assert.IsTrue(diagnostics.Contains("Client Configuration"));

using CancellationTokenSource cancellationTokenSource = new CancellationTokenSource();

Expand Down