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

# Elixir

> Elixir setup and configuration for ClickHouse Observability and self-managed deployments.

Use the OpenTelemetry Erlang/Elixir SDK to send traces to ClickHouse Observability.

This guide integrates:

## Set up OpenTelemetry

Follow the official [OpenTelemetry Erlang/Elixir setup instructions](https://opentelemetry.io/docs/languages/erlang/getting-started/) to initialize the SDK and instrument your application.

Configure [OTLP export over HTTP](https://opentelemetry.io/docs/languages/erlang/exporters/) for traces, using the connection settings below. Replace any example destinations from the upstream instructions, including signal-specific endpoint overrides.

## Configure your destination

> [tab] Fully managed
>
> [Beta offering](https://clickhouse.com/docs/reference/settings/beta-and-experimental-features.md#beta-features)
>
> Open **Team Settings → Data → Managed Telemetry** in your service and copy the **OTLP HTTP endpoint** and **API key**. Use the complete HTTPS endpoint, including its port:
>
> ```shell theme={null}
> export OTEL_EXPORTER_OTLP_ENDPOINT='https://YOUR_OTEL_ENDPOINT:4318'
> export OTEL_EXPORTER_OTLP_HEADERS='authorization=Bearer YOUR_INGESTION_API_KEY'
> export OTEL_EXPORTER_OTLP_PROTOCOL='http/protobuf'
> ```

> [tab] Self-managed
>
> Use your collector's OTLP HTTP endpoint and ingestion key. Use `http://` instead of `https://` if your collector does not have TLS configured. For collector setup, see [Ingesting with OpenTelemetry](https://clickhouse.com/docs/clickstack/observability/ingesting-data/opentelemetry.md#sending-otel-data-self-configured).
>
> ```shell theme={null}
> export OTEL_EXPORTER_OTLP_ENDPOINT='https://YOUR_COLLECTOR_HOST:4318'
> export OTEL_EXPORTER_OTLP_HEADERS='authorization=YOUR_INGESTION_API_KEY'
> export OTEL_EXPORTER_OTLP_PROTOCOL='http/protobuf'
> ```

## Verify ingestion

Start your instrumented application and generate activity. In ClickHouse Observability, select a recent time range and find your application's service name in Traces.

For instrumentation and exporter troubleshooting, see the [OpenTelemetry Erlang/Elixir documentation](https://opentelemetry.io/docs/languages/erlang/).
