Class TraceServiceOptions (4.3.1)

[Obsolete("Use Google.Cloud.Diagnostics.AspNetCore3.AspNetCoreTraceOptions instead.")]
public sealed class TraceServiceOptions

Configuration for initializing tracing.

Inheritance

Object > TraceServiceOptions

Namespace

Google.Cloud.Diagnostics.AspNetCore3

Assembly

Google.Cloud.Diagnostics.AspNetCore3.dll

Properties

Client

public TraceServiceClient Client { get; set; }

A client to send traces with. Can be null.

Property Value
TypeDescription
TraceServiceClient

Options

public TraceOptions Options { get; set; }

Trace options. Can be null.

Property Value
TypeDescription
TraceOptions

ProjectId

public string ProjectId { get; set; }

The Google Cloud Platform project ID. If unspecified and running on GAE or GCE the project ID will be detected from the platform.

Property Value
TypeDescription
String

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
TypeDescription
TraceDecisionPredicate