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

tweak the output of the logging exporter: #2054

Merged
merged 1 commit into from
Jan 15, 2021

Conversation

jkwatson
Copy link
Contributor

  • one span per line
  • delineate the span name from the rest of the data

* one span per line
* delineate the span name from the rest of the data
@@ -25,13 +25,14 @@ public LoggingExporter(String prefix) {
public CompletableResultCode export(Collection<SpanData> list) {
StringBuilder stringBuilder = new StringBuilder();
for (SpanData span : list) {

stringBuilder.setLength(0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch, heh.

Are you interested in deleting this to switch to the SDK exporter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

anything that gets us one span per line would be good for me. ;)

@anuraaga anuraaga merged commit e6d9840 into open-telemetry:master Jan 15, 2021
@jkwatson jkwatson deleted the logging_exporter_tweaks branch January 19, 2021 23:51
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.

None yet

3 participants