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

chore: Metrics - Add support for AOT #602

Merged
merged 10 commits into from
Jul 3, 2024

Conversation

hjgraca
Copy link
Contributor

@hjgraca hjgraca commented Jun 26, 2024

Please provide the issue number

Issue number: #212

Summary

Metrics support for AOT

Changes

Add new MetricsSerializationContext.cs for AOT source generated serialization
Remove dependency from UniversalWrapperAspect.cs and refactor Metric attribute/decorator
.NET8 specific paths in code
Refactor EMFValidationTests.cs no more mocks

User experience

Please share what the user experience looks like before and after this change

Checklist

Please leave checklist items unchecked if they do not apply to your change.

Is this a breaking change?

RFC issue number:

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@auto-assign auto-assign bot requested review from amirkaws and sliedig June 26, 2024 23:40
@boring-cyborg boring-cyborg bot added area/common Core Powertools utility area/metrics Core metrics utility tests labels Jun 26, 2024
@pull-request-size pull-request-size bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jun 26, 2024
@github-actions github-actions bot added the internal Maintenance changes label Jun 26, 2024
@boring-cyborg boring-cyborg bot added the documentation Improvements or additions to documentation label Jun 27, 2024
Copy link
Contributor

@amirkaws amirkaws left a comment

Choose a reason for hiding this comment

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

LGTM, Thank you

@hjgraca hjgraca changed the title chore: Metrics - Add support for AOT chore: Metrics - Add support for AOT. Jul 3, 2024
@hjgraca hjgraca changed the title chore: Metrics - Add support for AOT. chore: Metrics - Add support for AOT Jul 3, 2024
@hjgraca hjgraca mentioned this pull request Jul 3, 2024
1 task
Copy link

codecov bot commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.55%. Comparing base (cb11aff) to head (d666ab2).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #602      +/-   ##
===========================================
+ Coverage    72.30%   72.55%   +0.24%     
===========================================
  Files          190      190              
  Lines         7905     7900       -5     
  Branches       851      850       -1     
===========================================
+ Hits          5716     5732      +16     
+ Misses        1893     1877      -16     
+ Partials       296      291       -5     
Flag Coverage Δ
unittests 72.55% <100.00%> (+0.24%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hjgraca hjgraca merged commit 09f3e42 into aws-powertools:develop Jul 3, 2024
7 checks passed
@hjgraca hjgraca added the aot label Jul 30, 2024
@hjgraca hjgraca added this to the .NET AOT milestone Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aot area/common Core Powertools utility area/metrics Core metrics utility documentation Improvements or additions to documentation internal Maintenance changes size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. tests
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants