File: ActivityTrackingOptions.cs
Web Access
Project: src\src\libraries\Microsoft.Extensions.Logging\src\Microsoft.Extensions.Logging.csproj (Microsoft.Extensions.Logging)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
 
namespace Microsoft.Extensions.Logging
{
    /// <summary>
    /// Flags to indicate which trace context parts should be included with the logging scopes.
    /// </summary>
    [Flags]
    public enum ActivityTrackingOptions
    {
        /// <summary>
        /// None of the trace context part will be included in the logging.
        /// </summary>
        None        = 0x0000,
 
        /// <summary>
        /// Span Id will be included in the logging.
        /// </summary>
        SpanId      = 0x0001,
 
        /// <summary>
        /// Trace Id will be included in the logging.
        /// </summary>
        TraceId     = 0x0002,
 
        /// <summary>
        /// Parent Id will be included in the logging.
        /// </summary>
        ParentId    = 0x0004,
 
        /// <summary>
        /// Trace State will be included in the logging.
        /// </summary>
        TraceState  = 0x0008,
 
        /// <summary>
        /// Trace flags will be included in the logging.
        /// </summary>
        TraceFlags  = 0x0010,
 
        /// <summary>
        /// Tags will be included in the logging.
        /// </summary>
        Tags        = 0x0020,
 
        /// <summary>
        /// Items of baggage will be included in the logging.
        /// </summary>
        Baggage     = 0x0040
    }
}