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

[Shims.OpenTracing] enable code analysis #6160

Conversation

Kielek
Copy link
Contributor

@Kielek Kielek commented Mar 3, 2025

Towards #3958

Changes

[Shims.OpenTracing] enable code analysis

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 pkg:OpenTelemetry.Shims.OpenTracing Issues related to OpenTelemetry.Shims.OpenTracing NuGet package label Mar 3, 2025
@Kielek Kielek force-pushed the analysis-OpenTelemetry.Shims.OpenTracing branch from df0310f to dbab7dd Compare March 4, 2025 05:33
@Kielek Kielek marked this pull request as ready for review March 4, 2025 05:55
@Kielek Kielek requested a review from a team as a code owner March 4, 2025 05:55
@@ -65,7 +65,7 @@ public SpanBuilderShim(Tracer tracer, string spanName)
this.ScopeManager = new ScopeManagerShim();
}

private IScopeManager ScopeManager { get; }
private ScopeManagerShim ScopeManager { get; }
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI

CA1859 Change type of property 'ScopeManager' from 'OpenTracing.IScopeManager' to 'OpenTelemetry.Shims.OpenTracing.ScopeManagerShim' for improved performance

@rajkumar-rangaraj rajkumar-rangaraj merged commit c977f73 into open-telemetry:main Mar 11, 2025
49 checks passed
Copy link

codecov bot commented Mar 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.29%. Comparing base (8943733) to head (bac7bdb).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6160      +/-   ##
==========================================
- Coverage   86.30%   86.29%   -0.01%     
==========================================
  Files         257      257              
  Lines       11498    11490       -8     
==========================================
- Hits         9923     9915       -8     
  Misses       1575     1575              
Files with missing lines Coverage Δ
...OpenTelemetry.Shims.OpenTracing/SpanBuilderShim.cs 90.12% <ø> (-0.47%) ⬇️
src/OpenTelemetry.Shims.OpenTracing/SpanShim.cs 79.56% <ø> (-0.64%) ⬇️
src/OpenTelemetry.Shims.OpenTracing/TracerShim.cs 91.17% <ø> (-0.26%) ⬇️
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Kielek Kielek deleted the analysis-OpenTelemetry.Shims.OpenTracing branch March 12, 2025 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:OpenTelemetry.Shims.OpenTracing Issues related to OpenTelemetry.Shims.OpenTracing NuGet package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants