Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --ddtrace flag #9124

Merged
merged 6 commits into from
Apr 13, 2021
Merged

Add --ddtrace flag #9124

merged 6 commits into from
Apr 13, 2021

Conversation

coignetp
Copy link
Contributor

@coignetp coignetp commented Apr 9, 2021

What does this PR do?

Add --ddtrace option to ddev test command so we can use DataDog/dd-trace-py#1741

Ex: ddev test --ddtrace hdfs_datanode

Motivation

Needed to use the CI app product for this repo

Additional Notes

In order to send the traces to datadog, an agent must be available and the environment variables must be set accordingly https://docs.datadoghq.com/tracing/setup_overview/setup/python?tab=containers

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have changelog/ and integration/ labels attached

@@ -151,6 +160,15 @@ def test(
echo_debug(f"No envs found for: `{check}`")
continue

ddtrace_check = ddtrace
if ddtrace and ON_WINDOWS and any('py2' in env for env in envs):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since all the environment are grouped in the tox command, the flag is disabled for the whole check if there is one windows-py2 env

ofek
ofek previously approved these changes Apr 9, 2021
@coignetp coignetp merged commit 4a91567 into master Apr 13, 2021
@coignetp coignetp deleted the paul/ddev-trace branch April 13, 2021 15:09
github-actions bot pushed a commit that referenced this pull request Apr 13, 2021
* Add --ddtrace option to tests

* Fix rebase

* Disable for py2

* Update datadog_checks_dev/datadog_checks/dev/tooling/commands/test.py

Co-authored-by: Florian Veaux <[email protected]>

* Fix typo

Co-authored-by: Florian Veaux <[email protected]> 4a91567
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants