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

Display contents of label values of object type - #346

Merged
matthewloring merged 1 commit into
googleapis:masterfrom
matthewloring:label-object
Jan 14, 2017
Merged

matthewloring merged 1 commit into
googleapis:masterfrom
matthewloring:label-object

Conversation

@matthewloring

Copy link
Copy Markdown
Contributor

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 13, 2017
@matthewloring

Copy link
Copy Markdown
Contributor Author

PTAL.

Comment thread src/trace-span.js
*/
TraceSpan.prototype.setLabel = function(key, value) {
this.labels[key] = '' + value;
this.labels[key] = typeof value === 'object' ? util.inspect(value) : '' + value;

This comment was marked as spam.

This comment was marked as spam.

@ofrobots ofrobots left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

In the future it would be good to expose a inspect depth property that could be passed to util.inspect to allow people to customize how deep an inspection should happen.

@matthewloring
matthewloring merged commit d31798c into googleapis:master Jan 14, 2017
@matthewloring
matthewloring deleted the label-object branch January 14, 2017 00:09
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