coinbase / temporal-ruby

Ruby SDK for Temporal
Apache License 2.0
213 stars 81 forks source link

:use_error_serialization_v2 config option isn't respected when using a custom Temporal::Configuration #295

Closed davehughes closed 1 month ago

davehughes commented 3 months ago

This was causing me some confusion and I tracked it down to this line, which uses the global singleton Temporal.configuration rather than the specific configuration that was used to create the connection.

I'm working on a PR to fix that:

  1. adds use_error_serialization_v2 to the set of options respected by Temporal::Connection::GRPC.
  2. plumbs this value through from Temporal::Configuration#for_connection which is used when actually creating the connection object in Temporal::Client#connection.