-
Notifications
You must be signed in to change notification settings - Fork 429
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
Python pytest unit test interaction with ddtrace.tracer.wrap: (port 8126) #11166
Comments
ping? |
Hi Johan, Looks like your tests are not run with a datadog agent configured. |
Taegyun,
yes. that's correct, and by design. We use datadog in production, but we
don't need it for our unit tests.
So the ask is: how can I disable the dd-trace instrumentation, while
leaving imports and span annotations in place?
thanks!
…-- johan
On Tue, Nov 5, 2024 at 9:02 AM Taegyun Kim ***@***.***> wrote:
Hi Johan,
Looks like your tests are not run with a datadog agent configured.
—
Reply to this email directly, view it on GitHub
<#11166 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BHWBZGXTD5P6N3DZOPVSHG3Z7DFWFAVCNFSM6AAAAABQR4O2AWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJXGI3DANBXGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi, @jovlinger-numerated, You can run your tests with the following environment variable: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(first of all this feels like a faq, but google tells me it isn't. Sorry if indeed it is)
I have happily instrumented some of my code with
ddtrace.tracer.wrap
.But when I try to run pytest unit tests against that code, the tests pass, but on tear-down the test-runner complains of not being able to submit traces like below.
How can I inhibit this behavior when running tests?
thanks
-- johan
EDIT python 3.10 as you see and ddtrace 2.14.2
The text was updated successfully, but these errors were encountered: