# Source: https://docs.datadoghq.com/data_streams/setup/technologies/azure_service_bus.md

---
title: Data Streams Monitoring for Azure Service Bus
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Data Streams Monitoring > Setup Data Streams Monitoring > Data Streams
  Monitoring for Azure Service Bus
---

# Data Streams Monitoring for Azure Service Bus

### Prerequisites{% #prerequisites %}

- [Datadog Agent v7.34.0 or later](https://docs.datadoghq.com/agent)

| Language                                                              | Library                                                                                 | Minimal tracer version | Recommended tracer version |
| --------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ---------------------- | -------------------------- |
| [.NET](https://docs.datadoghq.com/data_streams/setup/language/dotnet) | [Azure.Messaging.ServiceBus](https://www.nuget.org/packages/Azure.Messaging.ServiceBus) | 2.53.0                 | 2.53.0 or later            |

### Setting up Data Streams Monitoring{% #setting-up-data-streams-monitoring %}

See setup instructions for [.NET](https://docs.datadoghq.com/data_streams/setup/language/dotnet).

### Monitoring Azure Service Bus{% #monitoring-azure-service-bus %}

Setting up Data Streams Monitoring for Azure Service Bus applications requires additional configuration for the instrumented application.

1. Either set the environment variable `AZURE_EXPERIMENTAL_ENABLE_ACTIVITY_SOURCE` to `true`, or in your application code set the `Azure.Experimental.EnableActivitySource` context switch to `true`. This instructs the Azure Service Bus library to generate tracing information. See [Azure SDK documentation](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md#enabling-experimental-tracing-features) for more details.
1. Set the `DD_TRACE_OTEL_ENABLED` environment variable to `true`. This instructs the .NET auto-instrumentation to listen to the tracing information generated by the Azure Service Bus Library and enables the inject and extract operations required for Data Streams Monitoring.