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

推荐订阅源

J
Java Code Geeks
腾讯CDC
博客园 - 聂微东
爱范儿
爱范儿
罗磊的独立博客
P
Proofpoint News Feed
博客园 - Franky
博客园 - 三生石上(FineUI控件)
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
酷 壳 – CoolShell
酷 壳 – CoolShell
Jina AI
Jina AI
Blog — PlanetScale
Blog — PlanetScale
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 司徒正美
美团技术团队
MongoDB | Blog
MongoDB | Blog
WordPress大学
WordPress大学
A
About on SuperTechFans
I
InfoQ
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Help Net Security
Microsoft Azure Blog
Microsoft Azure Blog
G
Google Developers 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
Trace Azure-managed services in .NET applications with Da...
Pablo Martinez Bernardo, Ethan Gracer, Jordan Storms · 2026-06-09 · via Datadog | The Monitor blog

Distributed .NET applications on Microsoft Azure often rely on managed services such as Azure Service Bus, Event Hubs, Cosmos DB, and Azure API Management (APIM) to move requests between systems. These services sit directly in the request path, routing API traffic, handling asynchronous messaging workflows, and storing application data. But when an issue appears in production, engineers frequently lose visibility at the boundary between their application code and Azure-managed infrastructure.

Datadog now extends distributed tracing for .NET applications running on Azure managed services. With support for Azure Service Bus, Event Hubs, Cosmos DB, and APIM, teams can follow requests across the full application flow without modifying application code. Instead of switching between Datadog and the Azure portal to piece together request timelines, engineers can investigate a complete trace from a single view.

In this post, we’ll look at how you can:

- Trace Azure messaging services with Datadog

- Monitor Cosmos DB operations within distributed traces

- Connect frontend and backend services with APIM

- Set up tracing with minimal configuration

Trace Azure messaging services with Datadog

Modern .NET applications frequently use asynchronous communication patterns to improve scalability and resilience. Azure Service Bus and Event Hubs are common building blocks for these architectures, especially in event-driven systems and microservices environments. However, asynchronous messaging can make distributed tracing difficult because request context often gets lost as messages move through queues, topics, and event streams.

Datadog instruments the Azure Service Bus and Event Hubs SDKs so that teams can observe end-to-end request flows through messaging infrastructure. Traces remain connected as messages move between producers and consumers, helping engineers understand how asynchronous operations affect application performance and reliability.

Datadog also supports Azure Functions triggers and output bindings for these services, enabling teams to trace serverless workflows alongside traditional application services. Support for span links enables Datadog to correlate distributed operations across messaging boundaries, including both single-message and batch-processing workflows.

Datadog trace map showing a message flowing from kitchen-queue through azure-pizza-api to downstream pizza and delivery-queue services via Azure Service Bus.

For example, an ecommerce application might publish order-processing events to Service Bus after an API request completes. With Datadog tracing enabled, engineers can follow the request from the frontend API through queue processing and downstream worker services in a single flame graph. This visibility helps teams identify slow consumers, queue-processing bottlenecks, and failures that would otherwise require manual correlation across separate monitoring systems.

Monitor Cosmos DB operations within distributed traces

Database operations are often one of the largest contributors to latency in distributed systems. When applications use Azure Cosmos DB across multiple services or functions, teams need visibility into reads, writes, and query execution alongside the rest of the request life cycle.

Datadog traces Cosmos DB CRUD operations directly within distributed traces for .NET applications. This support extends to Azure Functions triggers and output bindings, helping teams monitor both synchronous and event-driven database workflows.

Datadog flame graph with a span highlighted, showing database timing within a distributed .NET trace.

With this visibility, engineers can identify whether latency originates in database operations, messaging infrastructure, or application logic. For example, if a customer-facing API experiences increased response times, teams can inspect the trace to determine whether the slowdown came from a Cosmos DB query, delayed queue consumption, or downstream service processing.

Because Cosmos DB spans appear directly inside the full request trace, engineers no longer need to compare timestamps across separate monitoring systems or investigate Azure telemetry data independently.

Connect frontend and backend services with APIM

APIM commonly acts as the entry point for distributed applications, routing requests between frontend clients and backend services. Without visibility into APIM, traces often appear fragmented because requests terminate at the proxy layer before continuing into downstream services.

Datadog supports tracing across APIM, helping teams connect frontend and backend traces into a unified distributed view. Instead of seeing disconnected traces on either side of APIM, engineers can investigate a continuous request path across the entire application stack.

Datadog trace map showing azure-pizza-web routing a request through APIM to backend services, with the APIM span selected.

This visibility is especially useful for troubleshooting latency and routing issues. Teams can inspect how long requests spend inside APIM policies, identify failed backend calls, and understand how proxy-layer behavior affects end-user performance.

Datadog waterfall view of a distributed trace spanning azure-pizza-web, Azure API Management, azure-pizza-api, Cosmos DB, and Service Bus.

By connecting APIM telemetry data directly into distributed traces, Datadog helps teams investigate issues from a single interface rather than switching between multiple Azure and observability tools.

Set up tracing with minimal configuration

Teams adopting distributed tracing often hesitate because instrumentation can require code changes across many services and repositories. In large .NET environments, manually configuring tracing libraries for each application can slow adoption and increase operational overhead.

Datadog simplifies setup for Azure managed service tracing through automatic instrumentation. Messaging services and Cosmos DB tracing work with Datadog automatic instrumentation, allowing teams to enable visibility without modifying application code.

For APIM, teams can enable inferred proxy span creation by configuring the tracer with an environment variable and adding an inbound APIM policy.

Datadog also provides environment-specific setup guidance for common Azure deployment targets, including:

- Azure Functions

- Azure App Service

- Azure Container Apps

To learn more about configuring APIM tracing, read the Azure API Management tracing documentation.

Get full visibility into Azure managed services with Datadog

Azure managed services are critical components in many distributed .NET applications, but they have historically introduced visibility gaps in distributed traces. By extending tracing support to Azure Service Bus, Event Hubs, Cosmos DB, and Azure API Management, Datadog helps teams investigate application behavior across the full request life cycle.

With complete traces that span application code and Azure-managed infrastructure, engineers can identify bottlenecks faster, troubleshoot incidents from a single interface, and better understand how requests move through complex distributed systems.

To get started, explore the Datadog APM documentation and the Azure API Management tracing setup guide. If you’re new to Datadog, you can sign up for a free 14-day trial.