OpenTracing and OpenTelemetry for Temporal

We are currently using OpenTracing but The OpenTracing project is deprecated in favor of the OpenTelemetry project. Is Temporal compatible with the OpenTelemetry project if we needed to rollover to use OpenTelemetry?

Absolutely. Today you’d use OpenTracing by adding opentracing package - go.temporal.io/sdk/contrib/opentracing - pkg.go.dev to your go.mod and adding the result of opentracing.NewInterceptor to client.Options.Interceptors. When you move to OpenTelemetry, you’d add opentelemetry package - go.temporal.io/sdk/contrib/opentelemetry - pkg.go.dev to your go.mod and add the result of opentelemetry.NewTracingInterceptor to client.Options.Interceptors.

1 Like