Spotinst Functions provides some useful runtime information in execution time, through the context request parameter.
Context Object Properties
The function ID of the executed function.
The function name of the executed function.
The function version being executed.
The environment ID of the function being executed.
The invocation ID used for current function invocation.
The executed function memory limit in MB.
The executed function timeout in Milliseconds.