Skip to content

Add JSON pretty-print to logging-otlp exporters#8164

Open
lucacavenaghi97 wants to merge 1 commit intoopen-telemetry:mainfrom
lucacavenaghi97:feature/pretty-print-logging
Open

Add JSON pretty-print to logging-otlp exporters#8164
lucacavenaghi97 wants to merge 1 commit intoopen-telemetry:mainfrom
lucacavenaghi97:feature/pretty-print-logging

Conversation

@lucacavenaghi97
Copy link

Closes #5972

Adds pretty-printed JSON output to the OtlpJsonLogging*Exporter classes, as suggested in the issue.

Both LoggerJsonWriter and StreamJsonWriter now support a prettyPrint flag that enables Jackson's DefaultPrettyPrinter. The builders defer writer construction to build().

@lucacavenaghi97 lucacavenaghi97 requested a review from a team as a code owner March 8, 2026 21:02
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

Successfully merging this pull request may close these issues.

Request "pretty print" feature for logging exporter

1 participant