A dictionary of log entry labels.
Keys and values added to labels should not be null.
If they are, an exception will be throw when attempting to log an entry.
The entry won't be logged and the exception will be propagated depending
on the value of ExceptionHandling.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eHttpLogEntryLabelProvider\u003c/code\u003e is an abstract base class for implementing \u003ccode\u003eILogEntryLabelProvider\u003c/code\u003e and requires an \u003ccode\u003eHttpContext\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eObject\u003c/code\u003e and implements \u003ccode\u003eILogEntryLabelProvider\u003c/code\u003e, providing core functionalities for augmenting log entry labels.\u003c/p\u003e\n"],["\u003cp\u003eDerived types, such as \u003ccode\u003eClientIpLogEntryLabelProvider\u003c/code\u003e, \u003ccode\u003eTraceIdLogEntryLabelProvider\u003c/code\u003e, and \u003ccode\u003eUserLogEntryLabelProvider\u003c/code\u003e, extend the functionality of \u003ccode\u003eHttpLogEntryLabelProvider\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe constructor \u003ccode\u003eHttpLogEntryLabelProvider(IHttpContextAccessor)\u003c/code\u003e initializes the base class with an \u003ccode\u003eIHttpContextAccessor\u003c/code\u003e instance containing \u003ccode\u003eHttpContext\u003c/code\u003e information.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInvokeCore\u003c/code\u003e method, which is protected and abstract, handles the core logic of the \u003ccode\u003eILogEntryLabelProvider\u003c/code\u003e using a provided \u003ccode\u003eHttpContext\u003c/code\u003e instance, and the \u003ccode\u003eInvoke\u003c/code\u003e method is called to start the augmentation process.\u003c/p\u003e\n"]]],[],null,["# Class HttpLogEntryLabelProvider (4.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore/latest/Google.Cloud.Diagnostics.AspNetCore.HttpLogEntryLabelProvider)\n- [4.3.1](/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore/4.3.1/Google.Cloud.Diagnostics.AspNetCore.HttpLogEntryLabelProvider) \n\n public abstract class HttpLogEntryLabelProvider : ILogEntryLabelProvider, ILogEntryLabelProvider\n\nBase class for [ILogEntryLabelProvider](/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore/latest/Google.Cloud.Diagnostics.AspNetCore.ILogEntryLabelProvider) implementations which needs an [HttpContext](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.http.httpcontext) instance. \n\nInheritance\n-----------\n\n[Object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e HttpLogEntryLabelProvider \n\nImplements\n----------\n\n[ILogEntryLabelProvider](/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore/latest/Google.Cloud.Diagnostics.AspNetCore.ILogEntryLabelProvider), [ILogEntryLabelProvider](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common.ILogEntryLabelProvider.html) \n\nInherited Members\n-----------------\n\n[Object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode#system-object-gethashcode) \n[Object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype#system-object-gettype) \n[Object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone#system-object-memberwiseclone) \n[Object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring#system-object-tostring) \n\nDerived Types\n-------------\n\n[ClientIpLogEntryLabelProvider](/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore/latest/Google.Cloud.Diagnostics.AspNetCore.ClientIpLogEntryLabelProvider) \n[TraceIdLogEntryLabelProvider](/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore/latest/Google.Cloud.Diagnostics.AspNetCore.TraceIdLogEntryLabelProvider) \n[UserLogEntryLabelProvider](/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore/latest/Google.Cloud.Diagnostics.AspNetCore.UserLogEntryLabelProvider)\n\nNamespace\n---------\n\n[Google.Cloud.Diagnostics.AspNetCore](/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore/latest/Google.Cloud.Diagnostics.AspNetCore)\n\nAssembly\n--------\n\nGoogle.Cloud.Diagnostics.AspNetCore.dll\n\nConstructors\n------------\n\n### HttpLogEntryLabelProvider(IHttpContextAccessor)\n\n protected HttpLogEntryLabelProvider(IHttpContextAccessor httpContextAccessor)\n\nInitializes the [HttpLogEntryLabelProvider](/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore/latest/Google.Cloud.Diagnostics.AspNetCore.HttpLogEntryLabelProvider) base class.\n\nMethods\n-------\n\n### Invoke(Dictionary\\\u003cString, String\\\u003e)\n\n public void Invoke(Dictionary\u003cstring, string\u003e labels)\n\nInvokes the provider to augment log entry labels.\n\n### InvokeCore(Dictionary\\\u003cString, String\\\u003e, HttpContext)\n\n protected abstract void InvokeCore(Dictionary\u003cstring, string\u003e labels, HttpContext httpContext)\n\nIn a derived class, invokes the core logic of the [ILogEntryLabelProvider](/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore/latest/Google.Cloud.Diagnostics.AspNetCore.ILogEntryLabelProvider) using the [HttpContext](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.http.httpcontext) instance."]]