# OpenTelemetryCollectorSettings

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector.md)
- Version: `13.1.1`
- Namespace: `Aspire.Hosting`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector/OpenTelemetryCollectorSettings.cs)

Settings for the OpenTelemetry Collector

## Definition

```csharp
namespace Aspire.Hosting;

public class OpenTelemetryCollectorSettings
{
    // ...
}
```

## Constructors

- [OpenTelemetryCollectorSettings](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector/opentelemetrycollectorsettings/constructors.md#constructor)

## Properties

- [CollectorImage](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector/opentelemetrycollectorsettings/properties.md#collectorimage) : `string` `get` -- The image of the collector, defaults to ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib
- [CollectorTag](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector/opentelemetrycollectorsettings/properties.md#collectortag) : `string` `get; set` -- The Tag to use for the collector
- [DisableHealthcheck](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector/opentelemetrycollectorsettings/properties.md#disablehealthcheck) : `bool` `get; set` -- Disable the healthcheck on the collector container
- [EnableGrpcEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector/opentelemetrycollectorsettings/properties.md#enablegrpcendpoint) : `bool` `get; set` -- 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
- [EnableHttpEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector/opentelemetrycollectorsettings/properties.md#enablehttpendpoint) : `bool` `get; set` -- 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
- [ForceNonSecureReceiver](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector/opentelemetrycollectorsettings/properties.md#forcenonsecurereceiver) : `bool` `get; set` -- Force the default OTLP receivers in the collector to use HTTP even if Aspire is set to HTTPS
- [Image](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector/opentelemetrycollectorsettings/properties.md#image) : `string` `get; set` -- The collector image path
- [Registry](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector/opentelemetrycollectorsettings/properties.md#registry) : `string` `get; set` -- The registry for the image
