From 3a161269cda63800966bcb7180cc55395d88da9b Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Mon, 17 Jul 2023 17:19:34 -0500 Subject: [PATCH] add datadog env vars (#690) Co-authored-by: Mike Alfare <13974384+mikealfare@users.noreply.github.com> # 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 7b9280fb3..5b97a0f90 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -125,6 +125,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 @@ -172,7 +177,7 @@ jobs: DBT_TEST_USER_1: dbt_test_role_1 DBT_TEST_USER_2: dbt_test_role_2 DBT_TEST_USER_3: dbt_test_role_3 - run: tox + run: tox -- --ddtrace - uses: actions/upload-artifact@v3 if: always() diff --git a/dev-requirements.txt b/dev-requirements.txt index 769c7df06..01da19fc6 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -9,6 +9,7 @@ black~=23.1 bumpversion~=0.6.0 click~=8.1 flake8~=6.0;python_version>="3.8" +ddtrace~=1.16 flaky~=3.7 freezegun~=1.2 ipdb~=0.13.13 diff --git a/tox.ini b/tox.ini index 2c02bb569..bbea5b254 100644 --- a/tox.ini +++ b/tox.ini @@ -20,6 +20,8 @@ passenv = DBT_* SNOWFLAKE_TEST_* PYTEST_ADDOPTS + DD_SERVICE + DD_ENV commands = snowflake: {envpython} -m pytest {posargs} tests/functional deps =