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

ZipkinReporter: add trace logging for batching and encoded spans #2739

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

idelpivnitskiy
Copy link
Member

Motivation:

In order to trace batching, trace level logging will be helpful.

Modifications:

  • Log every accumulation;
  • Log every received span/list after encoding;

Result:

Easier to troubleshoot if there are any issues.

Motivation:

In order to trace batching, trace level logging will be helpful.

Modifications:

- Log every accumulation;
- Log every received span/list after encoding;

Result:

Easier to troubleshoot if there are any issues.
.map(span -> {
// Always encode spans as list: https://github.com/apple/servicetalk/pull/2092
final byte[] bytes = spanEncoder.encodeList(Collections.singletonList(span));
LOGGER.trace("Encoded received span: {}, result={} bytes", span, bytes.length);
Copy link
Contributor

Choose a reason for hiding this comment

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

consider using the format key='value', helps with parsing to key-value strings for various formatters.

@idelpivnitskiy idelpivnitskiy merged commit 99ea1c5 into apple:main Nov 3, 2023
15 checks passed
@idelpivnitskiy idelpivnitskiy deleted the zipkin branch November 3, 2023 17:15
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.

3 participants