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

推荐订阅源

腾讯CDC
Microsoft Azure Blog
Microsoft Azure Blog
L
LangChain Blog
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
宝玉的分享
宝玉的分享
B
Blog RSS Feed
MongoDB | Blog
MongoDB | Blog
Jina AI
Jina AI
D
Docker
B
Blog
Engineering at Meta
Engineering at Meta
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
G
Google Developers Blog
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
大猫的无限游戏
大猫的无限游戏
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42

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
Real-time distributed tracing for Go and Java Lambda Func...
Alex Cuoci, Jordan Obey · 2021-06-16 · via Datadog | The Monitor blog
Alex Cuoci

Alex Cuoci

Jordan Obey

Jordan Obey

Senior Technical Content Writer

Serverless applications streamline development by allowing you to focus on writing and deploying code rather than managing and provisioning infrastructure. To help you monitor the performance of your serverless applications, last year we released distributed tracing for AWS Lambda to provide comprehensive visibility across your serverless applications. Now, in addition to Python and Node.js, real-time distributed tracing is available for Lambda functions written in Go and Java using the Datadog Tracer. Whether you’ve integrated serverless functions into your existing Java or Go applications or are running a fully serverless application, Datadog APM and Distributed Tracing enable you to easily trace requests as they propagate across your containers, hosts, and functions. This means you can get key insights into the health and performance of your serverless Go and Java resources alongside the rest of your environment.

Trace Go and Java requests across any type of infrastructure

Datadog APM automatically captures requests across all of your environment’s components and displays them as a single trace. This provides you with an end-to-end view of your applications’ performance, whether they run on AWS Lambda functions, containers, on-prem hosts, or a combination. For example, if your Go or Java Lambda functions are invoked by a service running on an EC2 instance, you can trace those requests as they traverse across both services to spot pain points without any code or configuration changes.

Spot code-level problems in your functions

Tracing your Go and Java Lambda functions enables you to easily find code-level issues that are causing problems with your serverless applications. This can include things like poorly performing goroutines or syntax problems in your Java functions.

Inspect goroutine executions

Go is optimized for concurrency by design; it can run up to hundreds of thousands of lightweight goroutines concurrently with minimal overhead. If, however, goroutines aren’t executing as you expect (e.g., looping inefficiently) they can experience increased latency and overconsume resources like memory, which can lead to problems down the line depending on the AWS Lambda memory limits you have in place.

Once you’ve installed and set up the Datadog Go tracer, you can visualize your Go-based Lambda functions to look out for problems like unexpected pauses in goroutine executions and unusually slow garbage collection, each of which can degrade application performance.

Trace Go Lambda functions to ensure goroutines are executing as expected.

Uncover performance issues in your Java Lambda functions

If you’re running a Java application on serverless, traces enable you to quickly tell whether your Java-based Lambda functions have performance issues. For example, after you install the Datadog Java tracer, you can look for errors on spans that point to code-level issues that need resolving such as uninitialized variables and missing return statements.

Detect cold starts automatically

Lambda functions written in statically typed languages like Java and Go are commonly prone to cold starts. Datadog automatically tags slow request traces with a cold_start attribute, so you can easily search for traces with cold starts in the Serverless view and determine if you should take mitigating actions like enabling Provisioned Concurrency.

Datadog automatically detects and tags cold starts

Start tracing your Go and Java Lambda functions today

With support for Go and Java Lambda functions, Datadog APM helps you gain real-time visibility into the performance of your serverless applications. Datadog’s Java and Go tracers have dozens of out-of-the-box integrations, which will automatically instrument calls made using supported libraries without any required code changes. You can find a full list of supported tracer integrations for Go here, and for Java here.

If you are not already using Datadog to monitor application performance, get started today with a 14-day free trial.