Enable tag filtering within MapGrpcHealthChecksService()
See original GitHub issueIs your feature request related to a problem? Please describe.
While Add[Async]Check()
allows for specification of tags to then filter for them via MapHealthChecks()
's HealthCheckOptions.Predicate
for HTTP GET requests, there’s no such support via MapGrpcHealthChecksService()
.
Describe the solution you’d like
I’d like to filter for tags via something like that mentioned Predicate
property mechanism in MapGrpcHealthChecksService()
, too.
Describe alternatives you’ve considered
- Implementing an overloaded method - not really an option.
- Using
GrpcServiceEndpointConventionBuilder
’sAdd()
method - failed to do so due to lack of documentation on how to use that convention builder correctly for my purpose.
Additional context
I’d like to use that filtering mechanism to separate between an AddDbContextCheck()
readiness probe & another one for a liveness probe.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
[POSSIBLE] How to filter history-only tags in the ...
I'm trying to utilize this exact filter, however I've found that if the tag has security enabled on it, the history attribute doesn't...
Read more >Filtering tags with another tag on a dataset
Solved: So I'm trying to analyse the metadata of Danbooru2018 , to get practice with large datasets. The metadata includes a list of...
Read more >List and filter your resources - Amazon Elastic Compute Cloud
Searching by a tag lets you filter the resources in the currently displayed table by a tag key or a tag value. Tag...
Read more >Separate tags by category in a connectwidgets document
We use tag categories extensively in Connect. We are building a connectwidgets document. I was hoping to have filters by tag category.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Btw I rewrote the PR and made some major changes. It now supports mapping health results to service names. It makes it easier to aggregate multiple health checks together.
I took a look at this. Does https://github.com/grpc/grpc-dotnet/pull/1565 let you achieve what you want?