Skip to content

Commit e80b95f

Browse files
ewildealexellis
authored andcommitted
Document callback request headers
Signed-off-by: Edward Wilde <[email protected]>
1 parent c8fac56 commit e80b95f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/deployment/troubleshooting.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ The [OpenFaaS workshop](https://github.com/openfaas/workshop) has more instructi
2525

2626
The Queue Worker component enables asynchronous processing of function requests. The default verbosity level hides the message content, but this can be viewed by setting write_debug to true when deploying.
2727

28+
### Callback request headers
29+
30+
The following additional request headers will be set when invoking the call back URL:
31+
32+
| Header | Description |
33+
|--------------------|-------------|
34+
| X-Call-Id | The original function call's [tracing UUID](https://github.com/openfaas/faas/blob/master/gateway/README.md#tracing) |
35+
| X-Duration-Seconds | Time taken in seconds to execute the original function call |
36+
| X-Function-Status | [HTTP status code](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) returned by the original function call |
37+
38+
2839
## Timeouts
2940

3041
Default timeouts are configured at the HTTP level and must be set both on the gateway and the function.

0 commit comments

Comments
 (0)