Skip to content

CAMEL-26415: camel-micrometer-starter - test camel.metrics.record-last-exchange-timestamp - #2072

Merged
davsclaus merged 1 commit into
apache:mainfrom
Croway:CAMEL-26415-micrometer-starter-tests
Nov 5, 2026
Merged

davsclaus merged 1 commit into
apache:mainfrom
Croway:CAMEL-26415-micrometer-starter-tests

Conversation

@Croway

@Croway Croway commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Claude Code on behalf of Croway

CAMEL-26415: tests for camel.metrics.record-last-exchange-timestamp, which #2069 added without one.

  • MicrometerRecordLastExchangeTimestampEnabledTest: with the defaults, the starter's exchange event notifier registers the camel.exchanges.last.timestamp gauge, and an exchange updates it.
  • MicrometerRecordLastExchangeTimestampDisabledTest: with camel.metrics.record-last-exchange-timestamp=false, the gauge is not registered.

The camel-micrometer-starter tests pass (7). With the setRecordLastExchangeTimestamp(...) line removed from CamelMetricsAutoConfiguration, the disabled test fails, so the tests cover the property wiring.

The last CI run on #2069 predates apache/camel#28729, so it failed to compile. Nothing has built the starter on main since #2069 was merged. This PR's CI is the first build of it against the current Camel snapshot.

…t-exchange-timestamp

apache#2069 added the property without a test. The two tests check that the
camel.exchanges.last.timestamp gauge is registered by default and is not
registered with camel.metrics.record-last-exchange-timestamp=false.
@Croway
Croway requested review from davsclaus and squakez November 4, 2026 09:46
@davsclaus
davsclaus merged commit 67ca09b into apache:main Nov 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants