# Google.Cloud.Diagnostics.AspNetCore3 - Class AspNetCoreTraceOptions (5.3.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [5.3.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore3/latest/Google.Cloud.Diagnostics.AspNetCore3.AspNetCoreTraceOptions)
- [5.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore3/5.2.0/Google.Cloud.Diagnostics.AspNetCore3.AspNetCoreTraceOptions)
- [5.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore3/5.1.0/Google.Cloud.Diagnostics.AspNetCore3.AspNetCoreTraceOptions)
- [5.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore3/5.0.0/Google.Cloud.Diagnostics.AspNetCore3.AspNetCoreTraceOptions)
- [4.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore3/4.4.0/Google.Cloud.Diagnostics.AspNetCore3.AspNetCoreTraceOptions)
- [4.3.1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore3/4.3.1/Google.Cloud.Diagnostics.AspNetCore3.AspNetCoreTraceOptions)

    public sealed class AspNetCoreTraceOptions

Reference documentation and code samples for the Google.Cloud.Diagnostics.AspNetCore3 class AspNetCoreTraceOptions.

Configuration for initializing tracing for ASP.NET Core applications.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AspNetCoreTraceOptions

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Diagnostics.AspNetCore3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore3/latest/Google.Cloud.Diagnostics.AspNetCore3)

## Assembly

Google.Cloud.Diagnostics.AspNetCore3.dll

## Properties

### ServiceOptions

    public TraceServiceOptions ServiceOptions { get; set; }

Options for configuring the tracing service.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Google.Cloud.Diagnostics.Common.TraceServiceOptions` |   |

### TraceFallbackPredicate

    public TraceDecisionPredicate TraceFallbackPredicate { get; set; }

A function to trace requests. If the trace header is not set then this function
will be called to determine if a given request should be traced. This will
not override trace headers. Can be null.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore3/latest/Google.Cloud.Diagnostics.AspNetCore3.TraceDecisionPredicate` |   |