Skip to content

limit response body size for OTLP HTTP exporters #6539

Description

@trentm

Add response body size limitation to mitigate memory usage risks.

Currently, IIUC, the http transport for the OTLP exporters does not limit the amount of data read on the response:

const responseData: Buffer[] = [];
res.on('data', chunk => responseData.push(chunk));
res.on('end', () => {

Refer to open-telemetry/opentelemetry-proto#781
This recommends limiting to 4MiB (uncompressed).

Notes:

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomersup-for-grabsGood for taking. Extra help will be provided by maintainers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions