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

Add support for setting and retrieving a health tracker with contexts. #18

Merged
merged 2 commits into from
Oct 10, 2022

Conversation

aphistic
Copy link
Contributor

@aphistic aphistic commented Sep 6, 2022

This adds support for getting and setting a *Health tracker with a context, using HealthWithContext to include it in a context.Context, and HealthFromContext to retrieve it.

I used a specific HealthWith and HealthFrom here because I thought there might be something else that might be worth including from this package in the context at some point and didn't want it to be ambiguous.

@sonarcloud
Copy link

sonarcloud bot commented Oct 5, 2022

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

contexts.go Show resolved Hide resolved
@efritz efritz merged commit 5f10b58 into go-nacelle:master Oct 10, 2022
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.

2 participants