Skip to content

Add opt-in .NET HTTP diagnostics for Cosmos connections#236

Draft
philnach wants to merge 4 commits intomainfrom
philnach/issue-229-enable-net-http-logging
Draft

Add opt-in .NET HTTP diagnostics for Cosmos connections#236
philnach wants to merge 4 commits intomainfrom
philnach/issue-229-enable-net-http-logging

Conversation

@philnach
Copy link
Copy Markdown
Collaborator

@philnach philnach commented Mar 3, 2026

Summary

  • add EnableNetHttpLogging to Cosmos extension settings
  • hook .NET System.Net.Http and System.Net.Security event sources when enabled
  • emit diagnostic events at Debug level for connection troubleshooting
  • add unit tests for toggle behavior and update Cosmos extension docs

Validation

  • dotnet test Extensions/Cosmos/Cosmos.DataTransfer.CosmosExtension.UnitTests/Cosmos.DataTransfer.CosmosExtension.UnitTests.csproj --nologo
  • Result: Passed 53, Skipped 2, Failed 0

Related

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.

Cosmos-nosql RemoteCertificateNameMismatch

1 participant