-
Notifications
You must be signed in to change notification settings - Fork 37
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
Disable ansi for tracing_tracy #123
Comments
Fundamentally this is happening because TracyFields is likely the same type as the fields saved to Otherwise tracy layer with We could change While I agree that it would be ideal that tracy worked correctly at all times, this can already be handled by the users by implementing their own |
Thank you for your response. I was suspecting that this was something that was difficult to implement. For my use case just disabling all color using |
I don't believe tracy can display ansi characters so it's just added characters that obfuscate span names.
I saw that ansi support for tracing_subscriber is a feature flag so it might only be possible to disable this if that flag is turned on. But it seems it's possible to set the
.with_ansi(false)
on a fmt layer even without the ansi flag enabled.It's possible to disable this by setting the
NO_COLOR
env flag, but I feel like the tracing layer shouldn't submit color characters by default.Relevant issue: #72
Maybe relevant links?:
https://docs.rs/tracing-subscriber/latest/tracing_subscriber/fmt/struct.Layer.html#method.with_ansi
https://docs.rs/tracing-subscriber/latest/tracing_subscriber/fmt/struct.Layer.html#method.set_ansi
The text was updated successfully, but these errors were encountered: