Azure Pipelines is a continuous integration and delivery service that supports any language, platform, or cloud.
Set up tracing on Azure Pipelines to gain real time insights into your CI/CD workflows, track pipeline performance, analyze inefficiencies, and manage your deployment operations.
Install the Datadog CI Visibility extension from the Azure Marketplace. There are several extensions starting with Datadog, make sure that you are installing the Datadog CI Visibility extension.
For each project, go to Project settings > Service hooks in Azure DevOps and select the green plus (+) icon to create a subscription.
Create a subscription to the Datadog CI Visibility service for each of the following webhook types. These event types are required and must be enabled individually.
Run state changed
Run stage state changed
Run job state changed
Run stage approval completed
Run stage waiting for approval
Build completed
Click Next to continue to the next step and set the following:
Datadog offers a script to help you enable service hooks across multiple or all of your Azure projects using the Azure API. The script requires Python 3 and the requests package.
You can set custom tags for all pipeline and job spans from your Azure projects to improve traceability. For more information, see Custom Tags and Measures.
Azure Log Collection is in Preview. To request access, fill out this form.
Datadog supports log collection for your Azure DevOps pipelines.
To enable job log collection:
Install a Datadog app registration on your Azure console. Follow the steps in the Azure integration tile.
Add the Datadog app registration to your Azure DevOps organization: a. Navigate to Organization settings in your DevOps console. b. Click Users from the left side panel, then click on Add Users. Note: If you don’t see the Add Users button, you may not have the necessary permissions.
To enable log collection, add your app registration as a user with Basic Access Level to each project. Alternatively, you can click Add to all projects to configure all projects in bulk.
Logs are billed separately from CI Visibility. Log retention, exclusion, and indexes are configured in Log Management. Logs for Azure jobs can be identified by the datadog.product:cipipeline and source:azurepipelines tags.