# OpenTelemetryCollectorSettings

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

Settings for configuring an OpenTelemetry Collector resource.

## Definition

```csharp
namespace Aspire.Hosting;

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

## ATS metadata

### ATS export

- Type ID: `CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector/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` -- Gets the full collector image reference.
- [CollectorTag](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector/opentelemetrycollectorsettings/properties.md#collectortag) : `string` `get; set` -- Gets or sets the tag to use for the collector image.
- [DisableHealthcheck](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector/opentelemetrycollectorsettings/properties.md#disablehealthcheck) : `bool` `get; set` -- Gets or sets a value indicating whether the collector health check is disabled.
- [EnableGrpcEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector/opentelemetrycollectorsettings/properties.md#enablegrpcendpoint) : `bool` `get; set` -- Gets or sets a value indicating whether the gRPC endpoint is enabled on the collector container. Note: this also configures TLS when Aspire is configured for HTTPS.
- [EnableHttpEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector/opentelemetrycollectorsettings/properties.md#enablehttpendpoint) : `bool` `get; set` -- Gets or sets a value indicating whether the HTTP endpoint is enabled on the collector container. Note: this also configures TLS when Aspire is configured for HTTPS.
- [ForceNonSecureReceiver](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector/opentelemetrycollectorsettings/properties.md#forcenonsecurereceiver) : `bool` `get; set` -- Gets or sets a value indicating whether the default OTLP receivers should use HTTP even when Aspire is configured for HTTPS.
- [Image](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector/opentelemetrycollectorsettings/properties.md#image) : `string` `get; set` -- Gets or sets the collector image path.
- [Registry](/reference/api/csharp/communitytoolkit.aspire.hosting.opentelemetrycollector/opentelemetrycollectorsettings/properties.md#registry) : `string` `get; set` -- Gets or sets the container registry for the image.
