# Uptrace Log Integration

CloudAMQP ships broker logs to Uptrace via **OpenTelemetry protocol (OTLP).** Works with both Uptrace Cloud and self-hosted instances. Available on RabbitMQ and LavinMQ dedicated instances.

Link: [https://uptrace.dev](https://uptrace.dev)

## Setup

1. In Uptrace, go to **Project → Settings → DSN.** Your DSN encodes both your project token and project ID in a single URL:
   ```bash
   https://<token>@otlp.uptrace.dev/<project_id>
   ```
2. In the CloudAMQP console, select **Uptrace** under Log Integrations and enter the DSN.
3. Click **Save.**

## Log attributes

Attributes appear in Uptrace's JSON view with a `::str` type suffix — that's Uptrace's notation, not part of the field name:

- `service_name` — your CloudAMQP cluster name
- `host_name` — the individual node hostname
- `appname` — `rabbitmq` or `lavinmq`
- `log_severity` — severity as a string (e.g. `INFO`, `WARNING`, `ERROR`)

[← Back to Log Integrations](/docs/cloudamqp-integrations/#otel-logs)
