• /
  • EnglishEspañol日本語한국어Português
  • Inicia sesiónComenzar ahora

Monitor response streaming Lambda functions

You can monitor AWS Lambda functions that use response streaming in Node.js applications to get real-time insights into the performance and behavior of each invocation. This solution integrates with AI monitoring to allow you to track model responses and collect observability data related to your AI workloads. Using these capabilities, you can optimize your serverless applications' performance and maintain comprehensive oversight of AI-driven processes.

This document helps you to:

  • Set up monitoring response streaming Lambda functions
  • Understand the metrics and data available for response streaming Lambda functions
  • Learn how to use the New Relic UI to monitor and observe the performance of your response streaming Lambda functions
Lambda response monitoring in the New Relic platform

Set up the Lambda response streaming

Prerequisites

Configure the Lambda response streaming

To enable response streaming monitoring for your Node.js Lambda functions:

  1. Install and configure Lambda monitoring on New Relic.

  2. Add the required environment variables for Node.js response streaming Lambda functions.

  3. Save the changes and deploy the function.

    After deployment, you can view the Lambda response streaming data in the New Relic platform. For more information, refer to Access the Lambda response streaming data.

Access the Lambda response streaming data

To view the Lambda response streaming data in the New Relic platform:

  1. Go to one.newrelic.com > left navigation pane > All Capabilities > Serverless Functions.

  2. Select the required Lambda function that uses response streaming.

  3. View Summary, Invocations, CloudWatch metrics, and distributed tracing for your response streaming Lambda functions.

  4. In the More views section, click AI Responses.

    To know more about AI responses, refer to View AI responses.

Key metrics for response streaming

On the Cloudwatch metrics page, monitor the following metrics related to response streaming:

  • Streamed Outbound Bytes: Displays the average number of bytes streamed out by the Lambda function.
  • Streamed Outbound Throughput: Displays the average rate at which bytes are streamed out by the Lambda function.
Lambda response monitoring in the New Relic platform

For more about our UI, see Intro to the New Relic platform.

Copyright © 2025 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.