Interface ICloudTraceNameProvider (4.4.0)

public interface ICloudTraceNameProvider

Interface for implementing providers that can name trace spans

Namespace

Google.Cloud.Diagnostics.AspNetCore3

Assembly

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
NameDescription
httpContextHttpContext

The current request's HttpContext

Returns
TypeDescription
Task<String>

A string with the name of the trace