Skip to content

Commit e80f8e2

Browse files
authored
Expose signal-with-start request headers (#858)
Expose the SignalWithStart request header field in the System Nexus WIT source. Intended to enable tracing propagation. See temporalio/sdk-python#1682
1 parent 5520164 commit e80f8e2

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

‎nexus/deps/nexus-temporal-types/model.wit‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,17 @@ interface model {
9898
/// @nexus.type python="collections.abc.Mapping[str, typing.Any]" typescript="Record<string, unknown>" dotnet="IReadOnlyDictionary<string, object?>"
9999
type memo = placeholder;
100100

101+
/// @nexus.proto "temporal.api.common.v1.Header" typescript-import="@temporalio/proto"
102+
/// @nexus.type
103+
/// python="collections.abc.Mapping[str, typing.Any]"
104+
/// typescript="common.Headers"
105+
/// go="map[string]any"
106+
/// dotnet="IReadOnlyDictionary<string, object?>"
107+
/// dotnet-from="ProtoExtensions.FromHeaderProto"
108+
/// dotnet-to="ProtoExtensions.ToHeaderProto"
109+
/// typescript-import="@temporalio/common"
110+
type header = placeholder;
111+
101112
/// @nexus.proto "temporal.api.common.v1.SearchAttributes" typescript-import="@temporalio/proto"
102113
/// @nexus.type
103114
/// python="temporalio.common.TypedSearchAttributes"

‎nexus/workflow-service.wit‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ world system {
1313
interface workflow-service {
1414
use nexus:temporal-types/model@1.0.0.{
1515
duration,
16+
header,
1617
memo,
1718
payloads,
1819
placeholder,
@@ -89,8 +90,9 @@ interface workflow-service {
8990
namespace: string,
9091
/// @nexus.omit
9192
control: placeholder,
92-
/// @nexus.omit
93-
header: placeholder,
93+
/// @nexus.api-omit
94+
/// @nexus.proto-field "header"
95+
headers: option<header>,
9496
/// @nexus.omit
9597
links: placeholder,
9698
/// @nexus.omit

0 commit comments

Comments
 (0)