You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2020/04/14 18:38:04 UTC

[GitHub] [openwhisk-wskdebug] alexkli opened a new issue #49: [activation DB agent] add X-OW-EXTRA-LOGGING header

alexkli opened a new issue #49: [activation DB agent] add X-OW-EXTRA-LOGGING header
URL: https://github.com/apache/openwhisk-wskdebug/issues/49
 
 
   Adapt for an upcoming (optional) feature in Openwhisk: The idea is to not store anymore the activation records in the database for _blocking_ successful activations. This means that `wsk activations list` and `wsk activation get <id>` won’t return anything for these activations.
   
   But it can be forced by setting a header when invoking the action:
   
   ```
   X-OW-EXTRA-LOGGING: on
   ```
   
   This would have to be set when invoking the helper functions [`<name>_wskdebug_invoked`](https://github.com/apache/openwhisk-wskdebug/blob/master/agent/agent-activationdb.js#L50) and [`<name> _wskdebug_completed `](https://github.com/apache/openwhisk-wskdebug/blob/fa5b0b48fa7e3bad922b94ee80e5ff6f70800ded/src/agentmgr.js#L403).
   
   It might be tricky to add a custom header in `openwhisk().actions.invoke()`. But [looking at the code](https://github.com/apache/openwhisk-client-js/blob/9f19b2e763c849c0e40162197ff8691573632d15/lib/client.js#L160-L169) it _might_ be possible using
   
   ```
   actions.invoke()({
       name: "action",
       params: result,
       blocking: true,
       headers: {
           "X-OW-EXTRA-LOGGING": "on"
       }
   });
   ```
   
   This might just be a side effect, not necessarily a supported way. And this might "clear" the default authorization header, in which case one would have to construct & set it here.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services