Skip to content

Example of OTel instrumentation of a solution using Temporal

License

Notifications You must be signed in to change notification settings

emanuelef/temporal-meetup-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

temporal-meetup-demo

Requirements

Run this sample

Make sure port 8080 is available on your system

Make

  1. Create the .env file with the Honeycomb Configuration API key (one off, only needed once) make create-env
  2. Start the example using Docker images on ghcr make start
  3. Trigger a Temporal workflow make service
  4. Temporal UI http://localhost:8233/namespaces/default/workflows
  5. Honeycomb UI https://ui.honeycomb.io Make sure to select TemporalMeetup dataset in the upper left corner
  6. Stop make stop

Honeycomb.io

The provion API call will generate something like:

Screenshot 2024-04-21 at 18 57 02 Screenshot 2024-04-21 at 19 04 18

Bubble Up analysis

Screenshot 2024-04-21 at 19 07 14

Manual

  1. Run a Temporal service.

One way could be just to use the Temporal CLI.

temporal server start-dev

UI http://localhost:8233

  1. Run the following command to start the worker
go run opentelemetry/worker/main.go
  1. In another terminal, run the following command to run the workflow
go run opentelemetry/starter/main.go

Questions

  • Task Queues
awslocal s3api list-buckets
docker compose -f docker-compose-ghcr.yml up

Links

https://mermaid.js.org/syntax/sequenceDiagram.html