Source Code Management Providers

이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우 언제든지 연락주시기 바랍니다.

Overview

To use most source code-related features, you must connect your Git repositories to Datadog through Datadog’s first-party source code management (SCM) provider integrations. After connecting your repositories, Datadog may store the contents of your repositories for up to 7 days to reduce repeated requests to the repository and support feature performance.

Source code management providers

Datadog supports the following features for the SCM providers listed below. See Features for more details about each feature:

FeatureGitHubGitLabAzure DevOpsBitbucket
Connect SaaS InstanceYes
(GitHub.com and GitHub Enterprise Cloud)
Yes
(GitLab.com)
Yes
(Azure DevOps Services)
No
(Bitbucket.org)
Connect On-Prem InstanceYes
(GitHub Enterprise Server)
Yes
(GitLab Self-Managed or Dedicated)
No
(Azure DevOps Server)
No
(Bitbucket Data Center or Server)
Context LinksYesYesYesYes
Code SnippetsYesYesYesNo
PR CommentsYesYesYesNo
Repositories from GitHub instances are supported for GitHub.com, GitHub Enterprise Cloud (SaaS), and GitHub Enterprise Server (On-Prem). For GitHub Enterprise Server, your instance must be accessible from the internet. If needed, you can allowlist Datadog's webhooks IP addresses to allow Datadog to connect to your instance.

Install Datadog’s GitHub integration using the integration tile or while onboarding other Datadog products to connect to your GitHub repositories.

Repositories from GitLab instances are supported for both GitLab.com (SaaS) and GitLab Self-Managed/Dedicated (On-Prem). For GitLab Self-Managed, your instance must be accessible from the internet. If needed, you can allowlist Datadog's webhooks IP addresses to allow Datadog to connect to your instance.

Install Datadog’s GitLab Source Code integration using the integration tile or while onboarding other Datadog products to connect to your GitLab repositories.

Repositories from Azure DevOps instances are supported for Azure DevOps Services (SaaS). Azure DevOps Server (On-Prem) is not supported.

Install Datadog’s Azure DevOps Source Code integration using the integration tile or while onboarding other Datadog products to connect to your Azure DevOps repositories.

Repositories on self-hosted instances or private URLs are not supported out-of-the-box. To enable this feature, contact Support.

If you are using any other SCM provider, you can still manually link telemetry with your source code. To do so, upload your repository metadata with the datadog-ci git-metadata upload command. datadog-ci v2.10.0 or later is required.

When you run datadog-ci git-metadata upload within a Git repository, Datadog receives the repository URL, the commit SHA of the current branch, and a list of tracked file paths.

Run this command for every commit that you need to be synchronized with Datadog.

Validation

To ensure the data is being collected, run datadog-ci git-metadata upload in your CI pipeline.

You can expect to see the following output:

Reporting commit 007f7f466e035b052415134600ea899693e7bb34 from repository git@my-git-server.com:my-org/my-repository.git.
180 tracked file paths will be reported.
Successfully uploaded tracked files in 1.358 seconds.
Syncing GitDB...
Successfully synced git DB in 3.579 seconds.
 Uploaded in 5.207 seconds.

Further reading