diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index dcde1d2bc..d2e0d8cdf 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 @@ -167,7 +172,7 @@ jobs: DATAPROC_REGION: us-central1 DATAPROC_CLUSTER_NAME: dbt-test-1 GCS_BUCKET: dbt-ci - run: tox + run: tox -- --ddtrace - uses: actions/upload-artifact@v3 if: always() diff --git a/dev-requirements.txt b/dev-requirements.txt index 19415e6f9..dee7094c8 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -8,6 +8,7 @@ git+https://github.com/dbt-labs/dbt-core.git@1.4.latest#egg=dbt-tests-adapter&su black~=23.1 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 efa18083d..5e23df47c 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} -vv tests/functional --profile service_account deps = @@ -37,6 +39,8 @@ passenv = PYTEST_ADDOPTS DATAPROC_* GCS_BUCKET + DD_SERVICE + DD_ENV commands = {envpython} -m pytest {posargs} -vv tests/functional -k "TestPython" --profile service_account deps =