etzel-mes opened a new pull request, #31169:
URL: https://github.com/apache/camel/pull/31169

   # Description
   
   [CAMEL-27909](https://issues.apache.org/jira/browse/CAMEL-27909): a 
contract-first REST route puts the parsed OpenAPI contract on every exchange as 
`Exchange.REST_OPENAPI`, and `MessageHelper.dumpAsXml` / `dumpAsJSon` rendered 
it with `toString()` at every captured step. In the dev profile, where the 
backlog tracer is in standby and message history is on, the tracer was 81 % of 
the CPU samples of a contract-first route (JFR, Camel 4.23.0): about 36 
requests a second, against about 1,080 for the same flow without the contract.
   
   Proposed change: the property joins the ones the dumps already leave out 
(message history, grouped exchange, file). The two dump variants now share one 
set, so they cannot drift apart. The property stays on the exchange for the 
OpenAPI validators. Upgrade guide 4.24 says the dumps no longer show it.
   
   Test: `MessageHelperTest.testDumpSkipsRestOpenApiProperty` dumps a message 
in both variants and checks that the contract is neither listed nor rendered, 
while another property still is.
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes. (Run in the changed modules 
`core/camel-support` and `core/camel-core` with `-Psourcecheck`; the change 
touches no generated file.)
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used. Written with Claude Code (Claude Opus 
5.5).
   
   cc @davsclaus @oscerd
   
   _Claude Code on behalf of etzel-mes_
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to