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

Request "pretty print" feature for logging exporter #5972

Open
shuwpan opened this issue Nov 9, 2023 · 3 comments
Open

Request "pretty print" feature for logging exporter #5972

shuwpan opened this issue Nov 9, 2023 · 3 comments
Labels
Feature Request Suggest an idea for this project

Comments

@shuwpan
Copy link

shuwpan commented Nov 9, 2023

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
I was following the getting started page https://opentelemetry.io/docs. I noticed the java logging exporter printing everything in single line, which is a bit hard to read. I think this would be handy feature to have.

Describe alternatives you've considered
One workaround I can think of is to send the data to a collector to see some indented console logs.

Additional context
screenshots are taken from https://opentelemetry.io/docs
Java logs:
image

@shuwpan shuwpan added the Feature Request Suggest an idea for this project label Nov 9, 2023
@shuwpan shuwpan changed the title Request "pretty print" for logging exporter Request "pretty print" feature for logging exporter Nov 9, 2023
@jkwatson
Copy link
Contributor

jkwatson commented Nov 9, 2023

Since the logging exporter is only intended to be used for very rough, simple debugging, I doubt we would want to make the output style configurable. You are welcome to implement your own exporter, though, that does whatever formatting you prefer.

@jack-berg
Copy link
Member

jack-berg commented Nov 9, 2023

What about JSON pretty printing from logging-otlp? Would improve readability.

@shuwpan
Copy link
Author

shuwpan commented Nov 9, 2023

Since the logging exporter is only intended to be used for very rough, simple debugging, I doubt we would want to make the output style configurable. You are welcome to implement your own exporter, though, that does whatever formatting you prefer.

Simple JSON pretty print is good enough, doesn't need to be super-fancy-customisable-formatter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Suggest an idea for this project
Projects
None yet
Development

No branches or pull requests

3 participants