-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(monitoring-exporter): add disableCreateMetricDescriptors option to skip checking for metric descriptor existence #623
Conversation
Merge all new changes from the official Google repository.
This change creates an option to skip checking if metric descriptors exist before sending metrics. Skipping the metric descriptor check can prevent the clients from getting rate limited by Google when a large number are all started at the same time.
packages/opentelemetry-cloud-monitoring-exporter/test/monitoring.test.ts
Show resolved
Hide resolved
packages/opentelemetry-cloud-monitoring-exporter/src/monitoring.ts
Outdated
Show resolved
Hide resolved
packages/opentelemetry-cloud-monitoring-exporter/src/external-types.ts
Outdated
Show resolved
Hide resolved
/gcbrun |
packages/opentelemetry-cloud-monitoring-exporter/src/external-types.ts
Outdated
Show resolved
Hide resolved
/gcbrun |
/gcbrun |
CI is broken, I'll fix it |
I fixed the build, can you merge main in? Should be good to go then |
/gcbrun |
Codecov Report
@@ Coverage Diff @@
## main #623 +/- ##
=======================================
Coverage 97.68% 97.69%
=======================================
Files 18 18
Lines 691 693 +2
Branches 127 129 +2
=======================================
+ Hits 675 677 +2
Misses 16 16
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
When set, this flag causes the client to skip checking if metric descriptors exist and begin sending metrics immediately. This can be useful when starting a large number of clients simultaneously to keep them from getting rate limited by the Google API.
Fixes #621