---
title: Bitbucket Source Code
description: >-
  Bitbucket is a web-based hosting service for software development projects
  that use the Git revision control system.
breadcrumbs: Docs > Integrations > Bitbucket Source Code
---

# Bitbucket Source Code
Integration version1.0.0
## Overview{% #overview %}

Integrate Datadog with your Bitbucket repositories to streamline troubleshooting of code issues and get suggested changes on your source code.

Get context-relevant code snippets while investigating issues in Error Tracking, Continuous Profiler, Code Security, and many more areas within Datadog.

Protect your production code base with pull request comments from Code Security, Test Optimization, and CI Visibility that provide automated code reviews and suggested changes.

### Source code functionality{% #source-code-functionality %}

When installed with the correct permissions, this integration powers [source code integration](https://docs.datadoghq.com/integrations/guide/source-code-integration.md) features across Datadog to help you troubleshoot and take action on your code:

- See code snippets in your stack traces to identify where code problems originate. This can speed up investigations in Error Tracking, Continuous Profiler, Dynamic Instrumentation, and Live Debugger.
- Streamline code reviews with automated feedback and suggested changes from [Code Security](https://docs.datadoghq.com/security/code_security/dev_tool_int/github_pull_requests.md) and [Test Optimization](https://docs.datadoghq.com/continuous_integration/guides/pull_request_comments.md), posted directly on pull requests.

### Bitbucket pipelines{% #bitbucket-pipelines %}

For more in-depth monitoring of your Bitbucket pipelines, check out [CI Pipeline Visibility](https://app.datadoghq.com/ci/getting-started). CI Pipeline Visibility provides granular insights into your user workflow, lets you access detailed Git metadata, and tracks pipeline performance over time.

## Setup{% #setup %}

{% alert level="info" %}
Some features require additional setup beyond installing the Bitbucket Source Code integration. Installing the integration connects your Bitbucket repositories to Datadog and grants only the permissions and access required as prerequisites for supported features. It doesn't enable any billable functionality by default, and you only incur additional charges if you explicitly configure a paid feature.
{% /alert %}

1. In the [Bitbucket Source Code integration tile](https://app.datadoghq.com/integrations/bitbucket-source-code/), navigate to the **Configuration** tab.
1. Click **Connect Bitbucket Account**.
1. Follow the on-screen instructions to authorize Datadog to access your Bitbucket workspace.
1. Select the Bitbucket workspaces and repositories you want to connect to Datadog.
1. Click **Finish**.

After setup, you're returned to your original location in Datadog. To enable inline code snippets in APM, [set up Source Code Integration](https://docs.datadoghq.com/integrations/guide/source-code-integration.md).

## Data Collected{% #data-collected %}

### Metrics{% #metrics %}

Bitbucket Source Code does not include any metrics.

### Events{% #events %}

Bitbucket Source Code does not include any events.

## Troubleshooting{% #troubleshooting %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).
