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 — compute: fix autoscaler system test by stephenplusplus · Pull Request #1569 · googleapis/google-cloud-node

Conversation

@stephenplusplus

@stephenplusplus stephenplusplus commented Sep 6, 2016

Copy link
Copy Markdown
Contributor

Looks like some input handling may have been added to the Compute API upstream. We started getting this error this morning:

ApiError: Invalid value for field 'resource.autoscalingPolicy.minNumReplicas': '0'. The minimum number of instances must be at least 1 when maximum number of instances is greater than...(cutoff)

Fixed by setting minReplicas to 1.

Sorry, something went wrong.

Uh oh!

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

All reactions
@stephenplusplus
compute: fix autoscaler system test
f91f199
@stephenplusplus stephenplusplus added api: compute Issues related to the Compute Engine API. testing labels Sep 6, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 6, 2016
@callmehiphop
callmehiphop merged commit a744f26 into googleapis:master Sep 6, 2016
sofisl pushed a commit that referenced this pull request Nov 17, 2022
@stephenplusplus @callmehiphop
compute: fix autoscaler system test (#1569)
676e759
@sofisl sofisl mentioned this pull request Nov 17, 2022
migrate code from googleapis/nodejs-compute #3666
Merged
4 tasks
miguelvelezsa pushed a commit that referenced this pull request Jul 23, 2025
@release-please @sofisl @gcf-owl-bot
chore: release main (#1569)
a677b35
* chore: release main

* chore: release main

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* add lint

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Sofia Leon <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this pull request Feb 24, 2026
@yoshi-automation
build: switch to release-please release tagging (#1569)
6942654
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/966f2b32-a53f-4964-8f1b-96412cbe1b18/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

Source-Link: googleapis/synthtool@1563597
sofisl pushed a commit that referenced this pull request Feb 25, 2026
@shaffeeullah @gcf-owl-bot @ddelgrosso1
test: conformance testing for retries (#1566)
9757193
* feat: added library methods for conformance testing (#1553)

* feat: added library methods for conformance testing

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* fixed header

* responded to PR comment, addressed some TODOs

* resolved TODO

* removed functions that dont make requests

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* feat: add method mapping json file (#1569)

* feat: add method mapping json file

* add deleteResumableCache to mapping

* WIP: retry strategy runner code (#1567)

* feat: retry strategy runner code

* fixed license

* removed unused option

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* built out tests further, still doesnt work

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* built out more functionality

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* began refactor

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* moved functions

* refactored code

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Update libraryMethods.ts

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: fixed runtime errors. all the tests still fail, but they run now (#1591)

* fix: fixed runtime errors. all the tests still fail, but they run now

* 🦉 Updates from OwlBot

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>

* fix: exported functions

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* test: pull testbench docker image, kokoro presubmit conformance test … (#1590)

* test: pull testbench docker image, kokoro presubmit conformance test hooks

* use async function instead of explicit promise return

* move file to node12 directory

* fix file naming and linter issues

* fix: retry strategy bug fixes (#1594)

* bug fixes

* removed logs

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* some tests pass

* fixed some more tests

* saves file

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* uncommented functions

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* removed duplicate storage definition

* changed precondition options

* down to 7 failing tests!

* 🦉 Updates from OwlBot

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>

* feat: check that instructions were utilized in testbench (#1601)

* feat: check that instructions were utilized in testbench

* feedback

* fix: remove all files from bucket before delete (#1603)

* feat: move test creation and header set to beforeEach (#1605)

* feat: move test creation and header set to beforeEach

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Denis DelGrosso <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: create client for each test instead of globally (#1608)

* fix: remove bucketGet (#1610)

* fix: return promise from stream functions and resolve on end (#1612)

* fix: move createReadStream to correct mapping location (#1613)

* fix: remap bucket set storage class and bucket set metadata (#1615)

* fix: remap bucket set storage class

* fix: remap bucketSetMetadata

* fix: fixed bucketUploadMultipart (#1627)

* fix: fixed bucketUploadMultipart

* 🦉 Updates from OwlBot

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>

* fix: conformance test fixes for deleteFiles, fileDelete, and copy (#1636)

* fix: add copy to invocation map

* fix: fix deleteFiles and fileDelete conformance tests

* linter fixes

* fix: only send metageneration to bucket related tests (#1641)

* fix: remove tests for createWriteStream as the function is not retryable

* fix: only send metageneration to bucket related tests

* linter

* fix: set retention period before file creation (#1651)

* set retention period before file creation

* removed log statement

* removed log statement

* fix: set correct bucket precondition (#1653)

* fix: set correct bucket precondition

* Update retryStrategy.ts

* 🦉 Updates from OwlBot

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>

* fix: combine conformance test (#1656)

* fix: update test bucket (#1657)

* fix: combine conformance test

* fix: only return bucket with preconditions if the test says so

* 🦉 Updates from OwlBot

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>

* fix: fixed storage.objects.patch tests (#1658)

* fix: fixed storage.objects.patch tests

* 🦉 Updates from OwlBot

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>

* fix: refactor tests (#1659)

* fix: refactor tests

* 🦉 Updates from OwlBot

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>

* chore: build headers for isPublic from interceptors (#1665)

* chore: build headers for isPublic from interceptors

* simplify code

* tests: removed failing tests (internal issue b/203793664) (#1674)

* fix: add conformance project id (#1673)

* fix: add conformance test project id settting

* lint

* increase timeout for before hook

* specify correct host to docker port mapping

* add stop command for docker container

* chore: use import on json files instead of fs read (#1675)

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Denis DelGrosso <[email protected]>
Co-authored-by: Denis DelGrosso <[email protected]>
GautamSharda pushed a commit that referenced this pull request Mar 11, 2026
@release-please
chore(main): release 3.0.1 (#1569)
d8fae81
🤖 I have created a release *beep* *boop*
---


## [3.0.1](googleapis/nodejs-pubsub@v3.0.0...v3.0.1) (2022-05-30)


### Bug Fixes

* **deps:** update dependency @google-cloud/paginator to v4 ([#1565](googleapis/nodejs-pubsub#1565)) ([461b58b](googleapis/nodejs-pubsub@461b58b))
* detect subscription properties and warn for exactly-once ([#1561](googleapis/nodejs-pubsub#1561)) ([98cf540](googleapis/nodejs-pubsub@98cf540))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
sofisl added a commit that referenced this pull request Mar 17, 2026
@release-please @sofisl @gcf-owl-bot
chore: release main (#1569)
c8d23b7
* chore: release main

* chore: release main

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* add lint

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Sofia Leon <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this pull request Mar 17, 2026
@renovate-bot
chore(deps): update dependency @types/node to ^20.12.5 (#1569)
9d17caa
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`^20.12.4` -> `^20.12.5`](https://renovatebot.com/diffs/npm/@types%2fnode/20.12.4/20.12.5) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.12.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.12.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.12.4/20.12.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.12.4/20.12.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
thiyaguk09 pushed a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request Mar 18, 2026
@shaffeeullah @gcf-owl-bot @ddelgrosso1
test: conformance testing for retries (googleapis#1566)
055f2e7
* feat: added library methods for conformance testing (googleapis#1553)

* feat: added library methods for conformance testing

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* fixed header

* responded to PR comment, addressed some TODOs

* resolved TODO

* removed functions that dont make requests

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* feat: add method mapping json file (googleapis#1569)

* feat: add method mapping json file

* add deleteResumableCache to mapping

* WIP: retry strategy runner code (googleapis#1567)

* feat: retry strategy runner code

* fixed license

* removed unused option

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* built out tests further, still doesnt work

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* built out more functionality

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* began refactor

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* moved functions

* refactored code

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Update libraryMethods.ts

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: fixed runtime errors. all the tests still fail, but they run now (googleapis#1591)

* fix: fixed runtime errors. all the tests still fail, but they run now

* 🦉 Updates from OwlBot

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>

* fix: exported functions

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* test: pull testbench docker image, kokoro presubmit conformance test … (googleapis#1590)

* test: pull testbench docker image, kokoro presubmit conformance test hooks

* use async function instead of explicit promise return

* move file to node12 directory

* fix file naming and linter issues

* fix: retry strategy bug fixes (googleapis#1594)

* bug fixes

* removed logs

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* some tests pass

* fixed some more tests

* saves file

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* uncommented functions

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* removed duplicate storage definition

* changed precondition options

* down to 7 failing tests!

* 🦉 Updates from OwlBot

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>

* feat: check that instructions were utilized in testbench (googleapis#1601)

* feat: check that instructions were utilized in testbench

* feedback

* fix: remove all files from bucket before delete (googleapis#1603)

* feat: move test creation and header set to beforeEach (googleapis#1605)

* feat: move test creation and header set to beforeEach

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Denis DelGrosso <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: create client for each test instead of globally (googleapis#1608)

* fix: remove bucketGet (googleapis#1610)

* fix: return promise from stream functions and resolve on end (googleapis#1612)

* fix: move createReadStream to correct mapping location (googleapis#1613)

* fix: remap bucket set storage class and bucket set metadata (googleapis#1615)

* fix: remap bucket set storage class

* fix: remap bucketSetMetadata

* fix: fixed bucketUploadMultipart (googleapis#1627)

* fix: fixed bucketUploadMultipart

* 🦉 Updates from OwlBot

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>

* fix: conformance test fixes for deleteFiles, fileDelete, and copy (googleapis#1636)

* fix: add copy to invocation map

* fix: fix deleteFiles and fileDelete conformance tests

* linter fixes

* fix: only send metageneration to bucket related tests (googleapis#1641)

* fix: remove tests for createWriteStream as the function is not retryable

* fix: only send metageneration to bucket related tests

* linter

* fix: set retention period before file creation (googleapis#1651)

* set retention period before file creation

* removed log statement

* removed log statement

* fix: set correct bucket precondition (googleapis#1653)

* fix: set correct bucket precondition

* Update retryStrategy.ts

* 🦉 Updates from OwlBot

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>

* fix: combine conformance test (googleapis#1656)

* fix: update test bucket (googleapis#1657)

* fix: combine conformance test

* fix: only return bucket with preconditions if the test says so

* 🦉 Updates from OwlBot

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>

* fix: fixed storage.objects.patch tests (googleapis#1658)

* fix: fixed storage.objects.patch tests

* 🦉 Updates from OwlBot

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>

* fix: refactor tests (googleapis#1659)

* fix: refactor tests

* 🦉 Updates from OwlBot

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>

* chore: build headers for isPublic from interceptors (googleapis#1665)

* chore: build headers for isPublic from interceptors

* simplify code

* tests: removed failing tests (internal issue b/203793664) (googleapis#1674)

* fix: add conformance project id (googleapis#1673)

* fix: add conformance test project id settting

* lint

* increase timeout for before hook

* specify correct host to docker port mapping

* add stop command for docker container

* chore: use import on json files instead of fs read (googleapis#1675)

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Denis DelGrosso <[email protected]>
Co-authored-by: Denis DelGrosso <[email protected]>
GautamSharda pushed a commit that referenced this pull request Mar 23, 2026
@danieljbruce @gcf-owl-bot
feat: Add plumbing PR for client side metrics to support the open tel…
b9a13c6
…emetry instruments (#1569)

* Remove the TODOs

* Add line back

* Add comment

* Add version

* Add version to client side metrics

* linter

* Generate documentation for AttemptInfo interface

* Logger documentation

* Generate more documentation

* Generate documentation

* Make sure test reports correct duration, zone

cluster

* Generate documentation for the dimensions to strin

* Add version to the dimensions

* Fix the client name. The version is going to chan

* Update the expected output file.

* Fox bug, get cluster

* Add fake cluster to tests

* Remove console log

* Generate more documentation

* Require a call to fetch the project when using MT

* use same date provider for all metrics tracers

* In the metrics traceer, don’t fetch the project

for each call

* Remove only

* Add open telemetry api

* Add TestExecuteQuery_EmptyResponse to failures

* TestExecuteQuery_SingleSimpleRow known failures

* Fix syntax in known failures

* Add two tests to the known failures

* TestSampleRowKeys_Retry_WithRetryInfo to known fai

* Change word dimensions to attributes

* Change more docs to use Attributes instead of dim

* attributes

* Test should use attributes as string

* For Windows replace carriage return

* Update documentation with types

* Add metrics collector

* Metrics handler, GCPMetricsHandler and tests add

* Remove only

* Add metrics handlers parameter to Doc

* Don’t require retries to be passed into metrics

collector

* Remove testMeterProvider

* Remove the attributesToString function

* Eliminate unused class

* Generate documentation for the IMetricsHandler

* Generate documentation for GCPMetricsHandler

* Restrict attributes interfaces and solve compile

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* use undefined instead of null

* Introduce enums for allowable values

* Add more headers

* Remove only

* Use null to pass values around. Not undefined

* Modify test step

* Add metrics

* Don’t provide first response latency

* Remove firstResponseLatency from operation metrics

* Expose interface allowing undefined not null

* Better explanations for design decision inline

* Use attempt start time not operation start time

for firstResponseLatency

* Adjust tests for first response latency

* Remove TODO

* Use the MethodName enum instead of string

* Don’t use enum for streaming operation

* Remove copy/pasted comment

* Rename to OperationMetricsCollector

* Rename the method to getOperationAttributes

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Add aggregate views to the GCP metrics handler

* Adjust test based on enum changes

* Update the documentation to be more descriptive

* Add the state machine to the metrics collector

* Use grpc code to report attempt/operation status

* Remove parameters from JS Documentation

* Update interfaces and some metrics

- Introduce attributes interface for each metric.
- First latency should be recorded per operation not per attempt
- Update tests for firstResponseLatency change

* Documentation for all the different interfaces

* use operation start time as the benchmark

* Final operation status shouldn’t be included per a

* Move OnAttemptCompleteInfo

Remove unused imports too

* Provide AttemptOnlyAttributes in the only file

In the only file that it is needed

* Move over the OperationOnlyAttributes

* Adjust the guard so that it is earlier

* Adjust the test output file

Dates don’t get read for rows after the first row anymore.

* Change streaming back to STREAMING/UNARY

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Change metrics handler interface to support each metric

* Revert "Change metrics handler interface to support each metric"

This reverts commit 2781561f3791868855e0daf76d90d4f80736beca.

* Supply the projectId later in the client side

metrics lifecycle

* Remove the GCPMetricsHandler file

* Change location of the client-side-metrics-attribu

file

* Change common test utilities folder name

* Remove aliases for grpc status

* Should be MethodName type

* Rename variable as it expands beyond latency

* Remove private methods for building attributes

* Replace the logger class with a simple object

* Remove only

* Remove the logger classes

Replace them with a simpler object

* Add stubs

* Revert "Remove the GCPMetricsHandler file"

This reverts commit b6f130258101446a7fc65c02a36039184ad9d5ed.

* Add exporter and helper function

* Add headers and fixture

* Add milliseconds unit

* Record to a histogram

* Add necessary elements to the GCPMetricsHandler

# Conflicts:
#	src/client-side-metrics/gcp-metrics-handler.ts

* Pass an exporter into the GCPMetricsHandler

* Move file to tests

* Remove unused import

* Adapt the fixture to include the projectId

* More exporter code fixes

* Add the fixture. We are going to use it later

* Solved compiler errors. Test almost passes

* Address the failing export test

* Fixed the exporter. It now writes data properly.

* Test should complete when the export doesnt error

* Add the fixture to the shared folder

* Remove two files not in this PR

* delete empty file

* Remove files that are already in the other PR

* Remove the metrics handler fixture

* Use 3 metrics instead of 1

* Replace with proper buckets

* Change the metrics handler fixture

* Stop using stub in exporter

* Use more realistic buckets

* Remove the go request to export

* Modify the fixtures to be more realistic

* Change the mean

* Remove only

* Add the export input fixture

* Reducing export interval makes time complete

* Add the GCPMetricsHandler test

* Add a stub for the otel export

* Test calling export is now working

* Remove old unused code

* Change tests and json structure to work

with metricsCollectorData structure

* Update all the fixtures

* Fix the view creation code

Pass in latency buckets

* Starting test for gcp-metrics-handler

* Put tests in the proper places

* Replace start and end time with more recent values

* Utilize the new metrics handler interface

* Solve compiler errors resulting from metrics handl

* Update the fixture

* rewrite the metric to request method

* Add interfaces to work with type guards

* Correct the compile error problems

different metric types are under metrics not scope metrics

* Fix expected OTEL output test

* Remove TODOs

* Fix test to compare pointwise

* connectivity error count corrections

* Correct the fixtures

* Eliminate tests using the old export input fixture

* Add headers

* run linter

* Modify the gcp-metrics-handler and test the proces

end to end

* Remove only

* Use a fake projectId

* Only call export once

* Ensure test suite completes

* Remove shutdown

* remove async

* Don’t export the data twice

* Increase the timeout

* Use the PushMetricExporter interface

* Removed some interfaces that are not used anymore

* Update JSdoc

* Move fake start time and fake end time

* Remove the TODO

* Update documentation

* Add additional information to the error reported

* Move start time and end time

* Try to use timestamps in order

* Reduce timestamp delay

* Remove only

* Inline addFakeRecentTimestamps

* Move replace timestamps into the only file it

is used

* Fix comment

* Rename the metric types

* Generate documentation for the new classes

* Add documentation for monitored resource

* Generate documentation for the other metrics

* Generate documentation for the constructor

* Get documentation for replaceTimestamps, fixtures

* Reduce the interval time

* Make view list based on latencies

* Add a guard for count

* Invert the for and if

* Pull all attributes out

* Eliminate the need for the type guard

* Eliminate the data points interface

* only

* Revert "Eliminate the need for the type guard"

This reverts commit 791e70dcb71cbf067eac351da6f62ef438be3d5c.

* Pull timeseries into one variable

Solve the descriptor issue

* Eliminate an unused import

* Add a comment that explains the usefulness

of each metric attribute category

* Remove the gce instance setting

* Eliminate the gcp cloud provider setting

* run all tests

* Eliminate duplicate project id from monitored

resource

* Change the two metric names

* Extend the timeout so that the exporter has

chance to work

* Use spread syntax

* Changed metric to otel instruments

* Remove optional on Otel instruments

* Rename initialize to getMetrics

* Pin promisify to version 4

* cast to string - compiler errors

* Change the latency buckets

Adjust the test fixtures as well to account for the latency bucket change.

* Updated the resultCallback comment

* Change the test description

* Add a comment explaining what the test is about

* Completed the test for two metrics handlers

* remove only

* Cast as histogram to make compile error go away

* Move the duplicate copies of replaceTimestamps

into one file

* Take steps to eliminate the ExportInput interface

* Add a header

* Remove only

* Eliminate ExportInput and dependencies

* Eliminate constant

* Push conversion to status back to metrics collect

Also add if statement for timeseries.

* Change property names to match MetricServiceClient

expectation

* Solve the app_profile_id issue

* It is actually app_profile not app_profile_id

* Add guards that stop the export call

* Remove only

* Add a new test for ten metrics handlers

* Remove only

* Do not pass data through the Resource object

anymore

* Add a test for writing duplicate points to MH

* Eliminate interface

* Set connectivity error count to 1 (not increment)

* Latency improvement

serverTime and connectivityErrorCount should only be read once.

* Add latency optimizations and update fixtures

* Update fixtures with new latency measurements

The optimization means some code gets skipped therefore lower latency in the tests

* Check for first response latency first

* Break metricsToRequest down into smaller fns

* Refactor the metricToRequest function

* Rename interface

* Rename to getInstruments

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
GautamSharda pushed a commit that referenced this pull request Mar 25, 2026
@danieljbruce @gcf-owl-bot @GautamSharda
feat: Add plumbing PR for client side metrics to support the open tel…
eff2468
…emetry instruments (#1569)

* Remove the TODOs

* Add line back

* Add comment

* Add version

* Add version to client side metrics

* linter

* Generate documentation for AttemptInfo interface

* Logger documentation

* Generate more documentation

* Generate documentation

* Make sure test reports correct duration, zone

cluster

* Generate documentation for the dimensions to strin

* Add version to the dimensions

* Fix the client name. The version is going to chan

* Update the expected output file.

* Fox bug, get cluster

* Add fake cluster to tests

* Remove console log

* Generate more documentation

* Require a call to fetch the project when using MT

* use same date provider for all metrics tracers

* In the metrics traceer, don’t fetch the project

for each call

* Remove only

* Add open telemetry api

* Add TestExecuteQuery_EmptyResponse to failures

* TestExecuteQuery_SingleSimpleRow known failures

* Fix syntax in known failures

* Add two tests to the known failures

* TestSampleRowKeys_Retry_WithRetryInfo to known fai

* Change word dimensions to attributes

* Change more docs to use Attributes instead of dim

* attributes

* Test should use attributes as string

* For Windows replace carriage return

* Update documentation with types

* Add metrics collector

* Metrics handler, GCPMetricsHandler and tests add

* Remove only

* Add metrics handlers parameter to Doc

* Don’t require retries to be passed into metrics

collector

* Remove testMeterProvider

* Remove the attributesToString function

* Eliminate unused class

* Generate documentation for the IMetricsHandler

* Generate documentation for GCPMetricsHandler

* Restrict attributes interfaces and solve compile

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* use undefined instead of null

* Introduce enums for allowable values

* Add more headers

* Remove only

* Use null to pass values around. Not undefined

* Modify test step

* Add metrics

* Don’t provide first response latency

* Remove firstResponseLatency from operation metrics

* Expose interface allowing undefined not null

* Better explanations for design decision inline

* Use attempt start time not operation start time

for firstResponseLatency

* Adjust tests for first response latency

* Remove TODO

* Use the MethodName enum instead of string

* Don’t use enum for streaming operation

* Remove copy/pasted comment

* Rename to OperationMetricsCollector

* Rename the method to getOperationAttributes

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Add aggregate views to the GCP metrics handler

* Adjust test based on enum changes

* Update the documentation to be more descriptive

* Add the state machine to the metrics collector

* Use grpc code to report attempt/operation status

* Remove parameters from JS Documentation

* Update interfaces and some metrics

- Introduce attributes interface for each metric.
- First latency should be recorded per operation not per attempt
- Update tests for firstResponseLatency change

* Documentation for all the different interfaces

* use operation start time as the benchmark

* Final operation status shouldn’t be included per a

* Move OnAttemptCompleteInfo

Remove unused imports too

* Provide AttemptOnlyAttributes in the only file

In the only file that it is needed

* Move over the OperationOnlyAttributes

* Adjust the guard so that it is earlier

* Adjust the test output file

Dates don’t get read for rows after the first row anymore.

* Change streaming back to STREAMING/UNARY

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Change metrics handler interface to support each metric

* Revert "Change metrics handler interface to support each metric"

This reverts commit 2781561f3791868855e0daf76d90d4f80736beca.

* Supply the projectId later in the client side

metrics lifecycle

* Remove the GCPMetricsHandler file

* Change location of the client-side-metrics-attribu

file

* Change common test utilities folder name

* Remove aliases for grpc status

* Should be MethodName type

* Rename variable as it expands beyond latency

* Remove private methods for building attributes

* Replace the logger class with a simple object

* Remove only

* Remove the logger classes

Replace them with a simpler object

* Add stubs

* Revert "Remove the GCPMetricsHandler file"

This reverts commit b6f130258101446a7fc65c02a36039184ad9d5ed.

* Add exporter and helper function

* Add headers and fixture

* Add milliseconds unit

* Record to a histogram

* Add necessary elements to the GCPMetricsHandler

# Conflicts:
#	src/client-side-metrics/gcp-metrics-handler.ts

* Pass an exporter into the GCPMetricsHandler

* Move file to tests

* Remove unused import

* Adapt the fixture to include the projectId

* More exporter code fixes

* Add the fixture. We are going to use it later

* Solved compiler errors. Test almost passes

* Address the failing export test

* Fixed the exporter. It now writes data properly.

* Test should complete when the export doesnt error

* Add the fixture to the shared folder

* Remove two files not in this PR

* delete empty file

* Remove files that are already in the other PR

* Remove the metrics handler fixture

* Use 3 metrics instead of 1

* Replace with proper buckets

* Change the metrics handler fixture

* Stop using stub in exporter

* Use more realistic buckets

* Remove the go request to export

* Modify the fixtures to be more realistic

* Change the mean

* Remove only

* Add the export input fixture

* Reducing export interval makes time complete

* Add the GCPMetricsHandler test

* Add a stub for the otel export

* Test calling export is now working

* Remove old unused code

* Change tests and json structure to work

with metricsCollectorData structure

* Update all the fixtures

* Fix the view creation code

Pass in latency buckets

* Starting test for gcp-metrics-handler

* Put tests in the proper places

* Replace start and end time with more recent values

* Utilize the new metrics handler interface

* Solve compiler errors resulting from metrics handl

* Update the fixture

* rewrite the metric to request method

* Add interfaces to work with type guards

* Correct the compile error problems

different metric types are under metrics not scope metrics

* Fix expected OTEL output test

* Remove TODOs

* Fix test to compare pointwise

* connectivity error count corrections

* Correct the fixtures

* Eliminate tests using the old export input fixture

* Add headers

* run linter

* Modify the gcp-metrics-handler and test the proces

end to end

* Remove only

* Use a fake projectId

* Only call export once

* Ensure test suite completes

* Remove shutdown

* remove async

* Don’t export the data twice

* Increase the timeout

* Use the PushMetricExporter interface

* Removed some interfaces that are not used anymore

* Update JSdoc

* Move fake start time and fake end time

* Remove the TODO

* Update documentation

* Add additional information to the error reported

* Move start time and end time

* Try to use timestamps in order

* Reduce timestamp delay

* Remove only

* Inline addFakeRecentTimestamps

* Move replace timestamps into the only file it

is used

* Fix comment

* Rename the metric types

* Generate documentation for the new classes

* Add documentation for monitored resource

* Generate documentation for the other metrics

* Generate documentation for the constructor

* Get documentation for replaceTimestamps, fixtures

* Reduce the interval time

* Make view list based on latencies

* Add a guard for count

* Invert the for and if

* Pull all attributes out

* Eliminate the need for the type guard

* Eliminate the data points interface

* only

* Revert "Eliminate the need for the type guard"

This reverts commit 791e70dcb71cbf067eac351da6f62ef438be3d5c.

* Pull timeseries into one variable

Solve the descriptor issue

* Eliminate an unused import

* Add a comment that explains the usefulness

of each metric attribute category

* Remove the gce instance setting

* Eliminate the gcp cloud provider setting

* run all tests

* Eliminate duplicate project id from monitored

resource

* Change the two metric names

* Extend the timeout so that the exporter has

chance to work

* Use spread syntax

* Changed metric to otel instruments

* Remove optional on Otel instruments

* Rename initialize to getMetrics

* Pin promisify to version 4

* cast to string - compiler errors

* Change the latency buckets

Adjust the test fixtures as well to account for the latency bucket change.

* Updated the resultCallback comment

* Change the test description

* Add a comment explaining what the test is about

* Completed the test for two metrics handlers

* remove only

* Cast as histogram to make compile error go away

* Move the duplicate copies of replaceTimestamps

into one file

* Take steps to eliminate the ExportInput interface

* Add a header

* Remove only

* Eliminate ExportInput and dependencies

* Eliminate constant

* Push conversion to status back to metrics collect

Also add if statement for timeseries.

* Change property names to match MetricServiceClient

expectation

* Solve the app_profile_id issue

* It is actually app_profile not app_profile_id

* Add guards that stop the export call

* Remove only

* Add a new test for ten metrics handlers

* Remove only

* Do not pass data through the Resource object

anymore

* Add a test for writing duplicate points to MH

* Eliminate interface

* Set connectivity error count to 1 (not increment)

* Latency improvement

serverTime and connectivityErrorCount should only be read once.

* Add latency optimizations and update fixtures

* Update fixtures with new latency measurements

The optimization means some code gets skipped therefore lower latency in the tests

* Check for first response latency first

* Break metricsToRequest down into smaller fns

* Refactor the metricToRequest function

* Rename interface

* Rename to getInstruments

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@release-please release-please Bot mentioned this pull request Mar 26, 2026
chore(main): release bigtable 3.2.3 #7899
Closed
feywind pushed a commit that referenced this pull request Mar 27, 2026
@release-please
chore(main): release 3.0.1 (#1569)
45fcc1a
🤖 I have created a release *beep* *boop*
---


## [3.0.1](googleapis/nodejs-pubsub@v3.0.0...v3.0.1) (2022-05-30)


### Bug Fixes

* **deps:** update dependency @google-cloud/paginator to v4 ([#1565](googleapis/nodejs-pubsub#1565)) ([461b58b](googleapis/nodejs-pubsub@461b58b))
* detect subscription properties and warn for exactly-once ([#1561](googleapis/nodejs-pubsub#1561)) ([98cf540](googleapis/nodejs-pubsub@98cf540))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
shivanee-p pushed a commit that referenced this pull request Mar 27, 2026
@danieljbruce @gcf-owl-bot @shivanee-p
feat: Add plumbing PR for client side metrics to support the open tel…
3a0faf5
…emetry instruments (#1569)

* Remove the TODOs

* Add line back

* Add comment

* Add version

* Add version to client side metrics

* linter

* Generate documentation for AttemptInfo interface

* Logger documentation

* Generate more documentation

* Generate documentation

* Make sure test reports correct duration, zone

cluster

* Generate documentation for the dimensions to strin

* Add version to the dimensions

* Fix the client name. The version is going to chan

* Update the expected output file.

* Fox bug, get cluster

* Add fake cluster to tests

* Remove console log

* Generate more documentation

* Require a call to fetch the project when using MT

* use same date provider for all metrics tracers

* In the metrics traceer, don’t fetch the project

for each call

* Remove only

* Add open telemetry api

* Add TestExecuteQuery_EmptyResponse to failures

* TestExecuteQuery_SingleSimpleRow known failures

* Fix syntax in known failures

* Add two tests to the known failures

* TestSampleRowKeys_Retry_WithRetryInfo to known fai

* Change word dimensions to attributes

* Change more docs to use Attributes instead of dim

* attributes

* Test should use attributes as string

* For Windows replace carriage return

* Update documentation with types

* Add metrics collector

* Metrics handler, GCPMetricsHandler and tests add

* Remove only

* Add metrics handlers parameter to Doc

* Don’t require retries to be passed into metrics

collector

* Remove testMeterProvider

* Remove the attributesToString function

* Eliminate unused class

* Generate documentation for the IMetricsHandler

* Generate documentation for GCPMetricsHandler

* Restrict attributes interfaces and solve compile

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* use undefined instead of null

* Introduce enums for allowable values

* Add more headers

* Remove only

* Use null to pass values around. Not undefined

* Modify test step

* Add metrics

* Don’t provide first response latency

* Remove firstResponseLatency from operation metrics

* Expose interface allowing undefined not null

* Better explanations for design decision inline

* Use attempt start time not operation start time

for firstResponseLatency

* Adjust tests for first response latency

* Remove TODO

* Use the MethodName enum instead of string

* Don’t use enum for streaming operation

* Remove copy/pasted comment

* Rename to OperationMetricsCollector

* Rename the method to getOperationAttributes

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Add aggregate views to the GCP metrics handler

* Adjust test based on enum changes

* Update the documentation to be more descriptive

* Add the state machine to the metrics collector

* Use grpc code to report attempt/operation status

* Remove parameters from JS Documentation

* Update interfaces and some metrics

- Introduce attributes interface for each metric.
- First latency should be recorded per operation not per attempt
- Update tests for firstResponseLatency change

* Documentation for all the different interfaces

* use operation start time as the benchmark

* Final operation status shouldn’t be included per a

* Move OnAttemptCompleteInfo

Remove unused imports too

* Provide AttemptOnlyAttributes in the only file

In the only file that it is needed

* Move over the OperationOnlyAttributes

* Adjust the guard so that it is earlier

* Adjust the test output file

Dates don’t get read for rows after the first row anymore.

* Change streaming back to STREAMING/UNARY

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Change metrics handler interface to support each metric

* Revert "Change metrics handler interface to support each metric"

This reverts commit 2781561f3791868855e0daf76d90d4f80736beca.

* Supply the projectId later in the client side

metrics lifecycle

* Remove the GCPMetricsHandler file

* Change location of the client-side-metrics-attribu

file

* Change common test utilities folder name

* Remove aliases for grpc status

* Should be MethodName type

* Rename variable as it expands beyond latency

* Remove private methods for building attributes

* Replace the logger class with a simple object

* Remove only

* Remove the logger classes

Replace them with a simpler object

* Add stubs

* Revert "Remove the GCPMetricsHandler file"

This reverts commit b6f130258101446a7fc65c02a36039184ad9d5ed.

* Add exporter and helper function

* Add headers and fixture

* Add milliseconds unit

* Record to a histogram

* Add necessary elements to the GCPMetricsHandler

# Conflicts:
#	src/client-side-metrics/gcp-metrics-handler.ts

* Pass an exporter into the GCPMetricsHandler

* Move file to tests

* Remove unused import

* Adapt the fixture to include the projectId

* More exporter code fixes

* Add the fixture. We are going to use it later

* Solved compiler errors. Test almost passes

* Address the failing export test

* Fixed the exporter. It now writes data properly.

* Test should complete when the export doesnt error

* Add the fixture to the shared folder

* Remove two files not in this PR

* delete empty file

* Remove files that are already in the other PR

* Remove the metrics handler fixture

* Use 3 metrics instead of 1

* Replace with proper buckets

* Change the metrics handler fixture

* Stop using stub in exporter

* Use more realistic buckets

* Remove the go request to export

* Modify the fixtures to be more realistic

* Change the mean

* Remove only

* Add the export input fixture

* Reducing export interval makes time complete

* Add the GCPMetricsHandler test

* Add a stub for the otel export

* Test calling export is now working

* Remove old unused code

* Change tests and json structure to work

with metricsCollectorData structure

* Update all the fixtures

* Fix the view creation code

Pass in latency buckets

* Starting test for gcp-metrics-handler

* Put tests in the proper places

* Replace start and end time with more recent values

* Utilize the new metrics handler interface

* Solve compiler errors resulting from metrics handl

* Update the fixture

* rewrite the metric to request method

* Add interfaces to work with type guards

* Correct the compile error problems

different metric types are under metrics not scope metrics

* Fix expected OTEL output test

* Remove TODOs

* Fix test to compare pointwise

* connectivity error count corrections

* Correct the fixtures

* Eliminate tests using the old export input fixture

* Add headers

* run linter

* Modify the gcp-metrics-handler and test the proces

end to end

* Remove only

* Use a fake projectId

* Only call export once

* Ensure test suite completes

* Remove shutdown

* remove async

* Don’t export the data twice

* Increase the timeout

* Use the PushMetricExporter interface

* Removed some interfaces that are not used anymore

* Update JSdoc

* Move fake start time and fake end time

* Remove the TODO

* Update documentation

* Add additional information to the error reported

* Move start time and end time

* Try to use timestamps in order

* Reduce timestamp delay

* Remove only

* Inline addFakeRecentTimestamps

* Move replace timestamps into the only file it

is used

* Fix comment

* Rename the metric types

* Generate documentation for the new classes

* Add documentation for monitored resource

* Generate documentation for the other metrics

* Generate documentation for the constructor

* Get documentation for replaceTimestamps, fixtures

* Reduce the interval time

* Make view list based on latencies

* Add a guard for count

* Invert the for and if

* Pull all attributes out

* Eliminate the need for the type guard

* Eliminate the data points interface

* only

* Revert "Eliminate the need for the type guard"

This reverts commit 791e70dcb71cbf067eac351da6f62ef438be3d5c.

* Pull timeseries into one variable

Solve the descriptor issue

* Eliminate an unused import

* Add a comment that explains the usefulness

of each metric attribute category

* Remove the gce instance setting

* Eliminate the gcp cloud provider setting

* run all tests

* Eliminate duplicate project id from monitored

resource

* Change the two metric names

* Extend the timeout so that the exporter has

chance to work

* Use spread syntax

* Changed metric to otel instruments

* Remove optional on Otel instruments

* Rename initialize to getMetrics

* Pin promisify to version 4

* cast to string - compiler errors

* Change the latency buckets

Adjust the test fixtures as well to account for the latency bucket change.

* Updated the resultCallback comment

* Change the test description

* Add a comment explaining what the test is about

* Completed the test for two metrics handlers

* remove only

* Cast as histogram to make compile error go away

* Move the duplicate copies of replaceTimestamps

into one file

* Take steps to eliminate the ExportInput interface

* Add a header

* Remove only

* Eliminate ExportInput and dependencies

* Eliminate constant

* Push conversion to status back to metrics collect

Also add if statement for timeseries.

* Change property names to match MetricServiceClient

expectation

* Solve the app_profile_id issue

* It is actually app_profile not app_profile_id

* Add guards that stop the export call

* Remove only

* Add a new test for ten metrics handlers

* Remove only

* Do not pass data through the Resource object

anymore

* Add a test for writing duplicate points to MH

* Eliminate interface

* Set connectivity error count to 1 (not increment)

* Latency improvement

serverTime and connectivityErrorCount should only be read once.

* Add latency optimizations and update fixtures

* Update fixtures with new latency measurements

The optimization means some code gets skipped therefore lower latency in the tests

* Check for first response latency first

* Break metricsToRequest down into smaller fns

* Refactor the metricToRequest function

* Rename interface

* Rename to getInstruments

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
thiyaguk09 pushed a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request May 5, 2026
@danieljbruce @gcf-owl-bot @thiyaguk09
feat: Add plumbing PR for client side metrics to support the open tel…
433ba45
…emetry instruments (googleapis#1569)

* Remove the TODOs

* Add line back

* Add comment

* Add version

* Add version to client side metrics

* linter

* Generate documentation for AttemptInfo interface

* Logger documentation

* Generate more documentation

* Generate documentation

* Make sure test reports correct duration, zone

cluster

* Generate documentation for the dimensions to strin

* Add version to the dimensions

* Fix the client name. The version is going to chan

* Update the expected output file.

* Fox bug, get cluster

* Add fake cluster to tests

* Remove console log

* Generate more documentation

* Require a call to fetch the project when using MT

* use same date provider for all metrics tracers

* In the metrics traceer, don’t fetch the project

for each call

* Remove only

* Add open telemetry api

* Add TestExecuteQuery_EmptyResponse to failures

* TestExecuteQuery_SingleSimpleRow known failures

* Fix syntax in known failures

* Add two tests to the known failures

* TestSampleRowKeys_Retry_WithRetryInfo to known fai

* Change word dimensions to attributes

* Change more docs to use Attributes instead of dim

* attributes

* Test should use attributes as string

* For Windows replace carriage return

* Update documentation with types

* Add metrics collector

* Metrics handler, GCPMetricsHandler and tests add

* Remove only

* Add metrics handlers parameter to Doc

* Don’t require retries to be passed into metrics

collector

* Remove testMeterProvider

* Remove the attributesToString function

* Eliminate unused class

* Generate documentation for the IMetricsHandler

* Generate documentation for GCPMetricsHandler

* Restrict attributes interfaces and solve compile

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* use undefined instead of null

* Introduce enums for allowable values

* Add more headers

* Remove only

* Use null to pass values around. Not undefined

* Modify test step

* Add metrics

* Don’t provide first response latency

* Remove firstResponseLatency from operation metrics

* Expose interface allowing undefined not null

* Better explanations for design decision inline

* Use attempt start time not operation start time

for firstResponseLatency

* Adjust tests for first response latency

* Remove TODO

* Use the MethodName enum instead of string

* Don’t use enum for streaming operation

* Remove copy/pasted comment

* Rename to OperationMetricsCollector

* Rename the method to getOperationAttributes

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Add aggregate views to the GCP metrics handler

* Adjust test based on enum changes

* Update the documentation to be more descriptive

* Add the state machine to the metrics collector

* Use grpc code to report attempt/operation status

* Remove parameters from JS Documentation

* Update interfaces and some metrics

- Introduce attributes interface for each metric.
- First latency should be recorded per operation not per attempt
- Update tests for firstResponseLatency change

* Documentation for all the different interfaces

* use operation start time as the benchmark

* Final operation status shouldn’t be included per a

* Move OnAttemptCompleteInfo

Remove unused imports too

* Provide AttemptOnlyAttributes in the only file

In the only file that it is needed

* Move over the OperationOnlyAttributes

* Adjust the guard so that it is earlier

* Adjust the test output file

Dates don’t get read for rows after the first row anymore.

* Change streaming back to STREAMING/UNARY

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Change metrics handler interface to support each metric

* Revert "Change metrics handler interface to support each metric"

This reverts commit 2781561f3791868855e0daf76d90d4f80736beca.

* Supply the projectId later in the client side

metrics lifecycle

* Remove the GCPMetricsHandler file

* Change location of the client-side-metrics-attribu

file

* Change common test utilities folder name

* Remove aliases for grpc status

* Should be MethodName type

* Rename variable as it expands beyond latency

* Remove private methods for building attributes

* Replace the logger class with a simple object

* Remove only

* Remove the logger classes

Replace them with a simpler object

* Add stubs

* Revert "Remove the GCPMetricsHandler file"

This reverts commit b6f130258101446a7fc65c02a36039184ad9d5ed.

* Add exporter and helper function

* Add headers and fixture

* Add milliseconds unit

* Record to a histogram

* Add necessary elements to the GCPMetricsHandler

# Conflicts:
#	src/client-side-metrics/gcp-metrics-handler.ts

* Pass an exporter into the GCPMetricsHandler

* Move file to tests

* Remove unused import

* Adapt the fixture to include the projectId

* More exporter code fixes

* Add the fixture. We are going to use it later

* Solved compiler errors. Test almost passes

* Address the failing export test

* Fixed the exporter. It now writes data properly.

* Test should complete when the export doesnt error

* Add the fixture to the shared folder

* Remove two files not in this PR

* delete empty file

* Remove files that are already in the other PR

* Remove the metrics handler fixture

* Use 3 metrics instead of 1

* Replace with proper buckets

* Change the metrics handler fixture

* Stop using stub in exporter

* Use more realistic buckets

* Remove the go request to export

* Modify the fixtures to be more realistic

* Change the mean

* Remove only

* Add the export input fixture

* Reducing export interval makes time complete

* Add the GCPMetricsHandler test

* Add a stub for the otel export

* Test calling export is now working

* Remove old unused code

* Change tests and json structure to work

with metricsCollectorData structure

* Update all the fixtures

* Fix the view creation code

Pass in latency buckets

* Starting test for gcp-metrics-handler

* Put tests in the proper places

* Replace start and end time with more recent values

* Utilize the new metrics handler interface

* Solve compiler errors resulting from metrics handl

* Update the fixture

* rewrite the metric to request method

* Add interfaces to work with type guards

* Correct the compile error problems

different metric types are under metrics not scope metrics

* Fix expected OTEL output test

* Remove TODOs

* Fix test to compare pointwise

* connectivity error count corrections

* Correct the fixtures

* Eliminate tests using the old export input fixture

* Add headers

* run linter

* Modify the gcp-metrics-handler and test the proces

end to end

* Remove only

* Use a fake projectId

* Only call export once

* Ensure test suite completes

* Remove shutdown

* remove async

* Don’t export the data twice

* Increase the timeout

* Use the PushMetricExporter interface

* Removed some interfaces that are not used anymore

* Update JSdoc

* Move fake start time and fake end time

* Remove the TODO

* Update documentation

* Add additional information to the error reported

* Move start time and end time

* Try to use timestamps in order

* Reduce timestamp delay

* Remove only

* Inline addFakeRecentTimestamps

* Move replace timestamps into the only file it

is used

* Fix comment

* Rename the metric types

* Generate documentation for the new classes

* Add documentation for monitored resource

* Generate documentation for the other metrics

* Generate documentation for the constructor

* Get documentation for replaceTimestamps, fixtures

* Reduce the interval time

* Make view list based on latencies

* Add a guard for count

* Invert the for and if

* Pull all attributes out

* Eliminate the need for the type guard

* Eliminate the data points interface

* only

* Revert "Eliminate the need for the type guard"

This reverts commit 791e70dcb71cbf067eac351da6f62ef438be3d5c.

* Pull timeseries into one variable

Solve the descriptor issue

* Eliminate an unused import

* Add a comment that explains the usefulness

of each metric attribute category

* Remove the gce instance setting

* Eliminate the gcp cloud provider setting

* run all tests

* Eliminate duplicate project id from monitored

resource

* Change the two metric names

* Extend the timeout so that the exporter has

chance to work

* Use spread syntax

* Changed metric to otel instruments

* Remove optional on Otel instruments

* Rename initialize to getMetrics

* Pin promisify to version 4

* cast to string - compiler errors

* Change the latency buckets

Adjust the test fixtures as well to account for the latency bucket change.

* Updated the resultCallback comment

* Change the test description

* Add a comment explaining what the test is about

* Completed the test for two metrics handlers

* remove only

* Cast as histogram to make compile error go away

* Move the duplicate copies of replaceTimestamps

into one file

* Take steps to eliminate the ExportInput interface

* Add a header

* Remove only

* Eliminate ExportInput and dependencies

* Eliminate constant

* Push conversion to status back to metrics collect

Also add if statement for timeseries.

* Change property names to match MetricServiceClient

expectation

* Solve the app_profile_id issue

* It is actually app_profile not app_profile_id

* Add guards that stop the export call

* Remove only

* Add a new test for ten metrics handlers

* Remove only

* Do not pass data through the Resource object

anymore

* Add a test for writing duplicate points to MH

* Eliminate interface

* Set connectivity error count to 1 (not increment)

* Latency improvement

serverTime and connectivityErrorCount should only be read once.

* Add latency optimizations and update fixtures

* Update fixtures with new latency measurements

The optimization means some code gets skipped therefore lower latency in the tests

* Check for first response latency first

* Break metricsToRequest down into smaller fns

* Refactor the metricToRequest function

* Rename interface

* Rename to getInstruments

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@jskeet jskeet mentioned this pull request May 19, 2026
chore(test-release-please): release 1.0.0 #8308
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

api: compute Issues related to the Compute Engine API. cla: yes This human has signed the Contributor License Agreement.

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.

3 participants

@stephenplusplus @callmehiphop @googlebot
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.