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

[Instrumentation.SqlClient] Implements database metric db.client.operation.duration (part 2/netfx) #2311

Merged
merged 17 commits into from
Nov 14, 2024

Conversation

matt-hensley
Copy link
Contributor

@matt-hensley matt-hensley commented Nov 9, 2024

Changes

Implements proposed db.client.operation.duration metric for SqlClient.

Adds implementation for .NET Framework.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • Changes in public API reviewed (if applicable)

@github-actions github-actions bot added the comp:instrumentation.sqlclient Things related to OpenTelemetry.Instrumentation.SqlClient label Nov 9, 2024
Copy link

codecov bot commented Nov 9, 2024

Codecov Report

Attention: Patch coverage is 88.33333% with 7 lines in your changes missing coverage. Please review.

Project coverage is 89.77%. Comparing base (71655ce) to head (4a925c4).
Report is 596 commits behind head on main.

Files with missing lines Patch % Lines
...ent/Implementation/SqlEventSourceListener.netfx.cs 82.50% 7 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #2311       +/-   ##
===========================================
+ Coverage   73.91%   89.77%   +15.85%     
===========================================
  Files         267        9      -258     
  Lines        9615      440     -9175     
===========================================
- Hits         7107      395     -6712     
+ Misses       2508       45     -2463     
Flag Coverage Δ
unittests-Instrumentation.SqlClient 89.77% <88.33%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...qlClient/Implementation/SqlActivitySourceHelper.cs 100.00% <100.00%> (ø)
...ient/Implementation/SqlClientDiagnosticListener.cs 89.06% <100.00%> (ø)
...ent/Implementation/SqlEventSourceListener.netfx.cs 79.20% <82.50%> (ø)

... and 270 files with indirect coverage changes

@matt-hensley matt-hensley marked this pull request as ready for review November 12, 2024 00:31
@matt-hensley matt-hensley requested a review from a team as a code owner November 12, 2024 00:31
@alanwest alanwest merged commit 9ea2d08 into open-telemetry:main Nov 14, 2024
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:instrumentation.sqlclient Things related to OpenTelemetry.Instrumentation.SqlClient
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants