Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(metrics): proxy service and namespace attrs to provider #2910

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

Merged
merged 1 commit into from
Aug 2, 2023
Merged

fix(metrics): proxy service and namespace attrs to provider #2910

merged 1 commit into from
Aug 2, 2023

Conversation

leandrodamascena
Copy link
Contributor

Issue number: #2909

Summary

Changes

This PR introduces getter/setter methods.

User experience

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

Checklist

If your change doesn't seem to apply, please leave them unchecked.

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.

@leandrodamascena leandrodamascena requested a review from a team August 2, 2023 11:31
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 2, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@github-actions github-actions bot added the bug Something isn't working label Aug 2, 2023
@heitorlessa heitorlessa changed the title bug(metrics): add getter/setter methods to access properties in Metric class fix(metrics): add getter/setter methods to access properties in Metric class Aug 2, 2023
@codecov-commenter
Copy link

codecov-commenter commented Aug 2, 2023

Codecov Report

Patch coverage: 83.33% and project coverage change: -0.03% ⚠️

Comparison is base (cdf9084) 96.43% compared to head (d57d0a1) 96.41%.
Report is 2 commits behind head on develop.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2910      +/-   ##
===========================================
- Coverage    96.43%   96.41%   -0.03%     
===========================================
  Files          169      169              
  Lines         7666     7678      +12     
  Branches      1447     1451       +4     
===========================================
+ Hits          7393     7403      +10     
- Misses         217      219       +2     
  Partials        56       56              
Files Changed Coverage Δ
aws_lambda_powertools/metrics/metrics.py 91.66% <83.33%> (-2.09%) ⬇️

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

@heitorlessa heitorlessa changed the title fix(metrics): add getter/setter methods to access properties in Metric class fix(metrics): proxy service and namespace attrs to provider Aug 2, 2023
@heitorlessa heitorlessa merged commit 907821d into aws-powertools:develop Aug 2, 2023
heitorlessa added a commit to heitorlessa/aws-lambda-powertools-python that referenced this pull request Aug 2, 2023
* develop:
  chore: cleanup, add test for single and nested
  fix(parameters): make cache aware of single vs multiple calls
  fix(metrics): proxy service and namespace attrs to provider (aws-powertools#2910)
  chore(deps-dev): bump ruff from 0.0.281 to 0.0.282 (aws-powertools#2905)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working metrics size/M Denotes a PR that changes 30-99 lines, ignoring generated files. tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Metrics class is unable to access namespace and service properties
3 participants