diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 153b7a610..364e07702 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -126,6 +126,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 @@ -173,7 +178,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 06eafdcdc..eac2de87a 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -5,6 +5,7 @@ git+https://github.com/dbt-labs/dbt-core.git@1.4.latest#egg=dbt-tests-adapter&su black==22.8.0 click~=8.1.3 +ddtrace~=1.16 bumpversion flake8 flaky diff --git a/tox.ini b/tox.ini index 3af1756cb..0a1c8d88d 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} -m profile_snowflake tests/integration snowflake: {envpython} -m pytest {posargs} tests/functional