Skip to content

fix(telemetry): prevent OOM and crashes on export timeouts#11

Merged
JoseSzycho merged 3 commits intomainfrom
fix/memory-leak
Feb 10, 2026
Merged

fix(telemetry): prevent OOM and crashes on export timeouts#11
JoseSzycho merged 3 commits intomainfrom
fix/memory-leak

Conversation

@JoseSzycho
Copy link
Collaborator

@JoseSzycho JoseSzycho commented Feb 10, 2026

Description: Updates OpenTelemetry configuration to improve stability during network issues or high load.

  • Switch to gRPC Exporter: Replaces the incorrect HTTP package with @opentelemetry/exporter-trace-otlp-grpc to match implementation.

--Prevent OOM: Limits maxQueueSize (512) and maxExportBatchSize (128) to prevent memory exhaustion when the collector is unreachable.

  • Error Handling: Adds a global unhandledRejection handler to log errors instead of crashing the process on exporter timeouts.
    Timeouts: Increases export timeout to 30s to reduce DEADLINE_EXCEEDED noice.

Related to:

@JoseSzycho JoseSzycho merged commit 21d3d80 into main Feb 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants