# Intake and Authorization via OTLP

## Via Collector YAML

```yaml
exporters:
  otlphttp/omlet:
    endpoint: "{INTAKE}"
    headers:
      Authorization: "Bearer {AUTH_TOKEN}"
service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlphttp/omlet]
    metrics:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlphttp/omlet]
    logs:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlphttp/omlet]
```

The above example highlights creating an `otlphttp` exporter with an intake and authorization header.

## Environment Variables

```sh
export OTEL_EXPORTER_OTLP_ENDPOINT="{INTAKE}"
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer {AUTH_TOKEN}"
export OTEL_SERVICE_NAME="service_name"
```

The above example uses environment variables to set an intake and authorization header. **This convention is very relevant for tracing (APM).**
