| NLogProviderOptionsIncludeActivityIdsWithBeginScope Property |
Note: This API is now obsolete.
Automatically include Activity.SpanId, Activity.TraceId and Activity.ParentId.
Namespace:
NLog.Extensions.Logging
Assembly:
NLog.Extensions.Logging (in NLog.Extensions.Logging.dll) Version: 5.3.13+9106fa3b6a3bdf3fbae3d40dbd52b6c23eb3b9f3
Syntax [ObsoleteAttribute("Only supported with NET6 (or newer)")]
public bool IncludeActivityIdsWithBeginScope { get; set; }
<ObsoleteAttribute("Only supported with NET6 (or newer)")>
Public Property IncludeActivityIdsWithBeginScope As Boolean
Get
Set
Dim instance As NLogProviderOptions
Dim value As Boolean
value = instance.IncludeActivityIdsWithBeginScope
instance.IncludeActivityIdsWithBeginScope = value
[<ObsoleteAttribute("Only supported with NET6 (or newer)")>]
member IncludeActivityIdsWithBeginScope : bool with get, set
Property Value
Type:
BooleanRemarks
Intended for Net5.0 where these properties are no longer included by default for performance reasons
Consider using
${activity} as alternative
See Also