opentelemetry-js icon indicating copy to clipboard operation
opentelemetry-js copied to clipboard

Allow increasing max batch size for metric exporter.

Open AkselAllas opened this issue 1 year ago • 2 comments

We are running into max metric batch exporting size.

PeriodicExportingMetricReader: metrics export failed (error Error: 8 RESOURCE_EXHAUSTED: grpc: received message larger than max (8081061 vs. 4194304))\n    at doExport (/node_modules/@opentelemetry/sdk-metrics/build/src/export/PeriodicExportingMetricReader.js:75:23)

In Python for example the option to edit exists

Seems that currently only mitigation options are:

  • Sending less metrics in the batch export window
  • Reducing histogram metric View bucket resolution??

AkselAllas avatar Dec 22 '23 13:12 AkselAllas

An example of another project that made this change for reference for making a PR: https://github.com/Azure/azure-functions-nodejs-worker/pull/62

dyladan avatar Dec 22 '23 13:12 dyladan

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar Feb 26 '24 06:02 github-actions[bot]

This issue was closed because it has been stale for 14 days with no activity.

github-actions[bot] avatar Mar 18 '24 06:03 github-actions[bot]