You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2026/06/07 09:27:02 UTC

[PR] CAMEL-23706: Auto-configure in-memory OTel span exporter for dev profile [camel]

davsclaus opened a new pull request, #23817:
URL: https://github.com/apache/camel/pull/23817

   ## Summary
   
   - When Camel profile is "dev" (default for JBang), `camel-opentelemetry2` now auto-configures an in-memory `SpanExporter` so OTel spans are captured locally without an external collector
   - Adds `DevSpanExporter` — bounded in-memory span storage (500 spans, LRU eviction)
   - Adds `OpenTelemetryDevConsole` — dev console endpoint exposing captured spans as JSON (`/q/dev/opentelemetry?dump=true`)
   - Production deployments (non-dev profile) are unchanged — users configure their own exporter
   
   ## How it works
   
   `OpenTelemetryTracer.initTracer()` checks the Camel context profile. If `"dev"` and no user-provided `Tracer` bean exists, it creates a local `SdkTracerProvider` with the in-memory exporter. The exporter is registered in the Camel registry so the dev console (and other tools) can query it.
   
   ## Test plan
   
   - [x] Existing `camel-opentelemetry2` tests pass (they register their own Tracer bean, so dev auto-config is correctly skipped)
   - [x] Build succeeds, generated service descriptors created
   - [ ] Manual: `camel run timer-log.yaml --observe` should log "OpenTelemetry in-memory span exporter enabled (dev profile)"
   - [ ] Manual: `curl http://localhost:8080/q/dev/opentelemetry?dump=true` should return captured spans
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code) on behalf of Claus Ibsen


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23706: Auto-configure in-memory OTel span exporter for dev profile [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23817:
URL: https://github.com/apache/camel/pull/23817#issuecomment-4642068117

   :star2: Thank you for your contribution to the Apache Camel project! :star2:
     :robot: CI automation will test this PR automatically.
   
     :camel: 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 `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](https://camel.apache.org/community/team/#committers) have access to the summary.
     
     :warning: Be careful when sharing logs. Review their contents before sharing them publicly.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23706: Auto-configure in-memory OTel span exporter for dev profile [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23817:
URL: https://github.com/apache/camel/pull/23817#issuecomment-4642149436

   <!-- ci-tested-modules -->
   :test_tube: **CI tested the following changed modules:**
   
   - `catalog/camel-catalog`
   - `components/camel-opentelemetry2`
   
   <details><summary>All tested modules (10 modules)</summary>
   
   - Camel :: Catalog :: Camel Catalog
   - Camel :: JBang :: MCP
   - Camel :: JBang :: Plugin :: Route Parser
   - Camel :: JBang :: Plugin :: TUI
   - Camel :: JBang :: Plugin :: Validate
   - Camel :: Launcher :: Container
   - Camel :: Observability Services
   - Camel :: Opentelemetry 2
   - Camel :: YAML DSL :: Validator
   - Camel :: YAML DSL :: Validator Maven Plugin
   
   </details>
   
   ---
   :gear: [View full build and test results](https://github.com/apache/camel/actions/runs/27089012197)


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23706: Auto-configure in-memory OTel span exporter for dev profile [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #23817:
URL: https://github.com/apache/camel/pull/23817


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org