Skip to content

Extend the DD_TRACE_ENABLED to manual instrumentation#796

Merged
lucaspimentel merged 4 commits intomasterfrom
kevin/traceenabled
Jul 21, 2020
Merged

Extend the DD_TRACE_ENABLED to manual instrumentation#796
lucaspimentel merged 4 commits intomasterfrom
kevin/traceenabled

Conversation

@kevingosse
Copy link
Contributor

DD_TRACE_ENABLED was only disabling automatic instrumentation. Extend it to manual instrumentation.

@kevingosse kevingosse marked this pull request as ready for review July 13, 2020 13:35
@kevingosse kevingosse requested a review from a team as a code owner July 13, 2020 13:35
Copy link
Member

@lucaspimentel lucaspimentel left a comment

Choose a reason for hiding this comment

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

Well, that was much easier than I expected.

Copy link
Contributor

@zacharycmontoya zacharycmontoya left a comment

Choose a reason for hiding this comment

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

Looks good! Can you also add a unit test for this behavior?

Copy link
Member

@lucaspimentel lucaspimentel left a comment

Choose a reason for hiding this comment

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

See comments about using environment variables in tests.

# Conflicts:
#	test/Datadog.Trace.Tests/TracerSettingsTests.cs
@lucaspimentel lucaspimentel added area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) type:enhancement Improvement to an existing feature labels Jul 21, 2020
@lucaspimentel lucaspimentel merged commit 1d3527e into master Jul 21, 2020
@lucaspimentel lucaspimentel deleted the kevin/traceenabled branch July 21, 2020 18:48
@zacharycmontoya zacharycmontoya added this to the 1.19.0 milestone Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) type:enhancement Improvement to an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants