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 605e07cc1..520b2a262 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -5,6 +5,7 @@ git+https://github.com/dbt-labs/dbt-core.git@1.3.latest#egg=dbt-tests-adapter&su black==22.8.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