Google.Cloud.Diagnostics.AspNetCore3 - Interface ICloudTraceNameProvider (5.1.0)

public interface ICloudTraceNameProvider

Reference documentation and code samples for the Google.Cloud.Diagnostics.AspNetCore3 interface ICloudTraceNameProvider.

Interface for implementing providers that can name trace spans

Namespace

GoogleCloudGoogle.Cloud.DiagnosticsAspNetCore3

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
Taskstring

A string with the name of the trace