System.Diagnostics.CodeAnalysis.FeatureSwitchDefinitionAttribute
namespace System.Diagnostics.CodeAnalysis
{
internal sealed class FeatureSwitchDefinitionAttribute : Attribute
{
public string SwitchName { get; }
public FeatureSwitchDefinitionAttribute(string switchName);
}
}
namespace System.Diagnostics
{
public abstract class DistributedContextPropagator
{
[System.Runtime.CompilerServices.NullableContext(0)]
public delegate void PropagatorGetterCallback (object carrier, string fieldName, out string fieldValue, out System.Collections.Generic.IEnumerable<string> fieldValues);
[System.Runtime.CompilerServices.NullableContext(0)]
public delegate void PropagatorSetterCallback (object carrier, string fieldName, string fieldValue);
public abstract System.Collections.Generic.IReadOnlyCollection<string> Fields { get; }
public static DistributedContextPropagator Current { get; set; }
public abstract void Inject(Activity activity, object carrier, PropagatorSetterCallback setter);
public abstract void ExtractTraceIdAndState(object carrier, PropagatorGetterCallback getter, out string traceId, out string traceState);
public abstract System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, string>> ExtractBaggage(object carrier, PropagatorGetterCallback getter);
public static DistributedContextPropagator CreateDefaultPropagator();
public static DistributedContextPropagator CreatePassThroughPropagator();
public static DistributedContextPropagator CreateW3CPropagator();
public static DistributedContextPropagator CreatePreW3CPropagator();
public static DistributedContextPropagator CreateNoOutputPropagator();
protected DistributedContextPropagator();
}
}