diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index feba1a9cf..c264d5c4c 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -129,6 +129,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 @@ -167,7 +172,7 @@ jobs: DBT_TEST_USER_1: group:buildbot@dbtlabs.com DBT_TEST_USER_2: group:engineering-core-team@dbtlabs.com DBT_TEST_USER_3: serviceAccount:dbt-integration-test-user@dbt-test-env.iam.gserviceaccount.com - run: tox + run: tox -- --ddtrace - uses: actions/upload-artifact@v3 if: always() diff --git a/dev-requirements.txt b/dev-requirements.txt index bf5763f77..e7084e3b6 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -5,6 +5,7 @@ git+https://github.com/dbt-labs/dbt-core.git@1.2.latest#egg=dbt-tests-adapter&su black==22.6.0 bumpversion +ddtrace~=1.16 flake8 flaky freezegun==1.1.0 diff --git a/tox.ini b/tox.ini index 0496edff4..3e6d5b8ba 100644 --- a/tox.ini +++ b/tox.ini @@ -22,6 +22,8 @@ passenv = PYTEST_ADDOPTS DATAPROC_* GCS_BUCKET + DD_SERVICE + DD_ENV commands = bigquery: {envpython} -m pytest {posargs} -m profile_bigquery tests/integration bigquery: {envpython} -m pytest {posargs} -vv tests/functional --profile service_account