Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit e0529a2

Browse files
authored
add datadog env vars (#829) (#836)
1 parent a4f8321 commit e0529a2

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/integration.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ jobs:
132132
TOXENV: integration-${{ matrix.adapter }}
133133
PYTEST_ADDOPTS: "-v --color=yes -n4 --csv integration_results.csv"
134134
DBT_INVOCATION_ENV: github-actions
135+
DD_CIVISIBILITY_AGENTLESS_ENABLED: true
136+
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
137+
DD_SITE: datadoghq.com
138+
DD_ENV: ci
139+
DD_SERVICE: ${{ github.event.repository.name }}
135140

136141
steps:
137142
- name: Check out the repository
@@ -179,7 +184,7 @@ jobs:
179184
DATAPROC_REGION: us-central1
180185
DATAPROC_CLUSTER_NAME: dbt-test-1
181186
GCS_BUCKET: dbt-ci
182-
run: tox
187+
run: tox -- --ddtrace
183188

184189
- uses: actions/upload-artifact@v3
185190
if: always()

dev-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ git+https://github.com/dbt-labs/[email protected]#egg=dbt-tests-adapter&su
88
black~=23.3
99
bumpversion~=0.6.0
1010
click~=8.1
11+
ddtrace~=1.16
1112
flake8~=6.0
1213
flaky~=3.7
1314
freezegun~=1.2

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ passenv =
2222
PYTEST_ADDOPTS
2323
DATAPROC_*
2424
GCS_BUCKET
25+
DD_SERVICE
26+
DD_ENV
2527
commands =
2628
bigquery: {envpython} -m pytest {posargs} -vv tests/functional -k "not TestPython" --profile service_account
2729
deps =
@@ -37,6 +39,8 @@ passenv =
3739
PYTEST_ADDOPTS
3840
DATAPROC_*
3941
GCS_BUCKET
42+
DD_SERVICE
43+
DD_ENV
4044
commands =
4145
{envpython} -m pytest {posargs} -vv tests/functional -k "TestPython" --profile service_account
4246
deps =

0 commit comments

Comments
 (0)