# OtlpProtocol

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `enum`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Protocols available for OTLP exporters.

## Definition

```go
type OtlpProtocol string

const (
    OtlpProtocolGrpc         OtlpProtocol = "Grpc"
    OtlpProtocolHttpProtobuf OtlpProtocol = "HttpProtobuf"
    OtlpProtocolHttpJson     OtlpProtocol = "HttpJson"
)
```

## Values

- `OtlpProtocolGrpc` = `"Grpc"` -- A gRPC-based OTLP exporter.
- `OtlpProtocolHttpProtobuf` = `"HttpProtobuf"` -- Http/Protobuf-based OTLP exporter.
- `OtlpProtocolHttpJson` = `"HttpJson"` -- Http/JSON-based OTLP exporter.
