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

Provide access to tracing-subscriber::fmt::spans or similar API. #355

Closed
klotzambein opened this issue Sep 20, 2019 · 1 comment
Closed

Comments

@klotzambein
Copy link

Feature Request

Crates

tracing-subscriber (version 0.1.3)

Motivation

I would like to add a different logging backend which requires JSON output. Currently, there is no way to do this without reimplementing all of the span tracking done by fmt::Formatter. Most of this logic is in fmt::spans, however, this module is private.

Proposal

Make fmt::spans public or provide some other API.

Workaround

For now, I will just copy the fmt::spans into my project.

PR

I could work on a PR to implement this.

@klotzambein klotzambein changed the title Provide access to fmt::spans or similar API. Provide access to tracing-subscriber::fmt::spans or similar API. Sep 20, 2019
@davidbarsky
Copy link
Member

The underlying use-case will be solved using #377, and with the merging of #241, you can be unblocked in writing your own subscriber.

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

No branches or pull requests

2 participants