public abstract class HttpLogEntryLabelProvider : ILogEntryLabelProviderBase class for ILogEntryLabelProvider implementations which needs an HttpContext instance.
Implements
ILogEntryLabelProviderNamespace
Google.Cloud.Diagnostics.AspNetCore3Assembly
Google.Cloud.Diagnostics.AspNetCore3.dll
Constructors
HttpLogEntryLabelProvider(IHttpContextAccessor)
protected HttpLogEntryLabelProvider(IHttpContextAccessor httpContextAccessor)Initializes the HttpLogEntryLabelProvider base class.
| Parameter | |
|---|---|
| Name | Description |
httpContextAccessor |
IHttpContextAccessorThe IHttpContextAccessor instance with the HttpContext. |
Methods
Invoke(Dictionary<String, String>)
public void Invoke(Dictionary<string, string> labels)| Parameter | |
|---|---|
| Name | Description |
labels |
Dictionary<String, String> |
InvokeCore(Dictionary<String, String>, HttpContext)
protected abstract void InvokeCore(Dictionary<string, string> labels, HttpContext httpContext)In a derived class, invokes the core logic of the ILogEntryLabelProvider using the HttpContext instance.
| Parameters | |
|---|---|
| Name | Description |
labels |
Dictionary<String, String>The log entry labels to augment. |
httpContext |
HttpContextThe HttpContext instance. |