namespace Opsoft.NetCore.O3App.Shared
{
public class TraceIdOptions
{
public const string DefaultHeader = "apm-traceid";
///
/// The name of the header from which the Trace ID is read/written.
///
public string Header { get; set; } = DefaultHeader;
///
///
/// Controls whether the Trace ID is returned in the response headers.
///
/// Default: true
///
public bool IncludeInResponse { get; set; } = true;
///
///
/// Controls whether the ASP.NET Core TraceIdentifier will be set to match the TraceId.
///
/// Default: true
///
public bool UpdateTraceIdentifier { get; set; } = true;
///
///
/// Controls whether a GUID will be used in cases where no Trace ID is retrieved from the request header.
/// When false the TraceIdentifier for the current request will be used.
///
/// Default: true.
///
public bool UseGuidForTraceId { get; set; } = true;
}
}