pvsone / temporal-otel-tracing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Temporal Otel Tracing

An example of a Temporal Workflow in Python that is started using a Temporal client in Go. Both the client in the Python Worker, and the client in the Go Starter, are configured with an OpenTelemetry tracing interceptor.

Setup

Run a local Temporal Server:

temporal server start-dev 

Run a local Jaeger instance:

docker run --rm --name jaeger \
  -e COLLECTOR_OTLP_ENABLED=true \
  -p 16686:16686 \
  -p 4317:4317 \
  -p 4318:4318 \
  jaegertracing/all-in-one:latest

Run the Python Worker

cd python-worker
pip install -r requirements.txt
python worker.py

Run the Go Starter

cd go-starter
go run main.go

View the Trace in Jaeger

Open http://localhost:16686, and see that the trace includes the spans from both the Go Starter and the Python Worker.

Jaeger Trace

About


Languages

Language:Go 67.6%Language:Python 32.4%