# AzureApiManagementDiagnosticOptions Properties

- Package: [Aspire.Hosting.Azure.ApiManagement](/reference/api/csharp/aspire.hosting.azure.apimanagement.md)
- Type: [AzureApiManagementDiagnosticOptions](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementdiagnosticoptions.md)
- Kind: `Properties`
- Members: `3`

Configures an Azure API Management Application Insights diagnostic.

<a id="logclientip"></a>

## LogClientIp

- Name: `LogClientIp`
- Modifiers: `get; init`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.ApiManagement/AzureApiManagementDiagnosticOptions.cs)

Gets whether the client IP address is included in telemetry.

```csharp
public bool LogClientIp { get; init; }
```

<a id="samplingpercentage"></a>

## SamplingPercentage

- Name: `SamplingPercentage`
- Modifiers: `get; init`
- Returns: `double`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.ApiManagement/AzureApiManagementDiagnosticOptions.cs)

Gets the percentage of requests to sample, from 0 to 100.

```csharp
public double SamplingPercentage { get; init; }
```

<a id="verbosity"></a>

## Verbosity

- Name: `Verbosity`
- Modifiers: `get; init`
- Returns: [AzureApiManagementDiagnosticVerbosity](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementdiagnosticverbosity.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.ApiManagement/AzureApiManagementDiagnosticOptions.cs)

Gets the diagnostic verbosity.

```csharp
public AzureApiManagementDiagnosticVerbosity Verbosity { get; init; }
```
