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

ddtrace/tracer: add WithDebugStack StartOption to configure stack traces. #739

Merged
merged 2 commits into from
Sep 22, 2020

Conversation

knusbaum
Copy link
Contributor

By default a stack trace is collected when a span is finished with an
error. This can be disabled by passing tracer.NoDebugStack to
span.Finish(). Sometimes it is desirable to disable this option globally,
which is now possible with the WithDebugStack StartOption that this commit
introduces.

…ces.

By default a stack trace is collected when a span is finished with an
error. This can be disabled by passing tracer.NoDebugStack to
span.Finish(). Sometimes it is desirable to disable this option globally,
which is now possible with the WithDebugStack StartOption that this commit
introduces.
@knusbaum knusbaum added this to the 1.27.0 milestone Sep 21, 2020
@knusbaum knusbaum requested a review from gbbr September 21, 2020 18:58
@@ -59,7 +60,7 @@ loop:
}
}

// TestTracerFrenetic does frenetic testing in a scenario where the tracer is started
// TestTracerCleanStop does frenetic testing in a scenario where the tracer is started
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unrelated doc change

ddtrace/tracer/span.go Outdated Show resolved Hide resolved
gbbr
gbbr previously approved these changes Sep 21, 2020
@knusbaum knusbaum merged commit fc56ee0 into v1 Sep 22, 2020
@knusbaum knusbaum deleted the knusbaum/debug-stack-option branch September 22, 2020 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants