Class TraceExtensions (4.4.0)

public static class TraceExtensions

Extension methods for registering Google Cloud Trace for dependency injection.

Inheritance

Object > TraceExtensions

Namespace

Google.Cloud.Diagnostics.Common

Assembly

Google.Cloud.Diagnostics.Common.dll

Methods

AddGoogleTrace(IServiceCollection, TraceServiceOptions)

public static IServiceCollection AddGoogleTrace(this IServiceCollection services, TraceServiceOptions options = null)

Configures Google Cloud Trace for dependency injection.

Parameters
NameDescription
servicesIServiceCollection
optionsTraceServiceOptions
Returns
TypeDescription
IServiceCollection