From b01505110090c257a9c374b71714b359c7316145 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 20 Jul 2023 12:43:36 -0500 Subject: [PATCH] add datadog env vars (#539) (#543) * 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 0b51a8a4c..c98440931 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -130,6 +130,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 @@ -170,7 +175,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 6d55730d5..5060a9be4 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -7,6 +7,7 @@ git+https://github.com/dbt-labs/dbt-core.git@1.2.latest#egg=dbt-postgres&subdire black==22.3.0 click~=8.0.4 bumpversion +ddtrace~=1.16 flake8 flaky freezegun==0.3.12 diff --git a/tox.ini b/tox.ini index 2e41fddc9..e80ec8608 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