When stateful functions are invoked, they are passed an instance of
statefun.Context, which wraps the context.Context received by the HTTP
request. Is there any way to customize that context.Context to, say, hold
custom values, using ctx.WithValue()? I don't see a way but I wanted to ask.

If not, would you be interested in a PR to add this functionality? A simple
way might be to add a property to StatefulFunctionSpec, say:

TransformContext func(ctx context.Context) context.Context

... that, if supplied, would be called to create a customized context that
would be used downstream?

Thanks.

Reply via email to