temporalio / sdk-java

Temporal Java SDK
https://temporal.io
Apache License 2.0
200 stars 134 forks source link

Set Temporal-Namespace header on every namespace-specific gRPC request #2058

Open cretz opened 1 month ago

cretz commented 1 month ago

Describe the solution you'd like

See https://github.com/temporalio/features/issues/475. It needs to be an interceptor surely, but unsure how the implementation will do this generically. One way is via reflection to call getNamespace() string assuming it's not deemed too expensive (probably not), but this is left up to the implementer. All that matters is that new RPCs that come in with namespaces automatically have the header set.