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

# AL0070 - Collector endpoint should use OTLP protocol

> OTLP provides better performance than legacy protocols

Source: [Al0070NonOtlpCollectorEndpointAnalyzer.cs](https://github.com/ANcpLua/ANcpLua.Analyzers/blob/main/src/ANcpLua.Analyzers/Analyzers/Al0070NonOtlpCollectorEndpointAnalyzer.cs)

## Description

Telemetry collector endpoints should use the OTLP protocol for better performance and standardization compared to legacy protocols like Zipkin or Jaeger.

## Bad Code

```csharp theme={null}
builder.Services.AddOpenTelemetry()
    .WithTracing(t => t.AddZipkinExporter());
```

## Good Code

```csharp theme={null}
builder.Services.AddOpenTelemetry()
    .WithTracing(t => t.AddOtlpExporter());
```

## Properties

* **Category**: Configuration
* **Severity**: Warning
* **Enabled by default**: True
* **Code fix available**: False

## Configuration

```editorconfig theme={null}
dotnet_diagnostic.AL0070.severity = warning
```
