Add remaining deprecations for legacy metrics
- add a module to suppress legacy metrics from the Integration Graph - move graph tests package to match src/main Fix missed deprecation and checkstyle. More deprecations and remove GraphLegacyStatsNullModule. * Revert GRAPH_VERSION. * Fix JavaDocs warnings * Fix `MBeanExporterParserTests`
This commit is contained in:
committed by
Artem Bilan
parent
b06322787e
commit
c2babe4ba2
@@ -93,7 +93,18 @@ A Spring Integration application with only the default components would expose a
|
||||
|
||||
NOTE: Version 5.2 has deprecated the legacy metrics in favor of Micrometer meters as discussed <<./metrics.adoc#metrics-management,Metrics Management>>.
|
||||
While not shown above, the legacy metrics (under the `stats` child node) will continue to appear in the graph, but with an extra child node `"deprecated" : "stats are deprecated in favor of sendTimers and receiveCounters"`.
|
||||
The `providerFormatVersion` has been changed to 1.1 to reflect this change.
|
||||
|
||||
With some JSON serializers, you can suppress the inclusion of legacy statistics using several techniques; for example, with Jackson, you can register a `SimpleModule` configured with a `NullSerializer` with the `ObjectMapper`:
|
||||
|
||||
====
|
||||
[source, java]
|
||||
----
|
||||
objectMapper.registerModule(new SimpleModule()
|
||||
.addSerializer(IntegrationNode.Stats.class, NullSerializer.instance));
|
||||
----
|
||||
====
|
||||
|
||||
The resulting json contains `"stats" : null`.
|
||||
|
||||
In the preceding example, the graph consists of three top-level elements.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user