Skip to content

CAMEL-23312: Add SpanKind support to OpenTelemetry2 component#22612

Open
JiriOndrusek wants to merge 1 commit intoapache:mainfrom
JiriOndrusek:CAMEL-23312-add-spankind-to-telemetry-api-03
Open

CAMEL-23312: Add SpanKind support to OpenTelemetry2 component#22612
JiriOndrusek wants to merge 1 commit intoapache:mainfrom
JiriOndrusek:CAMEL-23312-add-spankind-to-telemetry-api-03

Conversation

@JiriOndrusek
Copy link
Copy Markdown
Contributor

fixes https://issues.apache.org/jira/browse/CAMEL-23312
superseeds #22577

  • Adds SpanKind support to the OpenTelemetry2 component to enable proper distributed tracing
    semantics
  • Implements SpanKind determination through the SpanDecorator API with HTTP components using
    CLIENT/SERVER and messaging components using PRODUCER/CONSUMER
  • Includes comprehensive test coverage with mock HTTP and Kafka components to verify SpanKind
    behavior and decorator property inheritance

Description

Target

  • I checked that the commit is targeting the correct branch (Camel 4 uses the main branch)

Tracking

  • If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

  • I checked that each commit in the pull request has a meaningful subject line and body.
  • I have run mvn clean install -DskipTests locally from root folder and I have committed all auto-generated changes.

@JiriOndrusek JiriOndrusek requested a review from squakez April 14, 2026 16:40
@JiriOndrusek
Copy link
Copy Markdown
Contributor Author

JiriOndrusek commented Apr 14, 2026

@squakez here is the refactored PR (much simpler and cleaner), I force pushed this change to my branch, unfortunately this blocks reopening of #22610 (I didn't know about such limitation). Therefore this is the new PR.

@github-actions
Copy link
Copy Markdown
Contributor

🌟 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 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.

@github-actions
Copy link
Copy Markdown
Contributor

🧪 CI tested the following changed modules:

  • components/camel-opentelemetry2
  • components/camel-telemetry
All tested modules (11 modules)
  • Camel :: Common Telemetry
  • Camel :: JBang :: MCP
  • Camel :: JBang :: Plugin :: Route Parser
  • Camel :: JBang :: Plugin :: Validate
  • Camel :: Launcher :: Container
  • Camel :: Micrometer :: Observability 2
  • Camel :: Observability Services
  • Camel :: Opentelemetry 2
  • Camel :: Telemetry :: Dev
  • Camel :: YAML DSL :: Validator
  • Camel :: YAML DSL :: Validator Maven Plugin

⚙️ View full build and test results

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