You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/workloads.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -221,11 +221,20 @@ functions:
221
221
com.openfaas.ready.http.periodSeconds: 5
222
222
```
223
223
224
-
### Function information
224
+
### How to find the function's name at runtime
225
225
226
226
!!! info "OpenFaaS Pro feature"
227
227
This feature is part of the [OpenFaaS Pro](/openfaas-pro/introduction) distribution.
228
228
229
229
OpenFaaS exposes some information to functions through environment variables.
230
230
231
-
The function name is made available in every function as an environment variable `OPENFAAS_NAME`.
231
+
The function name is made available in every function as an environment variable `OPENFAAS_NAME`. You can test this by deploying the `env` function the store and invoking it, i.e.
0 commit comments