Skip to content

Sample code and demo for user metadata using Temporal. Allows for greater insights into observability by decorating Activities, Timers, and Workflows with custom text and markdown.

Notifications You must be signed in to change notification settings

temporal-sa/user-metadata-go

Repository files navigation

User Metadata (Go)

Sample code and demo for user metadata using Temporal. Allows for greater insights into observability by decorating Activities, Timers, and Workflows with custom text and markdown.

This sample is compatible with the Swing UI in the Java User Metadata sample.

Local Development

  1. temporal server start-dev
  2. go run ./worker
  3. go run ./starter or use the Java Swing UI (start with ./gradlew run)

Temporal Cloud

Using mTLS

Run the worker;

go run ./worker \
    -target-host my.namespace.tmprl.cloud:7233 \
    -namespace my.namespace \
    -client-cert path/to/cert.pem \
    -client-key path/to/key.pem 

Start the workflow;

go run ./starter \
    -target-host my.namespace.tmprl.cloud:7233 \
    -namespace my.namespace \
    -client-cert path/to/cert.pem \
    -client-key path/to/key.pem

Using API keys

Run the worker;

go run ./worker \
    -target-host endpoint:7233 \
    -namespace my.namespace \
    -api-key CLIENT_API_KEY

Start the workflow;

go run ./starter \
    -target-host endpoint:7233 \
    -namespace my.namespace \
    -api-key CLIENT_API_KEY

About

Sample code and demo for user metadata using Temporal. Allows for greater insights into observability by decorating Activities, Timers, and Workflows with custom text and markdown.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages