# OpenTelemetryCollectorSettings Properties

- Package: [CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector.md)
- Type: [OpenTelemetryCollectorSettings](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector/opentelemetrycollectorsettings.md)
- Kind: `Properties`
- Members: `8`

Settings for the OpenTelemetry Collector

## CollectorImage

- Name: `CollectorImage`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector/OpenTelemetryCollectorSettings.cs#L26)

The image of the collector, defaults to ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib

```csharp
public string CollectorImage { get; }
```

## CollectorTag

- Name: `CollectorTag`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector/OpenTelemetryCollectorSettings.cs)

The Tag to use for the collector

```csharp
public string CollectorTag { get; set; }
```

## DisableHealthcheck

- Name: `DisableHealthcheck`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector/OpenTelemetryCollectorSettings.cs)

Disable the healthcheck on the collector container

```csharp
public bool DisableHealthcheck { get; set; }
```

## EnableGrpcEndpoint

- Name: `EnableGrpcEndpoint`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector/OpenTelemetryCollectorSettings.cs)

Enable the gRPC endpoint on the collector container (requires the relevant collector config) Note: this will also setup SSL if Aspire is configured for HTTPS

```csharp
public bool EnableGrpcEndpoint { get; set; }
```

## EnableHttpEndpoint

- Name: `EnableHttpEndpoint`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector/OpenTelemetryCollectorSettings.cs)

Enable the HTTP endpoint on the collector container (requires the relevant collector config) Note: this will also setup SSL if Aspire is configured for HTTPS

```csharp
public bool EnableHttpEndpoint { get; set; }
```

## ForceNonSecureReceiver

- Name: `ForceNonSecureReceiver`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector/OpenTelemetryCollectorSettings.cs)

Force the default OTLP receivers in the collector to use HTTP even if Aspire is set to HTTPS

```csharp
public bool ForceNonSecureReceiver { get; set; }
```

## Image

- Name: `Image`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector/OpenTelemetryCollectorSettings.cs)

The collector image path

```csharp
public string Image { get; set; }
```

## Registry

- Name: `Registry`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector/OpenTelemetryCollectorSettings.cs)

The registry for the image

```csharp
public string Registry { get; set; }
```
