Skip to content

SqlClient: Provide db.system when creating activity#1979

Merged
cijothomas merged 3 commits into
open-telemetry:mainfrom
johnduhart:feature/db_system
Apr 14, 2021
Merged

SqlClient: Provide db.system when creating activity#1979
cijothomas merged 3 commits into
open-telemetry:mainfrom
johnduhart:feature/db_system

Conversation

@johnduhart
Copy link
Copy Markdown
Contributor

Fixes #1971, but only for SqlClient (still needed for Redis).

@johnduhart johnduhart requested a review from a team April 13, 2021 20:49
@johnduhart
Copy link
Copy Markdown
Contributor Author

Let me know if this warrants a changelog entry, if so I'll add it.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 13, 2021

Codecov Report

Merging #1979 (6ebad82) into main (6a7f321) will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1979      +/-   ##
==========================================
+ Coverage   83.76%   83.83%   +0.06%     
==========================================
  Files         192      192              
  Lines        6165     6172       +7     
==========================================
+ Hits         5164     5174      +10     
+ Misses       1001      998       -3     
Impacted Files Coverage Δ
...qlClient/Implementation/SqlActivitySourceHelper.cs 100.00% <100.00%> (ø)
...ient/Implementation/SqlClientDiagnosticListener.cs 83.09% <100.00%> (+5.15%) ⬆️
...emetry.Api/Internal/OpenTelemetryApiEventSource.cs 79.41% <0.00%> (-2.95%) ⬇️
src/OpenTelemetry/Trace/SamplingParameters.cs 76.92% <0.00%> (+7.69%) ⬆️

@cijothomas
Copy link
Copy Markdown
Member

Let me know if this warrants a changelog entry, if so I'll add it.

Yes please as this is an improvement which may be leveraged by end users.

Copy link
Copy Markdown
Member

@cijothomas cijothomas left a comment

Choose a reason for hiding this comment

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

LGTM.

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.

Provide db.system attribute when activity is created for use with sampling

3 participants