Commit Graph

4442 Commits

Author SHA1 Message Date
Brian Clozel
1ef0098ab5 Add WebClient metrics support
This commit adds support for Actuator Metrics for WebClient.
This support mirrors the current behavior for `RestTemplate`, reusing
the same metric name `"http.client.requests"` and tags.

`WebClient` is instrumented by a `MetricsWebClientFilterFunction` which
is applied by a `WebClientCustomizer`. This instrumentation happens
automatically only if you create an instance of `WebClient` using an
auto-configured `WebClient.Builder` bean.

This infrastructure is reusing de facto the `MeterFilter` that has been
added for `RestTemplate` in order to limit the "uri" tag cardinality.

Closes gh-12228
2018-04-27 13:54:14 +02:00
Stephane Nicoll
621874708d Merge branch '2.0.x' 2018-04-27 10:20:18 +02:00
Stephane Nicoll
36fb078935 Merge branch '1.5.x' into 2.0.x 2018-04-27 10:19:45 +02:00
Stephane Nicoll
c8843947fe Polish 2018-04-27 10:14:51 +02:00
Stephane Nicoll
1a41ff941a Polish 2018-04-27 10:14:31 +02:00
Stephane Nicoll
4d0fe5bbe6 Merge branch '2.0.x' 2018-04-27 09:33:48 +02:00
Johnny Lim
b941c5f1a6 Polish
Closes gh-12981
2018-04-27 09:29:16 +02:00
Madhura Bhave
dafe8823cc Merge branch '2.0.x' 2018-04-26 13:46:06 -07:00
Madhura Bhave
24ce3ecb43 Fix typo in docs 2018-04-26 13:43:51 -07:00
Madhura Bhave
6bebb931e5 Merge branch '2.0.x' 2018-04-26 12:21:51 -07:00
Madhura Bhave
228c85fe67 Improve List and Map binding documentation
Closes gh-12444
2018-04-26 12:18:49 -07:00
Stephane Nicoll
25414d1b58 Merge branch '2.0.x' 2018-04-25 17:20:30 +02:00
Stephane Nicoll
9cf8080a17 Polish "Document Kotlin custom metadata generation"
Closes gh-12960
2018-04-25 17:19:55 +02:00
sdeleuze
c24e7a5930 Document Kotlin custom metadata generation
See gh-12960
2018-04-25 17:19:38 +02:00
Stephane Nicoll
03cf4fbb10 Polish "Add actuator endpoint for exposing the Spring Integration graph"
Closes gh-12331
2018-04-25 16:16:43 +02:00
Tim Ysewyn
8c67ef1079 Add actuator endpoint for exposing the Spring Integration graph
See gh-12331
2018-04-25 16:16:43 +02:00
Stephane Nicoll
65fda8d3d6 Merge branch '2.0.x' 2018-04-25 09:43:43 +02:00
Stephane Nicoll
11ad9bfebf Upgrade version of gradle-git-properties in doc
Closes gh-12955
2018-04-25 09:43:19 +02:00
Stephane Nicoll
50d73285f7 Merge branch '2.0.x' 2018-04-22 11:12:12 +02:00
Stephane Nicoll
f58f23c5b8 Document that binder doesn't handle static properties
Closes gh-12912
2018-04-22 11:11:56 +02:00
Stephane Nicoll
49f64aab48 Merge branch '2.0.x' 2018-04-22 09:21:09 +02:00
Stephane Nicoll
469ce57016 Remove outdated note
As we've updated the complete ref doc to use a canonical format for
configuration keys, this not is outdated and this commit removes it.
2018-04-22 09:20:19 +02:00
Stephane Nicoll
6df1ea3544 Fix use of deprecated property in docs
Closes gh-12940
2018-04-22 09:19:08 +02:00
Stephane Nicoll
e72306b33e Merge branch '2.0.x' 2018-04-18 09:50:09 +02:00
Stephane Nicoll
026d8bed5f Fix additional missing semicolon on sample code
Closes gh-12895
2018-04-18 09:49:15 +02:00
Jienan Duan
90ae14ec21 Add missing semicolon on sample code
See gh-12895
2018-04-18 09:47:54 +02:00
Stephane Nicoll
a85998f4c3 Polish "Add auto-configuration for Hibernate metrics"
Closes gh-12550
2018-04-17 13:46:27 +02:00
Rui Figueira
b6b92ba937 Add auto-configuration for Hibernate metrics
All Hibernate entityManagerFactories are automatically instrumented
and their statistics are included into Micrometer using its
HibernateMetrics binder.

Closes gh-12550
2018-04-17 13:23:18 +02:00
Stephane Nicoll
2002115637 Add doc ref for hierarchical name mapping 2018-04-16 08:43:46 +02:00
Stephane Nicoll
bfe31e6688 Fix broken build 2018-04-13 16:40:15 +02:00
Stephane Nicoll
2204d5f750 Polish 2018-04-13 15:18:42 +02:00
Stephane Nicoll
31441a7590 Add a note to explain how to disable the web server
See gh-12853
2018-04-13 15:18:08 +02:00
Stephane Nicoll
7550f92ea5 Clarify DataSource metrics section for custom DataSources
Closes gh-12851
2018-04-13 14:50:44 +02:00
Stephane Nicoll
38bd4bd58c Stop associating an Executor bean to Quartz
This commits make sure that the Quartz auto-configuration no longer
associates an `Executor` bean if present in the context as Quartz offers
properties to tune it, which would mutate and lead to unexpected
results.

Closes gh-12823
2018-04-12 15:48:20 +02:00
Brian Clozel
3fa8fe85af Deprecate RouterFunctionMetrics
Spring Boot now deploys both annotation-based and functional endpoints
under the same `HttpHandler`; this means the currently auto-configured
`MetricsWebFilter` is instrumenting all endpoints to produce metrics.

There is no need for a WebFlux functional specific support.
This commit removes mentions of `RouterFunctionMetrics` in the docs and
deprecates that class.

Closes gh-12833
2018-04-12 12:08:44 +02:00
DK Lee
1f91ae541f Fix WebClient example constructor name
Closes gh-12842
2018-04-12 09:44:03 +02:00
Ken Kwon
16ad34aa19 Fix typo
Closes gh-12825
2018-04-11 10:51:20 +02:00
Stephane Nicoll
f83934e192 Polish contribution
Closes gh-12812
2018-04-10 11:46:16 +02:00
Johnny Lim
f03849d502 Polish
See gh-12812
2018-04-10 11:46:16 +02:00
Stephane Nicoll
6692301d51 Polish "Replace Couchbase's deprecated methods"
Closes gh-12655
2018-04-09 16:17:46 +02:00
Stephane Nicoll
ad6a888e47 Polish 2018-04-04 11:29:37 +02:00
Stephane Nicoll
f99752283f Fix relaxed binding examples
Closes gh-12750
2018-04-04 11:29:18 +02:00
Stephane Nicoll
bf06854218 Merge branch '1.5.x' 2018-04-04 11:24:20 +02:00
Rui Figueira
958aa5db55 Remove outdated reference to EnvironmentTestUtils
Documentation still refers to the now deprecated `EnvironmentTestUtils`
class instead of `TestPropertyValues` for setting environment values in
tests.

This commit replaces it with `TestPropertyValues` and provides an
equivalent code example.

Closes gh-12711
2018-04-03 14:10:35 +02:00
Stephane Nicoll
b6f9b46be8 Only create a WebTestClient with WebFlux
This commit updates WebTestClientAutoConfiguration to only create a
WebTestClient when running a WebFlux-based application as mocking the
context only works with that mode at the moment.

Closes gh-12318
2018-04-03 11:31:37 +02:00
Stephane Nicoll
7dbeaaa932 Polish "Remove HierarchicalNameMapper as a configured @Bean"
Closes gh-12683
2018-04-03 11:23:05 +02:00
Jon Schneider
8572a091b8 Remove HierarchicalNameMapper as a configured @Bean
HierarchicalNameMapper is not a component that can be shared amongst
multiple monitoring systems.

See gh-12683
2018-04-03 11:14:43 +02:00
Attila Pápai
95385cecba Add space between right parentheses and next word
Closes gh-12722
2018-04-03 10:05:32 +02:00
Benjamin Graf
101a42c572 Fix outdated import statements
Closes gh-12697
2018-04-03 09:58:15 +02:00
Stephane Nicoll
c90806477c Fix outdated reference to DurationUnit
Closes gh-12708
2018-04-02 16:06:03 +02:00