Cloud Native 7 min read

How to Monitor, Debug, and Locally Test Spring Boot Serverless Apps on Alibaba Cloud

This guide walks through using Serverless Devs to collect real‑time logs, query metrics, perform local debugging, and enable cloud‑edge debugging for a Spring Boot e‑commerce application running on Alibaba Cloud Function Compute, with step‑by‑step commands and screenshots.

Alibaba Cloud Native
Alibaba Cloud Native
Alibaba Cloud Native
How to Monitor, Debug, and Locally Test Spring Boot Serverless Apps on Alibaba Cloud

01 Real‑time Logs

Serverless Devs automatically collects and aggregates logs from Function Compute instances. Users only need to output logs in their code, then view them via the console or query with SQL. Common commands:

sudo -E s logs
sudo -E s mall-admin logs
sudo -E s mall-admin logs -t

The -t flag starts a watch mode that streams new logs as requests arrive. Keyword filtering is also supported, e.g.:

s mall-admin logs -t --keyword=ERROR
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

DebuggingCloud NativeServerlessSpring BootAlibaba CloudFunction Compute
Alibaba Cloud Native
Written by

Alibaba Cloud Native

We publish cloud-native tech news, curate in-depth content, host regular events and live streams, and share Alibaba product and user case studies. Join us to explore and share the cloud-native insights you need.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.