Kind of related to Context propagation for Typescript SDK - #5 by rifruf. I’m using the typescript sdk, but I don’t fully understand how I’m supposed to start a workflow with certain context (which I believe should be stored in Temporal headers and passed from workflows to activities/child workflows via interceptors, but correct me if I’m wrong there). Is there any documentation on this that I simply missed? Looking at Interface: WorkflowOptions | Temporal TypeScript SDK API Reference, I don’t see anything related to headers? Or should this be stored as Search Attributes?
Headers are only accessible via interceptors, you can use this interceptor method to inject the headers, likely in combination with node’s AsyncLocalStorage to propagate context to the interceptor.
1 Like