Interface ICloudTraceNameProvider (4.4.0)

public interface ICloudTraceNameProvider

Interface for implementing providers that can name trace spans

Namespace

Google.Cloud.Diagnostics.AspNetCore

Assembly

Google.Cloud.Diagnostics.AspNetCore.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 HttpContext

The current request's HttpContext

Returns
Type Description
Task<String>

A string with the name of the trace