Skip to content

fix(test): filter out OTel internal metrics in opentelemetry-metrics ITs#21887

Open
gnodet wants to merge 1 commit intomainfrom
fix/otel-metrics-tests
Open

fix(test): filter out OTel internal metrics in opentelemetry-metrics ITs#21887
gnodet wants to merge 1 commit intomainfrom
fix/otel-metrics-tests

Conversation

@gnodet
Copy link
Contributor

@gnodet gnodet commented Mar 9, 2026

Summary

Test plan

  • ManagedMessageHistoryAutoConfigIT passes with OTel 1.60.1
  • ExchangeEventNotifierAutoConfigIT passes with OTel 1.60.1

OpenTelemetry 1.60+ exports internal SDK metrics (e.g.
otel.sdk.metric_reader.collection.duration) via LoggingMetricExporter.
The integration tests assumed only Camel metrics would appear in the
log output, causing assertion failures. Filter out non-Camel metrics
by checking for the "camel." prefix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using build-all, build-dependents, skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant