Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

fix: improve logs from the trace writer#800

Merged
kjin merged 3 commits intogoogleapis:masterfrom
kjin:trace-writer-logs
Jul 18, 2018
Merged

fix: improve logs from the trace writer#800
kjin merged 3 commits intogoogleapis:masterfrom
kjin:trace-writer-logs

Conversation

@kjin
Copy link
Copy Markdown
Contributor

@kjin kjin commented Jul 16, 2018

Fixes #797

This PR adds hostnames to error messages coming from the Trace Writer. It also changes one error message to not print "status code unknown" (this is misleading because unknown actually means an error was thrown when making an outgoing request).

Other errors are forwarded from the @google-cloud/common module, so any additional changes to improve error messages would need to originate there.

cc/ @ahmetb

@kjin kjin requested a review from a team July 16, 2018 19:12
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 16, 2018
Comment thread src/trace-writer.ts Outdated
this.logger.error(`TraceWriter#publish: Received error ${
statusCode ?
`with status code ${statusCode}` :
''} while publishing traces to cloudtrace.googleapis.com: ${

This comment was marked as spam.

Copy link
Copy Markdown
Contributor

@ofrobots ofrobots left a comment

Choose a reason for hiding this comment

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

LGTM once nit is disposed.

@kjin kjin force-pushed the trace-writer-logs branch from 7ae6162 to 349c19d Compare July 18, 2018 18:48
@kjin kjin merged commit 4ac6ded into googleapis:master Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants