v1.25.0
Highlights
Integration with slog
If using Go version 1.21+ the Go SDK provides built in integration with the standard slog package.
package main
import (
"log/slog"
"os"
"go.temporal.io/sdk/client"
"go.temporal.io/sdk/log"
"go.temporal.io/sdk/worker"
)
func main() {
clientOptions := client.Options{
Logger: log.NewStructuredLogger(
slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{
AddSource: true,
Level: slog.LevelDebug,
}))),
}
temporalClient, err := client.Dial(clientOptions)
// ...
}
New WorkflowInfo
fields
Added GetContinueAsNewSuggested()
and GetCurrentHistorySize()
to WorkflowInfo
.
(Experimental) Start delay
Added StartDelay
option to StartWorkflowOptions
. StartDelay
will cause Temporal to wait before dispatching the first workflow task.
If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
of the delay will be ignored.
Specific Changes
2023-08-02 - 1ec43ad - Fix LA start to close timeout (#1180)
2023-08-04 - 3aba985 - Remove mentions of elasticsearch (#1186)
2023-08-06 - 66946b9 - fixing spelling errors in comments (#1188)
2023-08-07 - 23ff5a7 - Add option to ignore invalid parent spans (#1178)
2023-08-08 - 654e872 - Fix testsuite package docs (#1192)
2023-08-08 - 793489f - Fix race condition with eager workflow start and close (#1191)
2023-08-10 - 1fccf9c - Fix race condition in eager dispatch (#1195)
2023-08-10 - 90fcc71 - Enabled worker versioning tests (#1193)
2023-08-10 - c0a947b - Add note on heart beating and async activities (#1198)
2023-08-11 - 7dbde86 - Fix flaky TestAsyncActivityCompletion (#1199)
2023-08-11 - d5d6d3e - Update CI to Golang v1.21 (#1200)
2023-08-19 - 9bd67dd - Add new fields to workflow info (#1202)
2023-08-21 - 27895a9 - Clarify what happens if an error and result are returned (#1203)
2023-08-22 - 20c550a - Fix flake in TestQueryOnlyCoroutineUsage (#1204)
2023-08-23 - b9e5e24 - Refactor NextCommandEvents (#1205)
2023-08-28 - d5a2f8f - Fix race condition during cache eviction (#1210)
2023-08-29 - a7f9cdf - Add test for child wf cancel and update (#1214)
2023-08-30 - 9345e81 - Check all functions with workflow.Context as first parameter (#1215)
2023-08-31 - 0939af2 - Update Temporal API to v1.24.0 (#1220)
2023-09-01 - 7485282 - Fix the documentation of ListWorkflow for querying open workflows (#1217)
2023-09-01 - 90e7399 - Add slog adapter (#1219)
2023-09-01 - 9dc99ed - Update readme for slog (#1222)
2023-09-01 - c514225 - Add replay option to disable deadlock detection (#1221)
2023-09-05 - 591ce7e - Clarify GetLastCompletionResult works with schedule (#1225)
2023-09-05 - 6bdfec6 - chore: create UpdateCallbacks
binding for the RoadRunner (#1223)
2023-09-05 - b7931cb - Handle generic maps and channels (#1224)
2023-09-07 - bc5e57d - Remove binary file (#1226)
2023-09-08 - 7bf78b8 - Edit doc comments (#1228)
2023-09-11 - 8ef6db7 - Stop using the tinycicd namespace for tests (#1233)
2023-09-13 - ecfaa65 - Code inside workflow.SideEffect is deterministic (#1230)
2023-09-18 - 22435a7 - Add doc links throughout our user-facing APIs (#1239)
2023-09-18 - f1d6480 - feat(contrib/opentelemetry): add TraceID and SpanID fields to the logger (#1232)
2023-09-23 - 6039cd3 - Disable running sessions on a versioned worker (#1241)
2023-09-23 - a5ee832 - Decrease iterations of TestVersionLoopWorkflow (#1242)
2023-09-23 - bfb39ac - Expose SetContinuedAsNewRunID in the TestWorkflowEnvironment (#1246)
2023-09-23 - ff9b3f4 - Expose StartDelay in StartWorkflowOptions (#1244)
2023-09-25 - 59d8488 - Add SDK version and name to history (#1245)
2023-09-27 - 159a69f - Don't register a versioned worker for eager start (#1251)
2023-10-02 - 9228307 - Convert panics in update protocol state machine to errors (#1253)
2023-10-03 - fecfba8 - Fix selector AddSend docs (#1254)
2023-10-04 - a001e5f - Add TaskReachability API (#1247)
2023-10-05 - df09c35 - Allow eager workflow start on versioned worker (#1255)