惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
GbyAI
GbyAI
Google DeepMind News
Google DeepMind News
Jina AI
Jina AI
B
Blog
aimingoo的专栏
aimingoo的专栏
酷 壳 – CoolShell
酷 壳 – CoolShell
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
月光博客
月光博客
H
Help Net Security
V
Visual Studio Blog
量子位
A
About on SuperTechFans
博客园 - Franky
人人都是产品经理
人人都是产品经理
N
Netflix TechBlog - Medium
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
Martin Fowler
Martin Fowler
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
P
Proofpoint News Feed
MongoDB | Blog
MongoDB | Blog

Datadog | The Monitor blog

Introducing our open source AI-native SAST Instrument and monitor Boomi integration flows with OpenTelemetry and Datadog Not all index scans are equal: How we cut query latency by over 99% Platform engineering metrics: What to measure and what to ignore Integrate Recorded Future threat intelligence with Datadog Cloud SIEM CI/CD security: threat modeling using a MITRE-style threat matrix CI/CD security: How to secure your GitHub ecosystem Ingress NGINX is EOL: A practical guide for migrating to Kubernetes Gateway API Operating agentic AI with Amazon Bedrock AgentCore and Datadog LLM Observability: Lessons from NTT DATA Introducing the Datadog Code Security MCP Capture and analyze custom heatmaps in Session Replay Understand session replays faster with AI summaries and smart chapters Monitor ClickHouse query performance with Datadog Database Monitoring How we designed empathetic alert sounds for on-call engineers Search and act across Datadog to resolve issues faster with Bits Assistant Measure the business impact of every product change with Datadog Experiments Analyzing round trip query latency Configuring JavaScript caches for better performance Introducing Bits AI Dev Agent for Code Security Datadog achieves ISO 42001 certification for responsible AI Monitor Nutanix clusters, hosts, and VMs with Datadog Monitor Juniper Mist in Datadog A new Host Map for modern infrastructure Annotate traces to improve LLM quality with Datadog LLM Observability What’s new in Cloud SIEM: AI-powered investigations, enhanced threat intelligence, and scalable security operations Explore Kubernetes with native OpenTelemetry data Monitor Oracle Fusion Cloud Applications with Datadog Announcing the Datadog Terraform provider v4.0.0 Scaling Kubernetes workloads on custom metrics How to design cloud environments for AI-powered threat analysis
Announcing support for monitoring AWS Lambda Function URL...
2022-04-06 · via Datadog | The Monitor blog

AWS Lambda Function URLs make it even easier to create AWS Lambda functions that can be accessed and triggered by using HTTP/S requests, which is key for building serverless applications that are connected to and invoked from the web. Now you can generate a URL in one click that points to a specified Lambda function. Then, any HTTP/S request that a Function URL receives will trigger the Lambda function it’s assigned to. Additionally, Function URLs can be used to invoke Lambda functions with Lambda Response Streaming enabled. Lambda Response Streaming is a new AWS Lambda function capability that lets functions stream response payloads back to clients in parts rather than waiting for entire payloads to fully generate and buffer. Response Streaming helps you reduce the time to first byte (TTFB) of your applications and allows you to send responses back to clients that are larger than Lambda’s traditional 6 MiB response payload limit.

Datadog is proud to partner with AWS for the release of Function URLs by providing end-to-end visibility into requests to functions triggered by URLs, as well as key Function URL and Response Streaming metrics. In this post, we’ll look at how Function URLs work and how you can use Datadog to get deep insight into their health and performance.

Simplify your AWS Lambda–powered services

Function URLs are useful for when you want to quickly connect your Lambda functions to the web. Whereas API Gateway provides tooling for managing RESTful Lambda resources and more complex APIs, Function URLs allow you to simplify operations and deliver value to your customers more quickly. If you later decide you want to use API Gateway’s API management features—such as API versioning and custom authorization—you can easily migrate from Function URLs to API Gateway because their request payloads use the same format and contain matching fields.

Having real-time visibility into your Function URLs is critical because any duration between receiving an HTTP/S request and the resulting Lambda invocation adds to customer-facing latency. You need to be able to measure, alert on, and set SLOs by using telemetry closest to the customer experience.

Alert on Function URL duration to quickly spot and begin mitigating user-facing latency

Additionally, while Function URLs are assigned to one Lambda function, each Lambda function may have multiple associated Function URLs. This means that if a Lambda function experiences an issue, you need to be able to identify which URLs were impacted.

Next, we’ll look at how Datadog:

Investigate Function URL spans in Lambda Function traces

After instrumenting your Lambda functions, Datadog APM automatically includes Function URL spans in your request traces without any further configuration. This feature enables you to see at a glance which URLs—and therefore which end users—are affected by any issues that may occur. For example, you can see if there’s a significant delay between when a specific Function URL receives an HTTP/S request and when its associated Lambda function begins to execute. This delay could indicate that a cold start is increasing latency and that you should consider enabling provisioned concurrency.

Function URL spans are available in Lambda traces to help you identify which URLs are affected by any function issues that may occur

Function URL spans also visualize errors so that you can quickly see, for instance, if your customers are running into 5xx errors, enabling you to immediately start troubleshooting.

Monitor key Function URL metrics

Datadog collects and visualizes Function URL metrics, such as latency and counts of total requests and errors. These metrics enable you to monitor your Function URLs alongside telemetry from your Lambda functions and other AWS services you may be collecting through our AWS integration, giving you a complete view of your serverless environment. For example, you can add Function URL metrics to the AWS Lambda dashboard to easily correlate Function URL errors to Lambda function performance.

Function URL metrics are tagged by Lambda function to help identify impacted functions

Datadog automatically tags your Function URL metrics by the AWS Lambda function they trigger, so if any Function URL experiences an issue, you can see which function may be impacted. In the screenshot above, for instance, a timeseries graph shows counts of Function URL 4xx errors grouped by Lambda function.

Monitor Lambda functions with Response Streaming enabled

Once you enable a Lambda function to use Response Streaming, you can invoke that function using Function URLs by setting the Function URLs’ invoke mode to RESPONSE_STREAM. Datadog now supports monitoring Lambda functions with Response Streaming enabled, which means in addition to tracing and the enhanced metrics Datadog already provides, you can collect and visualize metrics generated by streaming functions. These include StreamedOutBoundBytes, which measures the amount of bytes streamed out by a particular function, and StreamedOutboundThroughput, which tracks the rate of outbound bytes per second. It’s important to collect these response stream metrics because an unexpected drop or spike in either can indicate degraded application performance. For instance, if payload sizes surpass the default response stream payload limit of 20 MiB, your functions will throttle until you either reduce the payload size or configure a new limit.

Datadog also collects and visualizes the TimeToFirstByte response metric, which measures the time between when a lambda request is invoked and when the first chunk is sent back to the end-user. Alerting on TTFB spikes, which point to degraded website and application performance, enables you to act quickly to mitigate the issue and maintain an optimal end user experience. Additionally, you can monitor the latency and duration of your streamed responses using Datadog enhanced metrics such as ResponseDuration, ResponseLatency, and ProducedBytes.

Start monitoring Function URLs today

Datadog enables you to monitor Function URL and Response Streaming performance alongside telemetry from other serverless AWS services, such as Lambda and API Gateway, in addition to over 1,000 other technologies. To include Function URL data in your Lambda traces, make sure that you’re using the latest version of Datadog’s Lambda libraries. Also note that Response Streaming is currently only available for Node.js Lambda functions.

If you aren’t already using Datadog, sign up today for a 14-day free trial.