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

Show the current span in the console. #17

Open
najamelan opened this issue Jun 6, 2021 · 2 comments
Open

Show the current span in the console. #17

najamelan opened this issue Jun 6, 2021 · 2 comments

Comments

@najamelan
Copy link

By default, tracing-subscriber shows span information in log events. I am using tracing in a library, so I'm trying to figure out how best to annotate things. I call user supplied code, so I don't necessarily get to put structured data directly on the log events, so a span seemed to be a good way to add information. However, if it doesn't get shown that doesn't work. I personally prefer putting the span information after the message, as it seems more optional.

I suppose fixing #13 would also fix this in a more general but less default way.

@lilyball
Copy link

lilyball commented Mar 8, 2022

I just tried switching over to tracing-wasm and was very surprised to see that the fields I've added to my spans aren't showing up. That removes most of the utility of my logging. Even without supporting tracing-subscriber's FormatEvent, this crate should at least include span names and fields.

@jquesada2016
Copy link

Any update on this? Logging without span information is generally a big problem, as all context to the events are lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants