GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — logging: change resource argument to metadata by stephenplusplus · Pull Request #1666 · googleapis/google-cloud-node Conversation
Contributor
Fixes #1348 Beforevar resource = { type: 'gce_instance', labels: { zone: 'global', instance_id: '3' } } var entry = log.entry(resource, data) entry.otherMetadataProperty = '...' // <- not documented this way, because it wasn't intended to be done this way Aftervar metadata = { otherMetadataProperty: '...', // <- logical place for this resource: { type: 'gce_instance', labels: { zone: 'global', instance_id: '3' } } } var entry = log.entry(metadata, data)
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
@zbjornson mind taking a quick look? Thanks for the idea! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * | ||
| * @param {object=|string=} resource - See a | ||
| * @param {object=} metadata - See a | ||
| * [Monitored Resource](https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/MonitoredResource). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * | ||
| * @param {object=|string=} resource - See a | ||
| * @param {object=} metadata - See a | ||
| * [Monitored Resource](https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/MonitoredResource). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Don't have enough time to try it out at the moment, but the API and quick glance at the code look good. Thanks! Let me know if you want me to test before merging, but it looks straightforward enough. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
4a03638 to
f880a9f
Compare
|
Can we add some system tests for this? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
f880a9f to
2e3f9b7
Compare
|
Yes, good idea. Added! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for the fix. Do you know what version this will come out in -- 0.42.0 or 0.41.3? It's a breaking change and I need to update a dependency accordingly. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
RE: the comment on mlazarov/bunyan-stackdriver#6, we do follow semver. It'll be 0.42.0, although we're backed up for a while (3-7 days) trying to get promises in. It'll also release independently in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks.
Er, right -- I guess because it's pre-1.0.0 breaking changes are allowed. :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Pre-1.0, a minor bump signals a breaking change. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* fix: do not use src precondition options in copy. * add new line
🤖 I have created a release \*beep\* \*boop\* --- ### [5.15.3](https://www.github.com/googleapis/nodejs-storage/compare/v5.15.2...v5.15.3) (2021-10-14) ### Bug Fixes * do not use src precondition options in copy. ([#1666](https://www.github.com/googleapis/nodejs-storage/issues/1666)) ([678ae77](https://www.github.com/googleapis/nodejs-storage/commit/678ae77dfb2c1eb2272734f34315b4d0ec726076)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
* samples: work in progress on sample conversion to TS * chore: Enable requesting numeric enums in "transport=rest" responses for services supporting this (Java, Go, Python, PHP, TypeScript, C#, and Ruby), even if they do not yet turn on REST transport (#1663) * chore: Enable requesting numeric enums in "transport=rest" responses for services supporting this (Java, Go, Python, PHP, TypeScript, C#, and Ruby), even if they do not yet turn on REST transport chore: disallow "transport=rest" for services where numeric enums are not confirmed to be supported (except in PHP and Java) PiperOrigin-RevId: 493113566 Source-Link: googleapis/googleapis@758f0d1 Source-Link: googleapis/googleapis-gen@78bd8f0 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzhiZDhmMDVlMTI3NjM2M2ViMTRlYWU3MGU5MWZlNGJjMjA3MDNhYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Megan Potter <[email protected]> * build: use typeless bot 1.2.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * build: also run fix before README generation * samples: add missing validateSchema.ts, and fix copyright dates in setTopicPolicy * build: use hermetic version of gts for owlbot * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * samples: update copyright * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * samples: manually update validateSchema since it's not technically sample snippet * chore: update typeless bot version * chore: linting updates * samples: update module export method for resumePublish.ts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
* fix: do not use src precondition options in copy. * add new line
🤖 I have created a release \*beep\* \*boop\* --- ### [5.15.3](https://www.github.com/googleapis/nodejs-storage/compare/v5.15.2...v5.15.3) (2021-10-14) ### Bug Fixes * do not use src precondition options in copy. ([googleapis#1666](https://www.github.com/googleapis/nodejs-storage/issues/1666)) ([149c30f](https://www.github.com/googleapis/nodejs-storage/commit/149c30ffe939d7068e17e3535075e1f8f350efa5)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
* samples: work in progress on sample conversion to TS * chore: Enable requesting numeric enums in "transport=rest" responses for services supporting this (Java, Go, Python, PHP, TypeScript, C#, and Ruby), even if they do not yet turn on REST transport (#1663) * chore: Enable requesting numeric enums in "transport=rest" responses for services supporting this (Java, Go, Python, PHP, TypeScript, C#, and Ruby), even if they do not yet turn on REST transport chore: disallow "transport=rest" for services where numeric enums are not confirmed to be supported (except in PHP and Java) PiperOrigin-RevId: 493113566 Source-Link: googleapis/googleapis@758f0d1 Source-Link: googleapis/googleapis-gen@78bd8f0 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzhiZDhmMDVlMTI3NjM2M2ViMTRlYWU3MGU5MWZlNGJjMjA3MDNhYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Megan Potter <[email protected]> * build: use typeless bot 1.2.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * build: also run fix before README generation * samples: add missing validateSchema.ts, and fix copyright dates in setTopicPolicy * build: use hermetic version of gts for owlbot * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * samples: update copyright * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * samples: manually update validateSchema since it's not technically sample snippet * chore: update typeless bot version * chore: linting updates * samples: update module export method for resumePublish.ts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.