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

# Set up code references

<View title="Developer" />

<View title="Federal docs">
  <Danger>
    **Engineering insights is not available in federal environments**

    To learn more, read <a href="/docs/home/infrastructure/federal">LaunchDarkly in federal environments</a>.
  </Danger>
</View>

<View title="EU docs">
  <Danger>
    **Engineering insights is not available in LaunchDarkly's European Union (EU) instance**

    To learn more, read <a href="/docs/home/infrastructure/eu">LaunchDarkly in the European Union (EU)</a>.
  </Danger>
</View>

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](/docs/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](/docs/home/flags/code-references).

## Additional setup

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