Google.Cloud.Diagnostics.Common - Interface ILogEntryLabelProvider (5.1.0)

public interface ILogEntryLabelProvider

Reference documentation and code samples for the Google.Cloud.Diagnostics.Common interface ILogEntryLabelProvider.

Provides a hook to augment labels when a log entry is being logged.

Namespace

GoogleCloudGoogle.Cloud.DiagnosticsCommon

Assembly

Google.Cloud.Diagnostics.Common.dll

Methods

Invoke(Dictionary<string, string>)

void Invoke(Dictionary<string, string> labels)

Invokes the provider to augment log entry labels.

Parameter
NameDescription
labelsDictionarystringstring

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.