Skip to content

Disable ansi for tracing_tracy #123

@TheCodeLamp

Description

@TheCodeLamp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions