---
title: "GO SDK v1.26.0-rc.1 Pre-release"
description: "Typed search attributes, Workflow Update (Experimental), Activity and Workflow mock name collision in Test Suite, and more"
canonical: "https://temporal.io/changelog/go-sdk-v1-26-0-rc-1.md"
source: "https://temporal.io/changelog/go-sdk-v1-26-0-rc-1"
date: "2024-02-02"
product_areas:
  - "Go SDK"
---

# GO SDK v1.26.0-rc.1 Pre-release

Note: This is a release candidate, we encourage users to test out this release to be prepared for upcoming changes and to report any bugs.

## Typed search attributes

Previously, search attributes were untyped maps with string keys and interface values. This causes ambiguity on what types a search attribute key represents and leads to errors. Also, the way search attributes were created or upserted allowed mistakes to occur and was not clear to the server exactly what was expected.

- Added `TypedSearchAttributes `to `client.ScheduleOptions `and deprecated `SearchAttributes`
- Added `GetTypedSearchAttributes `to `workflow `and deprecated `WorkflowInfo.SearchAttributes`
- Added UpsertTypedSearchAttributes to workflow and deprecated UpsertSearchAttributes
- Added `TypedSearchAttributes `to `client.StartWorkflowOptions `and deprecated `SearchAttributes`
- Added several new things to temporal package including:
  - `SearchAttributes `collection with methods and constructor
  - `SearchAttributeKey `and `SearchAttributeUpdate `interfaces
  - `SearchAttributeKeyX `types and constructors for typed keys

## 💥 BREAKING CHANGES

### gogo/protobuf

`gogo/protobuf` has been replaced with Google's official proto compiler.

Users may notice:

- `time.Time `in proto structs will now be [timestamppb.Timestamp](https://pkg.go.dev/google.golang.org/protobuf@v1.31.0/types/known/timestamppb#section-documentation)
- `time.Duration `will now be [durationpb.Duration](https://pkg.go.dev/google.golang.org/protobuf/types/known/durationpb)
- V2-generated structs embed locks, so you cannot dereference them.
- Proto enums will, when formatted to JSON, now be in SCREAMING\_SNAKE\_CASE rather than PascalCase.

### Typed search attributes

As part of typed search attributes most old untyped search attributes API were deprecated, but will continue to function as they always have been going forward some breaking changes were required.

Breaking changes include:

- Added `TypedSearchAttributes `to `client.ScheduleWorkflowAction `and 💥removed `SearchAttributes `and added `UntypedSearchAttributes `(needed until [temporalio/temporal#4787](https://github.com/temporalio/temporal/issues/4787) is fixed)

### Workflow Update (Experimental)

Workflow update handlers are now processed eagerly before the main workflow function instead of after. When calling `workflow.SetUpdateHandler` and an update was received during that workflow task, and no other handlers have been set before, `workflow.SetUpdateHandler` will trigger the queued update handlers to run.

### Activity and Workflow mock name collision in Test Suite

Fixed a bug in the workflow test suite that would cause workflow and activity mocks that shared the same name to override each other. If your test was doing this and asserting on the number of times a mock was called you may notice a change in behavior as activity and workflow mocks are now stored in separate maps.

see also: [#1371](https://github.com/temporalio/sdk-go/pull/1371)

## Other changes

- Tag `workflow_task_execution_failed` metric with error type to help differentiate workflow task failures caused by non determinism from other task failures
- Dump coroutine stack on deadlock timeout. When the SDK detects a deadlock it will now try to dump the stack trace of the coroutine it detected as deadlocked.
- Add deterministic range over map helper. Iterating over Go's standard maps is not deterministic and therefore cannot be done in a workflow context. The SDK now includes helpers `DeterministicKeys` and `DeterministicKeysFunc` to get the keys of a map in a deterministic order.

### Specific Changes

2023-10-13 - [06c90fb](https://github.com/temporalio/sdk-go/commit/06c90fb3698708ef11d1992c8d69883d26a20c31) - Propagate Baggage in OTEL tracing interceptor ([#1260](https://github.com/temporalio/sdk-go/pull/1260))
2023-10-26 - [3cccbdd](https://github.com/temporalio/sdk-go/commit/3cccbdd5f47d640fffe6651e4f49c236a4803a47) - Fix error documentation typos and enum values ([#1276](https://github.com/temporalio/sdk-go/pull/1276))
2023-10-31 - [0352634](https://github.com/temporalio/sdk-go/commit/0352634b45b1b81293c9bf3cec3bb033b82f841f) - Add EmitDefault option for ProtoJson converter ([#1286](https://github.com/temporalio/sdk-go/pull/1286))
2023-11-08 - [0e432a9](https://github.com/temporalio/sdk-go/commit/0e432a921c1ee998e644b9ca1049e83a848b45ca) - Add context propagators to local activity executions through test environments ([#1291](https://github.com/temporalio/sdk-go/pull/1291))
2023-11-08 - [4663bab](https://github.com/temporalio/sdk-go/commit/4663babd3e26457e0a9ccd89d46ef6a0fb442a8f) - Fix typo in documentation ([#1288](https://github.com/temporalio/sdk-go/pull/1288))
2023-11-17 - [8068455](https://github.com/temporalio/sdk-go/commit/8068455da7292612b527f406b7b25c27ce439d97) - Delete .github/workflows/semgrep.yml ([#1294](https://github.com/temporalio/sdk-go/pull/1294))
2023-11-21 - [f9d73bf](https://github.com/temporalio/sdk-go/commit/f9d73bfdf7c8d3ec0311306140fbfafa7fb6f9cf) - Replace gogo protobuf ([#1256](https://github.com/temporalio/sdk-go/pull/1256))
2023-11-22 - [7db0d87](https://github.com/temporalio/sdk-go/commit/7db0d87bc5e96065fc6aa54d2bdbe517b0acfd93) - Use the official features repo ([#1298](https://github.com/temporalio/sdk-go/pull/1298))
2023-11-27 - [745e948](https://github.com/temporalio/sdk-go/commit/745e9484e2a7d125c24ab637df157cd22cb2e316) - Add `NotBefore` function to `testsuite.MockCallWrapper` ([#1301](https://github.com/temporalio/sdk-go/pull/1301))
2023-11-27 - [f5a0127](https://github.com/temporalio/sdk-go/commit/f5a0127ce4fe61d332ede903d079c22731d7572f) - Edit docstrings ([#1302](https://github.com/temporalio/sdk-go/pull/1302))
2023-11-28 - [33e8360](https://github.com/temporalio/sdk-go/commit/33e836057b722ccc1f5910ef704399b0cee94918) - Multi-platform CI and Makefile removal ([#1293](https://github.com/temporalio/sdk-go/pull/1293))
2023-11-28 - [70c8400](https://github.com/temporalio/sdk-go/commit/70c8400be86984e5b38bbb0ccabaae0efcc23a6f) - Fix doc typo ([#1305](https://github.com/temporalio/sdk-go/pull/1305))
2023-11-28 - [8f2a3c8](https://github.com/temporalio/sdk-go/commit/8f2a3c8f967a5898f45df92f6bc42196e4702a2d) - Use our new JSON coding stack ([#1307](https://github.com/temporalio/sdk-go/pull/1307))
2023-11-29 - [288a04f](https://github.com/temporalio/sdk-go/commit/288a04f72145f4c403c89cffdfa433aa2f4d2fd9) - Bump api-go version to fix Payload marshaling ([#1308](https://github.com/temporalio/sdk-go/pull/1308))
2023-11-29 - [89c8dba](https://github.com/temporalio/sdk-go/commit/89c8dba8172612ed656c468e10e56d0de9d04b39) - Enabled keep alive by default ([#1299](https://github.com/temporalio/sdk-go/pull/1299))
2023-11-30 - [266e049](https://github.com/temporalio/sdk-go/commit/266e049848f39f565ad20dcab609e3c6f13a3628) - Fix race in WaitSignalReturnParam ([#1309](https://github.com/temporalio/sdk-go/pull/1309))
2023-11-30 - [802d32e](https://github.com/temporalio/sdk-go/commit/802d32eb29d7dc3deb961a713b5ef6134ebbae91) - Run cloud tests in series to avoid wfID conflict ([#1311](https://github.com/temporalio/sdk-go/pull/1311))
2023-11-30 - [a309e59](https://github.com/temporalio/sdk-go/commit/a309e5929a3ce0b285b435e087bf453b14f5ca45) - Tag workflow\_task\_execution\_failed with error type ([#1295](https://github.com/temporalio/sdk-go/pull/1295))
2023-12-04 - [5fdbecc](https://github.com/temporalio/sdk-go/commit/5fdbecc56c8cd3bab8e8e33f7073070b98cefc0c) - Handle updates immediately when registered ([#1306](https://github.com/temporalio/sdk-go/pull/1306))
2023-12-04 - [838121a](https://github.com/temporalio/sdk-go/commit/838121a24af186371dc43048c7db5106462d0cce) - Don't run workflowCancelHandler in test harness ([#1296](https://github.com/temporalio/sdk-go/pull/1296))
2023-12-04 - [987379d](https://github.com/temporalio/sdk-go/commit/987379d0183ae434ec5024910fa70e0cded6b4b3) - Make remoteDataConverter implement PayloadCodec ([#1303](https://github.com/temporalio/sdk-go/pull/1303))
2023-12-04 - [eb05747](https://github.com/temporalio/sdk-go/commit/eb05747843c588288921a6b8add59d835134b643) - Fix flaky test ([#1314](https://github.com/temporalio/sdk-go/pull/1314))
2023-12-07 - [5d5b9c4](https://github.com/temporalio/sdk-go/commit/5d5b9c4c44a3f00df55958147b052d1e27233a4f) - Fix typo in docstring ([#1317](https://github.com/temporalio/sdk-go/pull/1317))
2023-12-14 - [7a9640d](https://github.com/temporalio/sdk-go/commit/7a9640d531f5eba5c3fa365e770e34bfb5676337) - Fix typo in update docstring ([#1321](https://github.com/temporalio/sdk-go/pull/1321))
2023-12-15 - [f823b64](https://github.com/temporalio/sdk-go/commit/f823b641db34a51bf9a48289e188c0be64fe1cb1) - Cleanup dead code and incorrect use of go routine in context pkg ([#1320](https://github.com/temporalio/sdk-go/pull/1320))
2023-12-27 - [95fe6ab](https://github.com/temporalio/sdk-go/commit/95fe6ab4995a810ccaec11865161691d068cffe0) - Fix bad Update mock in NamespaceClient ([#1328](https://github.com/temporalio/sdk-go/pull/1328))
2023-12-30 - [5a64898](https://github.com/temporalio/sdk-go/commit/5a64898282bacafc6becd41a5c87ef224a805cc1) - Failed Read-Only check causes a WFT failure in validator ([#1329](https://github.com/temporalio/sdk-go/pull/1329))
2024-01-04 - [cb1d35e](https://github.com/temporalio/sdk-go/commit/cb1d35e7223a608d1e083b5faf1b2e704802544e) - Update dd-trace-go.v1 ([#1332](https://github.com/temporalio/sdk-go/pull/1332))
2024-01-05 - [2f61d2f](https://github.com/temporalio/sdk-go/commit/2f61d2f81fbb21e246965814d5e76be9a5c09974) - Add last BuildID to workflow info ([#1335](https://github.com/temporalio/sdk-go/pull/1335))
2024-01-07 - [7fc12d3](https://github.com/temporalio/sdk-go/commit/7fc12d37fe7fde6dcab6dfb4e0763db82b9991df) - Add otel metrics support ([#1336](https://github.com/temporalio/sdk-go/pull/1336))
2024-01-08 - [6244097](https://github.com/temporalio/sdk-go/commit/6244097c5aca1e9474ae31c3e2e7e2c92bbf8fc0) - Include update state machine fields in panic ([#1327](https://github.com/temporalio/sdk-go/pull/1327))
2024-01-08 - [c1744ee](https://github.com/temporalio/sdk-go/commit/c1744ee2c8cb684c1faaa895c497c23a8591b5a5) - Bump go-api version to fix protojson vuln ([#1333](https://github.com/temporalio/sdk-go/pull/1333))
2024-01-09 - [1fe10d5](https://github.com/temporalio/sdk-go/commit/1fe10d51c8a23359315241859b5bb5946629ffe4) - Fix flaky build id issue ([#1338](https://github.com/temporalio/sdk-go/pull/1338))
2024-01-09 - [5ca9a4d](https://github.com/temporalio/sdk-go/commit/5ca9a4dfd4c37a56f0dd886596494be4599f01c8) - Add deterministic range over map helper ([#1340](https://github.com/temporalio/sdk-go/pull/1340))
2024-01-13 - [fac7f7f](https://github.com/temporalio/sdk-go/commit/fac7f7f23d57a5cb64d74bd7a34b1a90ab2c17a3) - Update WorkflowRun.Get Doc String ([#1346](https://github.com/temporalio/sdk-go/pull/1346))
2024-01-16 - [0f12265](https://github.com/temporalio/sdk-go/commit/0f12265035013ce8c1d7be9e093e08d926d8a793) - Replace go.uber.org/atomic with sync/atomic ([#1344](https://github.com/temporalio/sdk-go/pull/1344))
2024-01-16 - [41d2288](https://github.com/temporalio/sdk-go/commit/41d2288301cc205de56e1d7f5841e56edcb5f40d) - Evict workflow from cache on RespondTaskCompleted failure ([#1358](https://github.com/temporalio/sdk-go/pull/1358))
2024-01-16 - [54e131e](https://github.com/temporalio/sdk-go/commit/54e131e191406487481e2af2af46b3f5f57201d8) - Make dataConverterWithoutDeadlock context aware ([#1348](https://github.com/temporalio/sdk-go/pull/1348))
2024-01-17 - [14103e0](https://github.com/temporalio/sdk-go/commit/14103e0cfa24f08c28aeb4aec6ddc03cad024cb6) - regenerate mocks with latest mockery ([#1361](https://github.com/temporalio/sdk-go/pull/1361))
2024-01-17 - [50ab40d](https://github.com/temporalio/sdk-go/commit/50ab40d833471deb4890e892eb9bc4ce37c72d17) - regenerate mocks under client to allow dynamic returns based on arguments ([#1353](https://github.com/temporalio/sdk-go/pull/1353))
2024-01-17 - [55c39b5](https://github.com/temporalio/sdk-go/commit/55c39b5b4751999670f593f706cb0915c37ef87a) - Disable eager activities if tq rate limits is set ([#1350](https://github.com/temporalio/sdk-go/pull/1350))
2024-01-17 - [b50cce9](https://github.com/temporalio/sdk-go/commit/b50cce99431f52142f12fd59f3d0f17875b0503c) - Replace some Sprintfs with string concatenation ([#1345](https://github.com/temporalio/sdk-go/pull/1345))
2024-01-17 - [e3a3d95](https://github.com/temporalio/sdk-go/commit/e3a3d954d7bff70eec10bb3481cb3682a404f040) - Always yield when registering update handles ([#1325](https://github.com/temporalio/sdk-go/pull/1325))
2024-01-19 - [14ddd7b](https://github.com/temporalio/sdk-go/commit/14ddd7b9deb5fbf0dd00f8da375c3713d3d53f7f) - Dump coroutine stack on deadlock timeout ([#1356](https://github.com/temporalio/sdk-go/pull/1356))
2024-01-22 - [171504d](https://github.com/temporalio/sdk-go/commit/171504d947f447e5981b794b79abbb5fe0e9374b) - Fail task on unknown event when HistoryEvent.worker\_may\_ignore is false ([#1363](https://github.com/temporalio/sdk-go/pull/1363))
2024-01-22 - [30b2681](https://github.com/temporalio/sdk-go/commit/30b268147e8d580d44d3f6aa1cc1867dad1d8945) - Exit coroutine in order ([#1362](https://github.com/temporalio/sdk-go/pull/1362))
2024-01-22 - [94a5f5f](https://github.com/temporalio/sdk-go/commit/94a5f5f81f98b9351a0df0dd6833582e83052a0e) - Allow client to suggest delay until next retry ([#1319](https://github.com/temporalio/sdk-go/pull/1319))
2024-01-26 - [536b875](https://github.com/temporalio/sdk-go/commit/536b875f8a837cfa2c9175099963015e1489c15a) - Exclude codes.DeadlineExceeded from the list of retryable gRPC codes ([#1366](https://github.com/temporalio/sdk-go/pull/1366))
2024-02-01 - [57b6679](https://github.com/temporalio/sdk-go/commit/57b66796db69c98d3ef6d69d337b586038c28e21) - Typed Search Attributes ([#1368](https://github.com/temporalio/sdk-go/pull/1368))
2024-02-01 - [86764f8](https://github.com/temporalio/sdk-go/commit/86764f86bf3066a40097d208ed32b336afa3ab7f) - Handle nil valuePtr case in update handler Get ([#1373](https://github.com/temporalio/sdk-go/pull/1373))
2024-02-01 - [a7c9528](https://github.com/temporalio/sdk-go/commit/a7c95281d3b98686be235122e92a161b33b9fb9f) - Prefix some errors with rule identifiers ([#1281](https://github.com/temporalio/sdk-go/pull/1281))
2024-02-01 - [e2bec16](https://github.com/temporalio/sdk-go/commit/e2bec163bb792071556cedae4d0590a14fc8ee9d) - Fix testing suite name conflict for workflow and activity ([#887](https://github.com/temporalio/sdk-go/issues/887)) ([#1371](https://github.com/temporalio/sdk-go/pull/1371))
2024-02-01 - [f144428](https://github.com/temporalio/sdk-go/commit/f14442841c681946a21721157a1b59f5e765d0b7) - Release Go SDK version 1.26.0-RC.1

- [Release notes](https://github.com/temporalio/sdk-go/releases/tag/v1.26.0-rc.1)
