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.AspNetCore] Move to contrib repository #5599

Merged

Conversation

Kielek
Copy link
Contributor

@Kielek Kielek commented May 8, 2024

Towards: #5526
Related to: open-telemetry/opentelemetry-dotnet-contrib#1707

Changes

[Instrumentation.AspNetCore] Move to contrib repository

Known leftowers:

  • cleanup demo/examples
  • Migrate shared tests and remove corresponding classes
    • migrate RedactionHelperTest
    • migrate PropertyFetcherAotTest
    • migrate PropertyFetcherTest

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)

Copy link

codecov bot commented May 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.90%. Comparing base (6250307) to head (1b0a697).
Report is 212 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5599      +/-   ##
==========================================
+ Coverage   83.38%   85.90%   +2.52%     
==========================================
  Files         297      254      -43     
  Lines       12531    10963    -1568     
==========================================
- Hits        10449     9418    -1031     
+ Misses       2082     1545     -537     
Flag Coverage Δ
unittests ?
unittests-Solution-Experimental 85.83% <ø> (?)
unittests-Solution-Stable 85.87% <ø> (?)
unittests-Unstable-Core 19.87% <ø> (?)

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

see 112 files with indirect coverage changes

@Kielek Kielek changed the title Migrate aspnetcoreinstrumentation [Instrumentation.AspNetCore] Move to contrib repository May 8, 2024
@Kielek Kielek marked this pull request as ready for review May 8, 2024 09:39
@Kielek Kielek requested a review from a team May 8, 2024 09:39
@@ -31,7 +31,6 @@ jobs:
api-code: ['*/OpenTelemetry.Api*/**', '!**/*.md']
api-packages: ['src/OpenTelemetry.Api*/**', '!**/*.md']
instrumentation: ['*/OpenTelemetry.Instrumentation*/**', 'test/TestApp.AspNetCore/**', '!**/*.md']
instrumentation-packages: ['src/OpenTelemetry.Instrumentation*/**', '!**/*.md']
Copy link
Member

Choose a reason for hiding this comment

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

Is anything using the line above this one?

Copy link
Contributor Author

@Kielek Kielek May 8, 2024

Choose a reason for hiding this comment

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

Yes, it is strange way to execute https://github.com/open-telemetry/opentelemetry-dotnet/tree/3db49191410ec0b0cbe6f754510a4dc7c2a86dd3/test/OpenTelemetry.Instrumentation.W3cTraceContext.Tests

Probably can be renamed to something more meaningful, but I would prefer to keep as is in this PR.

Copy link
Member

Choose a reason for hiding this comment

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

Fine to leave it alone. I don't think the design for W3cTraceContext.Tests is really all that great. It is verifying/testing bits/logic inside the OpenTelemetry.Api project. Ideally it would be a test inside OpenTelemetry.Api.Tests and not use any instrumentation projects to do its work. Just haven't had the time/desire to do something about it 🤣

Copy link
Member

@CodeBlanch CodeBlanch left a comment

Choose a reason for hiding this comment

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

LGTM

@CodeBlanch CodeBlanch merged commit abb6801 into open-telemetry:main May 8, 2024
43 checks passed
@Kielek Kielek deleted the migrate-aspnetcoreinstrumentation branch May 8, 2024 16:59
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.

4 participants