-
Notifications
You must be signed in to change notification settings - Fork 59
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling warning message for SpanTrace capture #32
Comments
if you're not compiling with an error layer it's probably safe to just disable all the tracing support with |
Thanks, it's good to know it is a compile time flag. Unfortunately the problem is I do want span traces some of the time, and ideally I'd like to distribute it to users as such (right now I've been adding it if There are some cases where it is incredibly useful, just not the default. I can imagine a couple issues where I might ask a user for a span trace, but in the case of the example above (a user typo'd a piece of config) it's just not useful there? |
Oh okay. I think the solution is just to add some check of an env variable before capturing SpanTraces when constructing Reports. If the error layer isn't setup but the SpanTrace is None it should skip printing the warning. I think I'd still prefer to default to capturing SpanTraces, so it would only not capture them if the |
Yep! That'd be more than fine. |
Hey 馃憢 Thanks for the great library!
After installing tracing without adding in a
ErrorLayer::default()
(since that prints span traces which I don't want), even when returning an error from a main function I see a note about:Specifically a full error message looks like:
Is there anyway to remove that:
warning: SpanTrace capture is Unsupported
message? I've specifically set it up this way because I don't want span traces captured unless a user is specifically asking for it. As for most users of this binary it won't actually be useful (and serve to confuse potential users who don't understand, and shouldn't have to understand the internals of the tool).The text was updated successfully, but these errors were encountered: