Skip to content

Add OpenTelemetry v2 samples - #812

Draft
patbeqo wants to merge 1 commit into
mainfrom
patbeqo/otel-v2-samples
Draft

patbeqo wants to merge 1 commit into
mainfrom
patbeqo/otel-v2-samples

Conversation

@patbeqo

@patbeqo patbeqo commented Oct 30, 2026 •

Copy link
Copy Markdown

Depends on temporalio/sdk-java#3089, which adds the OpenTelemetry v2 integration.

What was changed

Added OpenTelemetry v2 samples in a new opentelemetry-v2 Gradle subproject, one per signal:

  • Traces: custom Workflow and Activity spans, plus Temporal SDK operation spans, exported to Jaeger.
  • Metrics: custom Workflow and Activity counters, plus Temporal SDK metrics bridged from Tally through Micrometer, served in Prometheus format.
  • Logs: SLF4J logs bridged to OpenTelemetry with the Logback appender, so each log record carries its trace and span IDs.

Each sample has its own Worker and README.

Why?

Shows how to use the temporal-opentelemetry-v2 plugin and its replay-safe OpenTelemetry instance.

The samples live in their own subproject because the plugin needs a newer OpenTelemetry than core pins.

Checklist

  1. How was this tested:
    Ran each sample locally as described in its README.

  2. Any docs updates needed?
    No.

@patbeqo
patbeqo force-pushed the patbeqo/otel-v2-samples branch from f7c568a to 0d5d8c8 Compare November 2, 2026 21:53
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