Instrumenting your AWS Lambda functions with Amazon's Distro for Open Telemetry
Blog post from New Relic
The blog post discusses using OpenTelemetry to instrument and monitor AWS Lambda serverless applications via the AWS Distro for OpenTelemetry (ADOT), highlighting its benefits and setup process. The OpenTelemetry Lambda Collector, introduced in OpenTelemetry 1.0, acts as a local proxy to export telemetry data efficiently, reducing latency and overhead while supporting multiple telemetry data formats compatible with platforms like New Relic. ADOT facilitates auto-instrumentation without code modification, enabling correlation of application performance with infrastructure data across various AWS services, though it offers less customization flexibility compared to manual instrumentation. The post provides a step-by-step guide using the Serverless Framework to set up a Node.js Lambda function with an ADOT layer and explores the telemetry data in New Relic, demonstrating how distributed traces can offer insights into function performance and optimization opportunities. The author, Zameer Fouzan, emphasizes the importance of observability in serverless applications and offers resources for further exploration of OpenTelemetry and manual instrumentation.