Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ to docs, or any other relevant information.
credentials set through `setHeaders` no longer appear in logs.
- The JavaDoc of `WorkflowClient.startUpdate` and `WorkflowClient.startUpdateWithStart` no longer describes these calls
as asynchronous.
- The Javadoc for `Workflow.randomUUID()` now explains that UUIDs are reproduced during replay
but change for calls after a workflow reset point (#3238).
- Client request metrics (`temporal_long_request_latency` etc.) now always carry the `update_name` tag (default
`none`), fixing Prometheus tag-key conflicts when Workflow Updates are used (#3210).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,10 @@ public static RuntimeException wrap(Exception e) {
*
* <p>Must be used instead of {@link UUID#randomUUID()} which relies on a random generator, thus
* leads to non-deterministic code which is prohibited inside a workflow.
*
* <p>During replay, the same sequence of calls produces the same UUIDs. After a workflow reset,
* calls before the reset point reproduce the original UUIDs, while calls after it use the new run
* ID and generate different UUIDs.
*/
public static UUID randomUUID() {
return WorkflowInternal.randomUUID();
Expand Down
Loading