Skip to content

Add configurable connection pool settings for OTLP exporter#307

Open
neeme-praks-sympower wants to merge 1 commit intostreamfold:mainfrom
neeme-praks-sympower:configurable-connection-pool
Open

Add configurable connection pool settings for OTLP exporter#307
neeme-praks-sympower wants to merge 1 commit intostreamfold:mainfrom
neeme-praks-sympower:configurable-connection-pool

Conversation

@neeme-praks-sympower
Copy link
Contributor

Summary

Add configurable connection pool settings for the OTLP exporter, addressing the TODO in src/exporters/http/client.rs.

New CLI arguments:

  • --otlp-exporter-pool-idle-timeout (env: ROTEL_OTLP_EXPORTER_POOL_IDLE_TIMEOUT, default: 30s)
  • --otlp-exporter-pool-max-idle-per-host (env: ROTEL_OTLP_EXPORTER_POOL_MAX_IDLE_PER_HOST, default: 100)

These settings control HTTP connection pooling behavior:

  • pool-idle-timeout: How long idle connections remain in the pool before being closed
  • pool-max-idle-per-host: Maximum number of idle connections to keep per host

Example usage:

rotel start \
  --otlp-exporter-endpoint https://collector.example.com:443 \
  --otlp-exporter-pool-idle-timeout 900s \
  --otlp-exporter-pool-max-idle-per-host 1

Part of #299

Add CLI arguments to configure HTTP connection pool behavior:
- --otlp-exporter-pool-idle-timeout (default: 30s)
- --otlp-exporter-pool-max-idle-per-host (default: 100)

These settings allow tuning connection reuse for different deployment scenarios, such as long-lived connections to collectors.

Addresses the TODO in src/exporters/http/client.rs.
@mheffner mheffner self-assigned this Feb 12, 2026
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