From 2a5b4b9607e3b67799b3f550f74af397c730c09f Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 20 Jul 2023 12:43:14 -0500 Subject: [PATCH] add datadog env vars (#539) (#545) * add datadog env vars * move end vars # Conflicts: # dev-requirements.txt --- .github/workflows/integration.yml | 7 ++++++- dev-requirements.txt | 1 + tox.ini | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 7af8d6d19..e6ff5f630 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -131,6 +131,11 @@ jobs: TOXENV: integration-${{ matrix.adapter }} PYTEST_ADDOPTS: "-v --color=yes -n4 --csv integration_results.csv" DBT_INVOCATION_ENV: github-actions + DD_CIVISIBILITY_AGENTLESS_ENABLED: true + DD_API_KEY: ${{ secrets.DATADOG_API_KEY }} + DD_SITE: datadoghq.com + DD_ENV: ci + DD_SERVICE: ${{ github.event.repository.name }} steps: - name: Check out the repository @@ -171,7 +176,7 @@ jobs: DBT_TEST_USER_1: dbt_test_user_1 DBT_TEST_USER_2: dbt_test_user_2 DBT_TEST_USER_3: dbt_test_user_3 - run: tox + run: tox -- --ddtrace - uses: actions/upload-artifact@v3 if: always() diff --git a/dev-requirements.txt b/dev-requirements.txt index ca875fe03..1ce9acffe 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -7,6 +7,7 @@ git+https://github.com/dbt-labs/dbt-core.git@1.4.latest#egg=dbt-postgres&subdire black~=22.8.0 click~=8.1.3 bumpversion~=0.6.0 +ddtrace~=1.16 flake8 flaky~=3.7.0 freezegun~=0.3.12 diff --git a/tox.ini b/tox.ini index 4c34a3ef8..a25de12ba 100644 --- a/tox.ini +++ b/tox.ini @@ -20,6 +20,8 @@ passenv = DBT_* REDSHIFT_TEST_* PYTEST_ADDOPTS + DD_SERVICE + DD_ENV commands = redshift: {envpython} -m pytest {posargs} -m profile_redshift tests/integration redshift: {envpython} -m pytest {posargs} tests/functional