apache / openwhisk-client-js

JavaScript client library for the Apache OpenWhisk platform
https://openwhisk.apache.org/
Apache License 2.0
83 stars 53 forks source link

Propagate __OW_TRANSACTION_ID when invoking actions #207

Closed tripodsan closed 4 years ago

tripodsan commented 4 years ago

The javascript runners honour the x-request-id header by propagating its value to process.env.__OW_TRANSACTION_ID. this allows to easily track a set of actions that are invoked within one transaction.

Unfortunately, the process.env.__OW_TRANSACTION_ID is not sent along when using the openwhisk js client. all it would need is to set the x-request-id header accordingly when invoking an action.

also see my experiments here: https://gist.github.com/tripodsan/9e0f04e1a5572c0ead3d53d93fab0a2f