When the type does not match we simply use the unconverted value.
This happens when comparing properties to regexes.
Applying the conversion to the String value of the regex doesn't makes sense since we are not dealing with complete values.
Users may still provide converters taking Objects and mangle Regex patterns as they desire.
Also fixed the null handling of PropertyValueConverters.
Removed a few superfluous `@Nullable` annotations where they became obvious
Closes#4346
When completing a MongoObservation without a parent observation, we now remove the parent observation key from the request context instead of setting it to null.
In reactive usage, the context map is a ConcurrentHashMap that does not allow null values.
Closes#5082
Original pull request #5083
We now restore the previous Observation parent after completing the Observation to avoid unintentional nesting of observations. Previously, a command became the parent of an earlier command on the same thread regardless of whether the earlier command has been finished or whether it was active.
Observation nesting now considers only commands that are still active restoring their parent after completion to avoid invalid nesting and with that, to not allocate observation graphs that allocate infinite memory.
Closes: #5064
Original Pull Request: #5067
Register BigDecimal and BigInteger as simple types to allow explicitly typed writes and register converters in the ConversionService directly to avoid forcing a specific type.
Revert BigDecimalRepresentation list change to use only one representation.
In a sense, we're aligning with MongoDB's driver behavior that BigDecimal now maps by default to Decimal128, while BigInteger requires explicit configuration.
Original Pull Request: #5051
We now align with the driver recommendation to not favor a particular representation for UUID or BigInteger/BigDecimal to avoid representation changes caused by upgrades to a newer Spring Data version.
We expect an explicit configuration by applications.
Closes: #5037
Original Pull Request: #5051