> ## Documentation Index
> Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up code references

> This topic explains how to set up code references for engineering insights.

> For the complete documentation index, see [llms.txt](/llms.txt). For the full documentation snapshot, see [llms-full.txt](/llms-full.txt).

## Overview

This topic explains how to set up code references for engineering insights.

LaunchDarkly uses code references to associate flags with code-based changes such as pull requests and deployments. These associations let LaunchDarkly calculate usage metrics and increase the accuracy of the flag health metric. To learn more, read [Flag health](/home/releases/flag-health).

## Set up code references

Set up code references for each codebase in which you use flags. To learn how, read the instructions using the **Get started** button at the bottom of the screen, or by reading [Code references](/home/flags/code-references).

## Additional setup

To finish setting up engineering insights, you may also need to [Send deployment information to LaunchDarkly](/home/releases/config-deployment) and [Install the GitHub app](/home/releases/github-app). To learn more, read [Confirm your setup](/home/releases/get-started#confirm-your-setup).
