spring-framework/framework-docs/modules/ROOT/pages/integration
Brian Clozel ec5f566ba5 Fix Scheduled observation convention for lambdas
Prior to this commit, the `DefaultScheduledTaskObservationConvention`
would fail as it tried to add a `KeyValue` to the observation context
that is `null`. This is rejected by the observation registry and should
be prevented. This happened when registered scheduled methods were
lambdas or part of anonymous classes. Those types do not have a
canonical name and return `null` as a value there.

This commit ensures that for these cases, the default convetion uses a
`"ANONYMOUS"` value as the `"code.namespace"` keyvalue.

Fixes gh-31918
2024-01-02 15:12:26 +01:00
..
cache Extract recurring asciidoc links to attributes, cleanup old doc files 2023-11-21 15:59:24 +01:00
jms Extract recurring asciidoc links to attributes, cleanup old doc files 2023-11-21 15:59:24 +01:00
jmx Extract recurring asciidoc links to attributes, cleanup old doc files 2023-11-21 15:59:24 +01:00
appendix.adoc Trim IDs with parent 2023-05-04 15:35:05 +01:00
cache.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
checkpoint-restore.adoc Polishing 2023-11-30 17:59:58 +01:00
class-data-sharing.adoc Polishing 2023-12-04 15:04:12 +01:00
email.adoc Polishing 2023-12-27 23:23:38 +01:00
jms.adoc Split files 2023-05-04 15:35:05 +01:00
jmx.adoc Fix cross references 2023-05-04 15:35:05 +01:00
observability.adoc Fix Scheduled observation convention for lambdas 2024-01-02 15:12:26 +01:00
rest-clients.adoc Polish "Fix usage of WebClientAdapter in reference documentation" 2023-12-28 13:52:57 +01:00
scheduling.adoc Fix formatting in scheduling.adoc 2023-12-26 11:36:51 +01:00