Google.Cloud.Diagnostics.Common - Class TraceExtensions (5.1.0)

public static class TraceExtensions

Reference documentation and code samples for the Google.Cloud.Diagnostics.Common class TraceExtensions.

Extension methods for registering Google Cloud Trace for dependency injection.

Inheritance

object > TraceExtensions

Namespace

GoogleCloudGoogle.Cloud.DiagnosticsCommon

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