GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — logging-winston: metadata serialization by ofrobots · Pull Request #2288 · googleapis/google-cloud-node

Conversation

@ofrobots

@ofrobots ofrobots commented May 10, 2017

Copy link
Copy Markdown
Contributor

This is a semver-major change that modifies how we serialize winston
provided log metadata. Since util.inspect behaviour is quite variable
between node releases, this used to give us different behaviour
depending on node version.

The choice to go with util.inspect was motivated by trying to match
the document for the built-in winston transports. It turns out that the
docs weren't quite precise and inspect isn't the default behaviour
anyway.

Previously we attached metadata as string labels. We now attach
metadata as a metadata property on the payload. If the config flag
options.inspectMetadata is provided, we will use util.inspect to
stringify.

We no longer use labels in either case.

Fixes: #2218

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 10, 2017
@ofrobots
ofrobots force-pushed the winston-inspect branch from 2b7b9ed to 4fb6c8f Compare May 10, 2017 01:03
@coveralls

coveralls commented May 10, 2017

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.0002%) to 99.513% when pulling 4fb6c8f on ofrobots:winston-inspect into 890c2fa on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ofrobots
ofrobots requested a review from stephenplusplus May 11, 2017 04:12
@stephenplusplus stephenplusplus added the api: logging-winston label May 11, 2017
@googlebot

googlebot commented May 11, 2017

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@googlebot googlebot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels May 11, 2017
ofrobots and others added 2 commits May 11, 2017 12:20
@ofrobots @stephenplusplus
logging-winston: metadata serialization
0bcd810
This is a semver-major change that modifies how we serialize winston
provided log metadata. Since `util.inspect` behaviour is quite variable
between node releases, this used to give us different behaviour
depending on node version.

The choice to go with `util.inspect` was motivated by trying to match
the document for the built-in winston transports. It turns out that the
docs weren't quite precise and inspect isn't the default behaviour
anyway.

Previously we attached metadata as string labels. We now attach
metadata as a `metadata` property on the payload. If the config flag
`options.inspectMetadata` is provided, we will use `util.inspect` to
stringify.

We no longer use labels in either case.

Fixes: googleapis#2218
@stephenplusplus
style
745318c
@stephenplusplus
stephenplusplus force-pushed the winston-inspect branch from 85949f1 to 745318c Compare May 11, 2017 16:20
@googlebot

googlebot commented May 11, 2017

Copy link
Copy Markdown

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of the commit author(s) and merge this pull request when appropriate.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented May 11, 2017

Copy link
Copy Markdown
Contributor

Thanks @ofrobots. I made a few style changes. If CI is happy, I'll merge after. Would you like a release to immediately follow that?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

stephenplusplus
stephenplusplus reviewed May 11, 2017
View reviewed changes
Comment thread packages/logging-winston/test/index.js
});
});

it('should default to logging.write scope', function() {

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus stephenplusplus removed the cla: no This human has *not* signed the Contributor License Agreement. label May 11, 2017
@coveralls

coveralls commented May 11, 2017

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 745318c on ofrobots:winston-inspect into ** on GoogleCloudPlatform:master**.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus
stephenplusplus merged commit 3856117 into googleapis:master May 11, 2017
GautamSharda pushed a commit that referenced this pull request Jan 14, 2026
@ofrobots @stephenplusplus
logging-winston: metadata serialization (#2288)
929446e
GautamSharda pushed a commit that referenced this pull request Jan 20, 2026
@ofrobots @stephenplusplus
logging-winston: metadata serialization (#2288)
9d0da27
@GautamSharda GautamSharda mentioned this pull request Jan 21, 2026
chore: migrate code from googleapis/nodejs-logging-winston #7024
Closed
4 tasks
@GautamSharda GautamSharda mentioned this pull request Feb 2, 2026
migrate code from googleapis/nodejs-logging-winston #7082
Closed
GautamSharda pushed a commit that referenced this pull request Feb 3, 2026
@ofrobots @stephenplusplus
logging-winston: metadata serialization (#2288)
e4495d5
@GautamSharda GautamSharda mentioned this pull request Feb 3, 2026
migrate code from googleapis/nodejs-logging-winston #7129
Merged
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@stephenplusplus stephenplusplus stephenplusplus left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: logging-winston

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@ofrobots @coveralls @googlebot @stephenplusplus
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.