Skip to content
Source
Sign inSign up
TanStack/workflow

Add runtime deadlines and observability #13

Mergedtannerlinsleymerged 5 commits intomain fromtaren/runtime-deadlines-observabilitymerged by tannerlinsley

Showing 28 changed files with 77 additions and 0 deletions (loading 24).

x
0 of 28 viewed, 28 left
8 additions and 0 deletions.changeset/calm-clocks-yield.mdAdded
View file
@@ -0,0 +1,8 @@
+---
+'@tanstack/workflow-core': patch
+'@tanstack/workflow-runtime': patch
+---
+​
+Add runtime deadlines, automatic cooperative yielding at durable boundaries,
+and deadline helpers under `ctx.runtime`. Timer wake identities now include the
+durable operation ID so sequential waits at the same timestamp resume safely.
6 additions and 0 deletions.changeset/metal-shoes-observe.mdAdded
View file
@@ -0,0 +1,6 @@
+---
+'@tanstack/workflow-core': patch
+'@tanstack/workflow-runtime': patch
+---
+​
+Add first-class OpenTelemetry tracing for workflow runtime operations, durable store calls, and fresh step execution.
63 additions and 0 deletionsdocs/api/runtime.mdModified
View file
@@ -18,6 +18,9 @@
const runtime = defineWorkflowRuntime({
store,
defaultLeaseMs: 30_000,
+ telemetry: {
+ spanNamePrefix: 'tanstack.workflow',
+ },
workflows: {
checkout: {
load: async () => checkoutWorkflow,