Skip to content

Fix AOT warnings for RuntimeContext#4542

Merged
utpilla merged 7 commits intoopen-telemetry:mainfrom
utpilla:utpilla/Fix-AOT-Warnings-For-RuntimeContext
Jun 6, 2023
Merged

Fix AOT warnings for RuntimeContext#4542
utpilla merged 7 commits intoopen-telemetry:mainfrom
utpilla:utpilla/Fix-AOT-Warnings-For-RuntimeContext

Conversation

@utpilla
Copy link
Copy Markdown
Contributor

@utpilla utpilla commented Jun 2, 2023

Towards #3429

This PR introduces a Breaking change. This would no longer support assigning custom types to RuntimeContext.ContextSlotType.

Changes

  • Fix AOT warnings for RuntimeContext class
  • Drop support for custom implementations of RuntimeContextSlot<T>

Merge requirement checklist

  • Appropriate CHANGELOG.md files updated for non-trivial changes

@codecov
Copy link
Copy Markdown

codecov bot commented Jun 2, 2023

Codecov Report

Merging #4542 (5dea4c9) into main (839de1a) will decrease coverage by 0.09%.
The diff coverage is 29.41%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4542      +/-   ##
==========================================
- Coverage   85.58%   85.50%   -0.09%     
==========================================
  Files         320      320              
  Lines       12615    12628      +13     
==========================================
+ Hits        10796    10797       +1     
- Misses       1819     1831      +12     
Impacted Files Coverage Δ
src/OpenTelemetry.Api/Context/RuntimeContext.cs 47.82% <29.41%> (-15.82%) ⬇️

... and 4 files with indirect coverage changes

@utpilla utpilla marked this pull request as ready for review June 2, 2023 22:21
@utpilla utpilla requested a review from a team June 2, 2023 22:21
@utpilla utpilla mentioned this pull request Jun 2, 2023
4 tasks
Copy link
Copy Markdown
Contributor

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks!

Copy link
Copy Markdown
Member

@alanwest alanwest left a comment

Choose a reason for hiding this comment

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

Just a suggestion to add context for why this change is being made.

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.

6 participants