From 23e40372e053e94cc21401a021748592acf6b5f2 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Mon, 17 Jul 2023 17:19:42 -0500 Subject: [PATCH] add datadog env vars (#539) * add datadog env vars * move end vars --- .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 07631e4e2..3ba6f65d7 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -137,6 +137,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 @@ -183,7 +188,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 6c6c0db61..13ca5c02b 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -9,6 +9,7 @@ git+https://github.com/dbt-labs/dbt-core.git@1.5.latest#egg=dbt-postgres&subdire black~=23.3 bumpversion~=0.6.0 click~=8.1 +ddtrace~=1.16 flake8~=6.0 flaky~=3.7 freezegun~=1.2 diff --git a/tox.ini b/tox.ini index b42bd89b7..2b68df297 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} tests/functional deps =