Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyuanliang-ms committed Aug 13, 2024
1 parent 29b2cab commit c016f1d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,19 @@ internal class RequestTracingOptions
/// </summary>
public bool IsFailoverRequest { get; set; } = false;

/// <summary>
/// Checks whether any tracing feature is used.
/// </summary>
/// <returns>True if any tracing feature is used, otherwise false.</returns>
public bool UsesAnyTracingFeature()
{
return IsLoadBalancingEnabled || IsSignalRUsed;
}

/// <summary>
/// Returns a formatted string containing code names, indicating which tracing features are used by the application.
/// </summary>
/// <returns>Formatted string like: "LB+SignalR". If no tracing feature are used, empty string will be returned.</returns>
public string CreateFeaturesString()
{
var sb = new StringBuilder();
Expand Down

0 comments on commit c016f1d

Please sign in to comment.