---
title: OpenTelemetry
description: "Point any OpenTelemetry SDK or Collector at ZevSight's OTLP/HTTP logs endpoint with an ingest token."
url: https://docs.zevsight.com/send/opentelemetry
---

# OpenTelemetry

> Point any OpenTelemetry SDK or Collector at ZevSight's OTLP/HTTP logs endpoint with an ingest token.

`POST https://ingest.zevsight.com/v1/ingest/otlp/logs`

ZevSight accepts standard OTLP/HTTP log exports (`ExportLogsServiceRequest`), as protobuf or JSON. Responses follow the OTLP/HTTP spec, including `partial_success`.

> **Note**
>
> Only **logs** are accepted over OTLP today. Do not configure trace or metric exporters against ZevSight.

## SDK environment variables

Any OpenTelemetry SDK reads these:

```bash
OTEL_SERVICE_NAME=api
OTEL_RESOURCE_ATTRIBUTES=deployment.environment=production
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=https://ingest.zevsight.com/v1/ingest/otlp/logs
OTEL_EXPORTER_OTLP_LOGS_HEADERS="Authorization=Bearer <INGEST_TOKEN>"
OTEL_EXPORTER_OTLP_LOGS_PROTOCOL=http/protobuf
```

## Collector

Add ZevSight as a logs exporter:

```yaml
exporters:
  otlphttp/zevsight:
    logs_endpoint: https://ingest.zevsight.com/v1/ingest/otlp/logs
    headers:
      Authorization: "Bearer ${env:ZEVSIGHT_INGEST_KEY}"

service:
  pipelines:
    logs:
      receivers: [otlp]
      exporters: [otlphttp/zevsight]
```

## How OTLP maps to ZevSight

| OTLP | ZevSight |
|---|---|
| Resource `service.name` | `service` |
| Resource `deployment.environment.name` (or `deployment.environment`) | `environment` |
| Other resource attributes | `resource` |
| Log record attributes | `attrs` |
| Severity number or text | `severity` |
| Trace and span ids | `trace_id`, `span_id` |

The same limits apply as for the [HTTP ingest API](/send/limits).
