[Paper Review] FaaSter Troubleshooting -- Evaluating Distributed Tracing Approaches for Serverless Applications
This paper proposes a fault observability model and evaluates two distributed tracing approaches—developer-driven and platform-supported—for improving troubleshooting in serverless applications. It demonstrates that both approaches significantly reduce fault ambiguity with minimal performance overhead, especially developer-driven tracing, which incurs negligible latency and is recommended for production use when platform tracing is unavailable.
Serverless applications can be particularly difficult to troubleshoot, as these applications are often composed of various managed and partly managed services. Faults are often unpredictable and can occur at multiple points, even in simple compositions. Each additional function or service in a serverless composition introduces a new possible fault source and a new layer to obfuscate faults. Currently, serverless platforms offer only limited support for identifying runtime faults. Developers looking to observe their serverless compositions often have to rely on scattered logs and ambiguous error messages to pinpoint root causes. In this paper, we investigate the use of distributed tracing for improving the observability of faults in serverless applications. To this end, we first introduce a model for characterizing fault observability, then provide a prototypical tracing implementation - specifically, a developer-driven and a platform-supported tracing approach. We compare both approaches with our model, measure associated trade-offs (execution latency, resource utilization), and contribute new insights for troubleshooting serverless compositions.
Motivation & Objective
- To address the challenge of limited observability in serverless applications, where faults are hard to isolate due to complex, distributed compositions of managed services.
- To develop a fault observability model that characterizes how visible faults are across different components in serverless function compositions.
- To implement and evaluate two tracing approaches—developer-driven and platform-supported—aimed at improving fault diagnosis in serverless environments.
- To quantify the trade-offs between observability improvements and performance overhead (latency, resource usage) in real-world serverless workloads.
- To provide actionable insights for developers and platform providers on selecting and deploying effective tracing solutions for serverless fault troubleshooting.
Proposed method
- Proposes a serverless fault observability model that classifies fault visibility based on evidence consistency and ambiguity in logs and traces.
- Designs a prototypical implementation of developer-driven tracing using custom instrumentation in OpenWhisk, enabling end-to-end trace collection within application code.
- Designs a platform-supported tracing approach by instrumenting the OpenWhisk controller and invoker nodes to automatically capture traces across function invocations.
- Employs a real-world e-commerce bulk import use case with multiple function calls and external services to evaluate both approaches under realistic conditions.
- Measures execution latency, CPU and memory utilization, and trace completeness to compare performance and observability trade-offs.
- Uses a 100% sampling rate in experiments to evaluate the maximum possible overhead, simulating a worst-case scenario for performance impact.
Experimental results
Research questions
- RQ1How can fault observability be systematically characterized in serverless applications, especially in terms of visibility and ambiguity?
- RQ2What are the performance trade-offs of implementing developer-driven versus platform-supported distributed tracing in serverless platforms?
- RQ3To what extent does distributed tracing reduce fault ambiguity and inconsistency in logs across function compositions?
- RQ4How do execution latency and resource utilization change under different tracing approaches in a real serverless deployment?
- RQ5What are the practical implications for developers and platform providers when adopting tracing for fault troubleshooting?
Key findings
- Developer-driven tracing introduces negligible performance overhead, with a mean execution time increase of 0 seconds and a maximum of 3 seconds over the baseline, making it highly efficient.
- Platform-supported tracing incurs a higher performance cost, with a mean execution time increase of 2 seconds and a maximum of 82 seconds, primarily due to 100% sampling and instrumentation in core components.
- The platform-supported approach causes a measurable resource cost, consuming between 128 and 256 MB of additional memory and potentially reducing available runtimes by 1–2 per function.
- Despite performance costs, both approaches significantly improve fault observability by reducing ambiguity and inconsistency in failure evidence across function boundaries.
- Developer-driven tracing is recommended for production use when platform tracing is not available, due to its minimal overhead and strong observability benefits.
- The study demonstrates that distributed tracing is a viable and effective solution for improving fault diagnosis in serverless applications, especially in complex, multi-function compositions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.