public interface ICloudTraceNameProviderReference documentation and code samples for the Google.Cloud.Diagnostics.AspNetCore3 interface ICloudTraceNameProvider.
Interface for implementing providers that can name trace spans
Namespace
Google.Cloud.Diagnostics.AspNetCore3Assembly
Google.Cloud.Diagnostics.AspNetCore3.dll
Methods
GetTraceNameAsync(HttpContext)
Task<string> GetTraceNameAsync(HttpContext httpContext)When overriden in an implementing class it will return the name of the trace span based off the content in the HttpContext
| Parameter | |
|---|---|
| Name | Description |
httpContext |
HttpContextThe current request's HttpContext |
| Returns | |
|---|---|
| Type | Description |
Taskstring |
A string with the name of the trace |