Codecov (Sentry)

Codecov (Sentry)

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Learn more
PostHog Wizard hedgehog

Connect Codecov (Sentry) to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.

Enter your Codecov API token to automatically pull your code coverage data into the PostHog Data warehouse.

You can generate a personal API token under Settings → Access in your Codecov account. The token mirrors your own permissions on the git provider, so it can read every repository you can.

By default all of the owner's active repositories are synced; enter a comma-separated list of repository names to limit the import.

Configuration

OptionTypeRequired
Git providerselectYes
Owner usernametextYes
API tokenpasswordYes
Repositories (optional)textNo

Linking Codecov (Sentry) to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select Codecov (Sentry)
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
repos

All repositories Codecov knows for the owner, with their latest coverage totals

Full refresh
branches

A branch of a repository that has coverage data in Codecov.

Full refresh
commits

Commits with coverage uploads on each repository's default branch, newest-first

Incremental, Full refreshtimestamp
pulls

A pull request Codecov tracks for a repository, with base/head coverage totals.

Full refresh
flags

Current coverage percentage per flag, per repository

Full refresh
components

Current coverage percentage per component, per repository

Full refresh
coverage_trend

Daily min/max/avg coverage time series per repository (default branch)

Incremental, Full refreshtimestamp