4314 Commits

Author SHA1 Message Date
Stéphane Nicoll
2884caee36 Merge branch '3.4.x'
Closes gh-44302
2025-02-17 11:31:03 +01:00
Stéphane Nicoll
db34e37041 Merge branch '3.3.x' into 3.4.x
Closes gh-44301
2025-02-17 11:30:55 +01:00
Tran Ngoc Nhan
f3ce5bca0c Clarifyt when UserDetailsService auto-configuration will back off
See gh-44267

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
2025-02-17 11:29:37 +01:00
Stéphane Nicoll
8d713fb6c7 Polish "Auto-configure CqlTemplate and ReactiveCqlTemplate"
See gh-44291
2025-02-17 09:20:03 +01:00
Phillip Webb
7433b93769 Add stack trace printer support for structured logging
Introduce a new `StackTracePrinter` interface (and a standard
implementation) that can be used to print stack traces in a custom
form. The existing `StructuredLoggingJsonProperties` have been updated
with a nested `StackTrace` record that supports common customization
options or allows a custom `StackTracePrinter` to be used.

Closes gh-43864
2025-02-10 22:34:28 -08:00
Brian Clozel
afcc780e61 Write TraceId in HTTP Response headers
Prior to this commit, the Micrometer instrumentation support would
auto-configure a `ServerHttpObservationFilter` for creating observations
in Spring MVC applications.

As of Spring Framework 6.2, applications can extend this filter class to
get notified of the observation scope being opened.
This commit contributes a new `TraceHeaderObservationFilter`
implementation that writes the current Trace Id (if present) to the
`X-Trace-Id` HTTP response header.

This feature is disabled by default, applications will need to enable
`management.observations.http.server.requests.write-trace-header`.
`
Closes gh-40857
2025-02-10 18:08:31 +01:00
Andy Wilkinson
e40a7686cd Merge branch '3.4.x'
Closes gh-44171
2025-02-08 10:08:57 +00:00
Andy Wilkinson
cc5414826a Merge branch '3.3.x' into 3.4.x
Closes gh-44170
2025-02-08 10:08:43 +00:00
Tran Ngoc Nhan
b5fa849563 Link to JarLauncher's javadoc
See gh-44168

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
2025-02-08 10:08:05 +00:00
Johnny Lim
c335f772d0 Polish
See gh-44148

Signed-off-by: Johnny Lim <izeye@naver.com>
2025-02-07 09:21:19 +01:00
Moritz Halbritter
129a20132b Merge branch '3.4.x'
Closes gh-44146
2025-02-06 12:24:12 +01:00
Moritz Halbritter
1b494cc61d Merge branch '3.3.x' into 3.4.x
Closes gh-44145
2025-02-06 12:21:58 +01:00
Moritz Halbritter
baf596d10e Document double observations when using @Timed etc.
Closes gh-44037
2025-02-06 12:21:31 +01:00
Andy Wilkinson
63ecfac40d Support Pushgateway with new Prometheus client
Closes gh-43923
2025-02-04 11:17:25 +00:00
Johnny Lim
a39e1c4a09 Polish
Signed-off-by: Johnny Lim <izeye@naver.com>

See gh-44034
2025-01-31 17:04:58 +01:00
Stéphane Nicoll
4c7b8ef57b Merge branch '3.4.x'
Closes gh-44036
2025-01-31 13:46:57 +01:00
Stéphane Nicoll
a3f997d5d5 Merge branch '3.3.x' into 3.4.x
Closes gh-44035
2025-01-31 13:46:21 +01:00
Ashish Kumar
e41d697040 Fix typo in Running Your Application
See gh-44032

Signed-off-by: Ashish Kumar <34642693+ashishkujoy@users.noreply.github.com>
2025-01-31 13:45:37 +01:00
Moritz Halbritter
61d7f3783e Implement config data loader to load from environment variables
The config data loader supports the env: prefix and also accepts
extension hints.

Example: env:VAR1[.properties] reads the environment
variable 'VAR1' in properties format (using the
PropertiesPropertySourceLoader).

The PropertySourceLoaders are loaded via spring.factories.

Also adds a smoke test to test it end to end.

Closes gh-41609
2025-01-31 09:33:28 +01:00
Phillip Webb
910d57ed90 Merge branch '3.4.x' 2025-01-30 20:17:43 -08:00
Phillip Webb
965e587de3 Polish 2025-01-30 20:17:39 -08:00
Phillip Webb
1b63d05edd Merge branch '3.4.x' 2025-01-30 18:38:45 -08:00
Phillip Webb
1c3cbb411c Fix missing javadoc reference 2025-01-30 18:38:29 -08:00
Moritz Halbritter
7ab89d1b16 Merge branch '3.4.x'
Closes gh-44023
2025-01-30 10:25:18 +01:00
Moritz Halbritter
dcd4b7cb57 Merge branch '3.3.x' into 3.4.x
Closes gh-44022
2025-01-30 10:25:02 +01:00
Moritz Halbritter
7f9b4c6ff6 Document Kubernetes' preStop sleep
Closes gh-43830
2025-01-30 10:22:25 +01:00
Phillip Webb
c1cb4c51ed Use a single customizer property for JSON logging
Update `StructuredLoggingJsonProperties` no that only a single
`customizer` property is supported.

See gh-43368
2025-01-29 11:26:22 -08:00
Moritz Halbritter
58cc3a0d3d Deprecate SignalFX support
Closes gh-43962
2025-01-29 10:41:24 +01:00
Moritz Halbritter
f24ba9935c Add ability to ignore configuration properties
Properties which should be ignored can be specified in the
additional-spring-configuration-metadata.json file. The ignored
properties section is copied into the final
spring-configuration-metadata.json file, and the ignored properties are
removed from the properties element in the final file.

Closes gh-2421
2025-01-28 11:09:26 +01:00
Moritz Halbritter
b9bab7a98b Merge branch '3.4.x'
Closes gh-43976
2025-01-27 13:10:20 +01:00
Moritz Halbritter
8059c24e6a Merge branch '3.3.x' into 3.4.x
Closes gh-43975
2025-01-27 13:10:03 +01:00
Rucha Vaikar
c699779593 Correct the location of MyApplication.java in the docs
See gh-43965

Signed-off-by: Rucha Vaikar <70310911+Ru311@users.noreply.github.com>
2025-01-27 13:05:43 +01:00
Moritz Halbritter
1bab11f28d Merge branch '3.4.x'
Closes gh-43972
2025-01-27 11:43:30 +01:00
Moritz Halbritter
dd7708190c Merge branch '3.3.x' into 3.4.x
Closes gh-43971
2025-01-27 11:43:18 +01:00
Tran Ngoc Nhan
bee3dafc86 Add links to Jackson JavaDoc
See gh-43961

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
2025-01-27 11:42:06 +01:00
Phillip Webb
8ec61b9870 Polish 'Refactor @ConfigurationProperties that only use prefix'
See gh-43917
2025-01-24 14:59:32 -08:00
Yanming Zhou
c1d97ffe16 Refactor @ConfigurationProperties that only use prefix
See gh-43917

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2025-01-24 14:58:36 -08:00
Phillip Webb
55633a1377 Polish 'Add support for multiple StructuredLoggingJsonMembersCustomizers'
See gh-43368
2025-01-24 14:00:24 -08:00
Moritz Halbritter
d73502708e Add virtual threads metrics to documentation
See gh-43852
2025-01-24 13:30:13 +01:00
Andy Wilkinson
d7cf2b3d7e Merge branch '3.4.x'
Closes gh-43959
2025-01-24 11:57:41 +00:00
Andy Wilkinson
7664bab35f Merge branch '3.3.x' into 3.4.x
Closes gh-43958
2025-01-24 11:57:29 +00:00
Andy Wilkinson
178f693118 Polish "Warn about limitations of Quartz's schema scripts"
See gh-43955
2025-01-24 11:53:55 +00:00
Timothée Andres
2600e872e3 Warn about limitations of Quartz's schema scripts
See gh-43955

Signed-off-by: Timothée Andres <andres.timothee@gmail.com>
2025-01-24 11:49:33 +00:00
Andy Wilkinson
1e43b0003f Merge branch '3.4.x'
Closes gh-43951
2025-01-24 08:54:50 +00:00
Andy Wilkinson
c7b54dcbb3 Merge branch '3.3.x' into 3.4.x
Closes gh-43950
2025-01-24 08:53:03 +00:00
Johnny Lim
6c8d41935f Polish
See gh-43879

Signed-off-by: Johnny Lim <izeye@naver.com>
2025-01-24 08:45:41 +00:00
Andy Wilkinson
3272148932 Merge branch '3.4.x'
Closes gh-43930
2025-01-22 14:56:20 +00:00
Andy Wilkinson
f184e98b78 Merge branch '3.3.x' into 3.4.x
Closes gh-43929
2025-01-22 14:56:09 +00:00
Andy Wilkinson
390963fe74 Document when defaultValue and description cannot be extracted
Closes gh-43925
2025-01-22 14:54:06 +00:00
Moritz Halbritter
02a49b6038 Add a MeterBinder for SSL chain expiry
It registers a 'ssl.chains' gauge to count the number of chains with
different statuses (valid, expired, not yet valid, will expire soon).

Additionally, it registers a 'ssl.chain.expiry' gauge for every
certificate in a chain, tracking the seconds until expiry.

This binder reacts on bundle updates and new bundle registrations.

Closes gh-42030
2025-01-16 11:15:16 +01:00