Skip to content

Temporal's Java SDK interceptors for tracing Workflow and Activity executions with OpenTelemetry.

License

Notifications You must be signed in to change notification settings

Groww-OSS/temporal-opentelemetry

Repository files navigation

Temporal OpenTelemetry module

This module provides a set of Interceptors that adds support for OpenTelemetry Span Context propagation to Temporal.

Usage

You want to register two interceptors - one on the Temporal client side, another on the worker side:

  1. Client configuration:
    import com.groww.infra.temporal.opentelemetry.OpenTelemetryClientInterceptor;
       //...
       .setInterceptors(new OpenTelemetryClientInterceptor())
       .build();
  2. Worker configuration:
    import com.groww.infra.temporal.opentelemetry.OpenTelemetryWorkerInterceptor;
       //...
       .setWorkerInterceptors(new OpenTelemetryWorkerInterceptor())
       .build();