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

# Rust [Logs]

> OpenTelemetry for Axum, Actix, and other Rust services on Tracelit.

## Environment

```bash theme={null}
OTEL_SERVICE_NAME=my-service
OTEL_RESOURCE_ATTRIBUTES=deployment.environment=production
OTEL_EXPORTER_OTLP_ENDPOINT=https://ingest.tracelit.app
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
OTEL_EXPORTER_OTLP_HEADERS=Authorization=Bearer <WORKSPACE_INGEST_KEY>
```

## Install

```bash theme={null}
cargo add opentelemetry opentelemetry_sdk opentelemetry-otlp --features=http-proto,reqwest-blocking-client,trace,logs
```

Use OTLP **HTTP** (not gRPC). Bridge logging via:

| Logger        | Description                | Guide                      |
| ------------- | -------------------------- | -------------------------- |
| **tracing**   | Recommended for Axum/Actix | [Read](/otel/rust/tracing) |
| **log crate** | log facade bridge          | [Read](/otel/rust/log)     |
