AddResourceMonitoring with options is marked as obsolete
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 894
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 23
Description
### Description
We're using the .NET resource monitoring API to obtain metrics for CPU and Memory usage. There's one option that is mandatory for us to use, to work around a bug that wasn't directly fixed in code (the issue reported in #5472).
The problem that we have now is that when we try to use `AddResourceMonitoring` overload that accepts options, it comes up as obsolete. Is this intentional? My understanding is that the `IResourceMonitor` API was marked as obsolete (#5773), but that the .NET resource monitoring library is the right one to use now.
Is that case? If so, which method should I use to configure options for this functionality?
### Reproduction Steps
Try to call `AddResourceMonitoring(IServiceCollection, Action)` in code.
### Expected behavior
We should be able to use this method without any compiler warnings or errors.
### Actual behavior
The compiler throws an error due to the method being obsolete, and no alternatives are given.
### Regression?
_No response_
### Known Workarounds
_No response_
### Configuration
_No response_
### Other information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.