# OtlpExporterAnnotation Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [OtlpExporterAnnotation](/reference/api/csharp/aspire.hosting/otlpexporterannotation.md)
- Kind: `Properties`
- Members: `1`

An annotation which indicates that a resource has OTLP exporter configured.

## RequiredProtocol

- Name: `RequiredProtocol`
- Modifiers: `nullable` `get; init`
- Returns: [OtlpProtocol?](/reference/api/csharp/aspire.hosting/otlpprotocol.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/OtlpExporterAnnotation.cs)

Gets or sets the default protocol for the OTLP exporter.

```csharp
public OtlpProtocol? RequiredProtocol { get; init; }
```
