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

推荐订阅源

F
Fortinet All Blogs
有赞技术团队
有赞技术团队
量子位
N
Netflix TechBlog - Medium
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
GbyAI
GbyAI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Blog — PlanetScale
Blog — PlanetScale
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
Martin Fowler
Martin Fowler
Y
Y Combinator Blog
宝玉的分享
宝玉的分享
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
V
V2EX
IT之家
IT之家
L
LangChain Blog
大猫的无限游戏
大猫的无限游戏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

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
Find what's driving errors and latency with Tag Analysis
2025-06-10 · via Datadog | The Monitor blog

When a spike in latency or errors threatens your service’s reliability, identifying the root cause quickly is essential—but not always straightforward. You can group your trace data by tags to see how attributes (such as your service’s version or the data center where it’s running) correlate with its performance. But your grouping strategy is only an educated guess—you have to define the grouping before you know which dimensions contribute to the performance variations you’re investigating, and this trial-and-error workflow can slow down your investigation.

Datadog Tag Analysis removes this guesswork by automatically identifying the tags that best explain increases in latency or errors. This means that you can easily see which tags are statistically significant to the issue you’re investigating and group those spans with a single click to home in on the root cause.

In this post, we’ll explore how Tag Analysis helps you quickly identify the drivers of latency and errors in your services.

Surface latency drivers automatically

Latency can stem from various issues, but the result is the same: degraded user experience and potential losses in customer retention and revenue. Identifying the cause quickly is critical, but sifting through high-cardinality tags to isolate the culprit can slow down your investigation. Tag Analysis simplifies this process by automatically identifying which tags correlate most strongly with a spike in latency. Say you receive an alert notifying you of increasing latency on your service. You can navigate to the Service Page for a high-level view of service performance. You’ll see RED metrics that confirm the rising latency, and you can select the problematic spans to launch Tag Analysis and see which tags are correlated with the errors.

Tag Analysis shows you a scatter plot of span durations that highlights how recent spans differ from the baseline, which is established by the spans that represent your service’s typical performance. Additionally, you’ll see the top correlated tags and their relative latency across the high-latency and baseline groups. In the following screenshot, Tag Analysis shows that spans tagged v2 are consistently slower than those tagged v1.

Tag Analysis comparing high-latency spans to baseline in the web-store service. The scatterplot shows latency distribution, with location service version v2 as overrepresented in high-latency spans by 36.3 percent. Account groups such as beta and batch_1 also show elevated presence in the subset.

These correlations can help you better understand the scope of the problem, in this case suggesting that the latency increase could be related to the recent deployment of a new version of the service. Tag Analysis also shows that the account.group tag is strongly correlated with the difference in latency. The beta group—the first users of the newly released version—are overrepresented in the high-latency spans. With this insight, you can avoid a wider impact by halting the rollout before it hits more users. And for a closer look at how the locationservice.version attribute contributes to the latency, you can easily group by relevant tags—for example, to compare the v1 version’s latency against that of v2.

Trace Explorer showing grouped span data by locationservice.version for the ShoppingCartController endpoint in the web-store service. Table displays request counts and P95 latency, with version v2 handling fewer requests but showing a higher latency of 3.28 seconds compared to 1.05 seconds for v1.

Understand error spikes without guesswork

Errors are another key driver of poor user experience, and it’s crucial to watch for them and investigate as soon as they arise—whether via dashboards, monitors, or Error Tracking. To find the scope and cause of the errors you’re investigating, you can group error spans by tag, but manually cycling through attributes to find a correlation is slow and inefficient. Now, you can launch Tag Analysis with a single click to automatically surface the tags most strongly correlated with the spike in errors.

Tag Analysis provides a clear, data-driven direction for your investigation. The ranked list of correlated attributes shows how frequently each tag’s values appear in both the error subset and the baseline, helping you see what the affected spans have in common—and where to focus your investigation next.

In the following screenshot, the highest-rated dimension is account.id, suggesting that the errors affect only a specific segment of customers.

Datadog APM Tag Analysis comparing error and OK spans for the ShoppingCartController endpoint in the web-store service.

Troubleshooting an increase in errors becomes more manageable once you learn that most errorful spans originated with a specific customer category. This information can guide your investigation, enabling you to quickly rule out irrelevant variables and focus on the attributes that most likely contributed to the errors. For example, recognizing that the bulk of errors are associated with certain customers suggests that you should investigate whether the errors relate to malformed requests, expired credentials, integration changes, or other issues on the client side.

By automatically identifying the tags that are correlated with an increase in errors or latency, Tag Analysis helps you quickly understand the root cause. These automated insights surface what’s driving the issue so that you can avoid trial-and-error investigations and focus your mitigation efforts where they matter most.

Tag Analysis is now available in Preview. You can sign up here and see the Tag Analysis documentation to get started. To learn more about how to troubleshoot application performance, see the Datadog APM documentation. If you don’t already have a Datadog account, you can sign up for a free 14-day trial to get started.