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

推荐订阅源

有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
量子位
S
SegmentFault 最新的问题
V
Visual Studio Blog
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
Stack Overflow Blog
Stack Overflow Blog
Vercel News
Vercel News
D
Docker
J
Java Code Geeks
博客园 - 三生石上(FineUI控件)
博客园 - Franky
Recent Announcements
Recent Announcements
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MongoDB | Blog
MongoDB | Blog
D
DataBreaches.Net
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
V
V2EX

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
Detect Java code-level issues with Seagence and Datadog
Emily Chang · 2024-01-04 · via Datadog | The Monitor blog
Emily Chang

Emily Chang

In Java applications, concurrency issues can be difficult to reproduce and debug. Because work is scheduled nondeterministically across threads, the conditions that have led to an error in one execution of the program may not trigger the same issue the next time around. Exceptions that are silently handled—also known as swallowed exceptions—can also be challenging to debug because they typically do not leave any trace in the logs.

Seagence is a tool that helps developers detect and debug these types of code-level issues in production by analyzing how application requests are processed in real time. We’re pleased to announce that Seagence integrates with Datadog and offers a software license in the Datadog Marketplace so that developers can easily track defects as Datadog events and visualize the root cause in out-of-the-box (OOTB) dashboards. In this post, we’ll explore how you can use the Seagence license and integration to:

  • Detect defects in Java applications

  • Get deep visibility into Java errors and exceptions

Detect defects in Java applications

Seagence’s Java agent is lightweight and does not require you to instrument any code to get started. Once you download the agent and connect it to your application, Seagence will automatically analyze how requests are executed in real time. Once Seagence is integrated with Datadog, it will generate an event (which it refers to as a defect) in Datadog whenever it detects a problem in your application.

The OOTB Seagence dashboard helps you visualize trends in these detected defects. In the dashboard, you can see a timeline that can help you distinguish trends in your application. For example, if a particular application starts to exhibit more defects over time, you may want to investigate further before it negatively impacts your end user experience.

The out-of-the-box Seagence dashboard helps you visualize defects that have been detected in your Java applications.

Seagence’s findings provide additional context around any logs and application performance data that Datadog is already collecting from your applications. You can clone and customize the Seagence dashboard to include key Datadog-collected metrics from your applications, for example, or overlay Seagence events on timeseries graphs within your other Datadog dashboards.

In the following screenshot, you can see that Seagence recently detected two defects (shown as vertical red bars overlaid on the graph) shortly before a slight rise in application latency. To investigate, you can click to inspect these defects in more detail.

Correlating Seagence’s findings with application performance metrics allows us to see that two defects were detected shortly before a slight rise in application latency.

Get deep visibility into Java errors and exceptions

In addition to viewing Seagence defects in the OOTB dashboard, you can also explore these findings in the Datadog Events Explorer. Each event includes information about the root cause of a defect. For example, let’s say you’re a web developer working on an ecommerce site, and you notice that Seagence has detected that a defect due to an IllegalArgumentException error occurred on the /cart/add endpoint, as shown in the following screenshot. In this case, this exception did not generate an error in the application because it got swallowed and returned a successful HTTP response (as indicated by the seagence:http-status-code-200 tag), but Seagence was still able to detect the defect. Proactively investigating and debugging these well-hidden types of exceptions can help you address issues before they degrade your end user experience.

Seagence shows that an IllegalArgumentException error occurred on the /cart/add endpoint.

In the details of the event above, you can see that Seagence has captured a stack trace that includes details about the root cause of the exception. You can use this information to start fixing the code. Or, you can continue troubleshooting by clicking on a link to navigate to SeagenceWeb, where you can inspect more detailed debugging information.

The Seagence integration also includes a preconfigured monitor that can automatically notify you about Seagence’s findings in real time. To enable this out-of-the-box monitor in Datadog, navigate to the Assets tab of the Seagence integration tile and find Recommended Monitors > Recommended Monitors > Seagence detected a defect. You can enable this monitor and specify the individuals, channels, or teams that should be kept in the loop about any issues that Seagence detects. You can also use Datadog Workflow Automation to kick off an automated remediation process if an alert is triggered. You can easily escalate this alert into an incident if needed as well, and use Datadog Incident Management to automatically execute specific remediation processes when the monitor is triggered and collaborate with other team members to continue investigating this issue.

The Seagence integration includes an out-of-the-box monitor that can automatically notify you about Seagence’s findings in real time.

Debug Java code-level issues with Seagence and Datadog

The Seagence integration enables you to proactively detect and debug code-level issues in your Java applications before they affect your users. Once you set up Seagence’s integration and purchase a license through the Datadog Marketplace, you can start detecting and debugging code-level issues in your applications right away with preconfigured dashboards and monitors. You can get started by purchasing a Seagence software license through the Datadog Marketplace and consulting our documentation for details about setting up the integration.

The ability to develop and promote third-party tools in the Datadog Marketplace that extend the capabilities of Datadog is one of the benefits of membership in the Datadog Partner Network. You can learn more about the Datadog Marketplace in our blog post, and you can contact us at marketplace@datadog.com if you’re interested in developing an integration or application.