public static class AspNetCoreGoogleDiagnosticsExtensions
Extensions to configure Google.Cloud.Diagnostics for ASP.NET Core applications.
Namespace
Google.Cloud.Diagnostics.AspNetCore3Assembly
Google.Cloud.Diagnostics.AspNetCore3.dll
Methods
AddGoogleDiagnosticsForAspNetCore(IServiceCollection, AspNetCoreTraceOptions, LoggingServiceOptions, ErrorReportingServiceOptions)
public static IServiceCollection AddGoogleDiagnosticsForAspNetCore(this IServiceCollection services, AspNetCoreTraceOptions traceOptions = null, LoggingServiceOptions loggingOptions = null, ErrorReportingServiceOptions errorReportingOptions = null)
Configures Google Diagnostics to be used in ASP.NET Core applications.
Parameters | |
---|---|
Name | Description |
services | IServiceCollection |
traceOptions | AspNetCoreTraceOptions |
loggingOptions | LoggingServiceOptions |
errorReportingOptions | ErrorReportingServiceOptions |
Returns | |
---|---|
Type | Description |
IServiceCollection |
Options may be null in which case defaults will be used. Note that the Google Cloud Project ID to use is required. If not set via options, it will be obtained from the environment, but only if running on GCP.
AddGoogleDiagnosticsForAspNetCore(IServiceCollection, String, String, String, TraceOptions, LoggingOptions, ErrorReportingOptions)
public static IServiceCollection AddGoogleDiagnosticsForAspNetCore(this IServiceCollection services, string projectId = null, string serviceName = null, string serviceVersion = null, TraceOptions traceOptions = null, LoggingOptions loggingOptions = null, ErrorReportingOptions errorReportingOptions = null)
Configures Google Diagnostics to be used in ASP.NET Core applications.
Parameters | |
---|---|
Name | Description |
services | IServiceCollection |
projectId | String |
serviceName | String |
serviceVersion | String |
traceOptions | TraceOptions |
loggingOptions | LoggingOptions |
errorReportingOptions | ErrorReportingOptions |
Returns | |
---|---|
Type | Description |
IServiceCollection |
Options may be null in which case defaults will be used. Note that the Google Cloud Project ID to use is required. If not set via options, it will be obtained from the environment, but only if running on GCP.