Skip to content

Introduce Logging package and rework official pipelines#3967

Merged
paulmedynski merged 64 commits intomainfrom
dev/cheena/logging-package
Feb 24, 2026
Merged

Introduce Logging package and rework official pipelines#3967
paulmedynski merged 64 commits intomainfrom
dev/cheena/logging-package

Conversation

@cheenamalhotra
Copy link
Member

Summary

Moves the ETW SqlClientEventSource tracing infrastructure (~1,180 lines) from the core driver into a new Microsoft.Data.SqlClient.Extensions.Logging (netstandard2.0) NuGet package. This enables independent versioning and shared use across SqlClient and the AKV provider (which had its own AKVEventSource, now deleted).

Key Changes

Area What Changed
New package Microsoft.Data.SqlClient.Extensions.Logging — contains SqlClientEventSource, SqlClientMetrics, SqlClientEventScope, and scope types
Core driver SqlClientEventSource.cs reduced to a ~43-line SqlClientDiagnostics bridge; 28 source files updated from TryEventScope/TrySNIEventScopeSqlClientEventScope
AKV provider Deleted AKVEventSource.cs; AKV now uses the shared SqlClientEventSource.Log from the Logging package
Build build.proj gains Logging targets; nuspec files add Logging dependency across all TFMs
Pipelines Consolidated into unified OneBranch official/non-official pipelines with selective build params, approval service, ESRP signing for Logging, reusable publish job with dry-run; deleted 9 standalone pipeline/variable files
Docs Added PackageReadme.md for all 6 packages; new OneBranch pipeline design spec (522 lines); updated AGENTS.md

Checklist

  • No breaking changes — logging behavior preserved via the extracted package as a dependency

Copilot AI review requested due to automatic review settings February 23, 2026 20:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 127 out of 129 changed files in this pull request and generated 1 comment.

- Changed Stress Tests to use project references to get rid of a bunch of headaches.
paulmedynski
paulmedynski previously approved these changes Feb 24, 2026
Copy link
Contributor

@paulmedynski paulmedynski left a comment

Choose a reason for hiding this comment

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

Phew - I finally approve 😅 Now fingers crossed all of the pipeline runs work!

Copilot AI review requested due to automatic review settings February 24, 2026 14:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 134 out of 136 changed files in this pull request and generated 5 comments.

paulmedynski
paulmedynski previously approved these changes Feb 24, 2026
Copy link
Contributor

@paulmedynski paulmedynski left a comment

Choose a reason for hiding this comment

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

Commentary for reviewers.

apoorvdeshmukh
apoorvdeshmukh previously approved these changes Feb 24, 2026
mdaigle
mdaigle previously approved these changes Feb 24, 2026
@mdaigle
Copy link
Contributor

mdaigle commented Feb 24, 2026

PR pipelines look good. Let's see what happens in the signing pipelines.

Conflicts:
	src/Microsoft.Data.SqlClient.sln
	src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.csproj
	src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.csproj
Copilot AI review requested due to automatic review settings February 24, 2026 18:35
@paulmedynski paulmedynski dismissed stale reviews from mdaigle, apoorvdeshmukh, and themself via e85687c February 24, 2026 18:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 134 out of 136 changed files in this pull request and generated 2 comments.

@paulmedynski paulmedynski merged commit e55e689 into main Feb 24, 2026
306 of 316 checks passed
@paulmedynski paulmedynski deleted the dev/cheena/logging-package branch February 24, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area\Engineering Use this for issues that are targeted for changes in the 'eng' folder or build systems. Public API 🆕 Issues/PRs that introduce new APIs to the driver.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants