> ## Documentation Index
> Fetch the complete documentation index at: https://otel.fyi/llms.txt
> Use this file to discover all available pages before exploring further.

# Httpforwarder

> OpenTelemetry extension for Httpforwarder

# Httpforwarder Extension

![Status](https://img.shields.io/badge/status-beta-yellow)

**Available in:** `contrib`, `k8s`

**Maintainers:** [@atoulme](https://github.com/atoulme)

**Source:** [opentelemetry-collector-contrib](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/httpforwarderextension)

## Overview

## Configuration

The following settings are required:

* `egress`: HTTP config settings to use for forwarding requests.
  * `endpoint` (no default): The target to which requests should be forwarded to.

The following settings can be optionally configured:

* `ingress`: HTTP config settings for HTTP server listening to requests.
  * `endpoint` (default = `0.0.0.0:6060`): The host to which requests should be forwarded to.
* `egress`: HTTP config settings to use for forwarding requests.
  * `headers` (default = `nil`): Additional headers to be added to all requests passing through the extension.
  * `timeout` (default = `10s`): How long to wait for each request to complete.

### Example

```yaml theme={null}
  http_forwarder:
    ingress:
      endpoint: localhost:7070
    egress:
      endpoint: http://target/
      headers:
        otel_http_forwarder: dev
      timeout: 5s
```

The full list of settings exposed for this exporter are documented in [config.go](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/httpforwarderextension/config.go)
with detailed sample configurations in [testdata/config.yaml](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/httpforwarderextension/testdata/config.yaml).

## Configuration

### Example Configuration

```yaml theme={null}
http_forwarder:
http_forwarder/1:
  ingress:
    endpoint: http://localhost:7070
  egress:
    endpoint: http://target/
    headers:
      otel_http_forwarder: dev
    idle_conn_timeout: 80s
    max_idle_conns: 42
    timeout: 5s
```

***

*Last generated: 2026-07-06*
