Serverless functions
Invocations, errors and cold starts per function.
In the console: Console → Observe → Cloud (Serverless)
All guides
Serverless shows invocations, errors, cold starts and duration per function and region for AWS Lambda, Google Cloud Functions and Azure Functions. A small wrapper or a scheduled reporter sends each batch over HTTPS.
Why use it
- Short-lived functions disappear from host monitoring and you need their errors and cold starts.
How it works
- 1A wrapper around your handler reports each invocation batch (count, errors, cold starts, duration) to /ingest/serverless/invocations.
What you get
- Invocations, errors and cold starts per function.
- Average and maximum duration per function and region.
Set it up
Get Started shows these commands with your key already filled in — copying from there is the quickest path. Here, <your-key> marks where it goes.
- 1
Create a serverless key
Get Started → Cloud → Serverless functions. Pick your runtime for a ready wrapper.
- 2
Report invocations
The wrapper calls this after each invocation (Node.js Lambda shown in Get Started):
terminalcurl -X POST "https://agent.appstatus.io/api/v1/ingest/serverless/invocations" \ -H "Authorization: Bearer <your-key>" -H "Content-Type: application/json" \ -d '{"invocations":[{"function_name":"checkout","provider":"aws_lambda","region":"eu-west-1","invocations":1,"errors":0,"cold_starts":1,"avg_duration_ms":182,"max_duration_ms":182}]}'
Uninstall / remove
- 1
Remove the wrapper
Take the wrapper out of your handler and deploy, then revoke the key.
Troubleshooting
The problems seen most, each with what to run. Still stuck? See the general Troubleshooting guide.
The function times out after adding the wrapper
Do not wait on the report in the hot path: send it after the response, with a short timeout, or batch from a scheduled reporter.
Related guides
Something here does not match what you see in the console? Open Help → Support in AppStatus or write to support@appstatus.io with the page and what you ran.