Skip to content

Add Java OpenTelemetry v2 snippets - #182

Draft
patbeqo wants to merge 1 commit into
mainfrom
docs/java-opentelemetry-v2
Draft

patbeqo wants to merge 1 commit into
mainfrom
docs/java-opentelemetry-v2

Conversation

@patbeqo

@patbeqo patbeqo commented Nov 2, 2026 •

Copy link
Copy Markdown

Depends on temporalio/sdk-java#3089, which adds the OpenTelemetry v2 integration. CI fails until that module is released, because this sample builds against 1.41.0-SNAPSHOT.

What was changed

Added a java-sandbox/opentelemetry-v2 Maven module with the snippets for the Java OpenTelemetry v2 integration guide: setup, the plugin, custom spans and metrics in Workflows, Temporal SDK spans and metrics, and logs.

Why?

Supplies the code for the companion docs page, temporalio/documentation#5621. It mirrors the runnable samples in temporalio/samples-java#812.

Checklist

  1. How was this tested:
    mvn verify in java-sandbox/opentelemetry-v2, against 1.41.0-SNAPSHOT published locally from sdk-java#3089. The test runs the Greeting Workflow and checks the spans, the counter, and log correlation.
  2. Any docs updates needed?
    Yes, in the companion docs PR above.

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.

1 participant