Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TimedScheduler to reactor-core-micrometer module (#3109)
This commit introduces a TimedScheduler wrapper to reactor-core-micrometer module which wraps any Scheduler to add task metrics to it. This _replaces_ Micrometer.enableSchedulerMetrics from previous milestones, and is thus considered a breaking API change **vs milestones M1-M4**. The class itself is package-private, with a factory method in Micrometer that only present a `Scheduler` view of the `TimedScheduler`. The deprecation notice in core's `Schedulers#enableMetrics()` has been updated to reflect the new alternative. An old test in core was named `TimedSchedulerTest`. This is confusing now that there is an actual `TimedScheduler` so these tests have been melded into `SingleSchedulerTest` instead. This is a different approach from the core one which also Fixes #1201 again.
- Loading branch information
1 parent
88587fc
commit 06729ec
Showing
10 changed files
with
717 additions
and
349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
223 changes: 0 additions & 223 deletions
223
.../main/java/reactor/core/observability/micrometer/MicrometerSchedulerMetricsDecorator.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.