Skip to content

Commit

Permalink
Add TelemetrySource to RateLimiterRejectedException
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-csala committed Oct 17, 2024
1 parent 1971906 commit db1fb3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ internal ResilienceStrategyTelemetry(ResilienceTelemetrySource source, Telemetry

internal ResilienceTelemetrySource TelemetrySource { get; }

Check failure on line 22 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-core

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 22 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-core

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 22 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-core

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 22 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / windows-latest

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 22 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / windows-latest

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 22 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / windows-latest

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 22 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-legacy

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 22 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-legacy

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 22 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-legacy

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

#pragma warning (disable: S4049 CA1024)
#pragma warning disable S4049
#pragma warning disable CA1024

Check failure on line 25 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-core

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 25 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-core

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 25 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-core

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 25 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / windows-latest

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 25 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / windows-latest

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 25 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / windows-latest

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 25 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-legacy

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 25 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-legacy

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 25 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-legacy

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
/// <summary>
/// Returns the concatenated telemetry source.
/// </summary>
Expand All @@ -33,7 +34,8 @@ public string GetTelemetrySource()
var strategyName = TelemetrySource?.StrategyName ?? "(null)";
return $"{pipelineName}/{pipelineInstanceName}/{strategyName}";
}

Check failure on line 36 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-core

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 36 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-core

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 36 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-core

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 36 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / windows-latest

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 36 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / windows-latest

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 36 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-legacy

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 36 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-legacy

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 36 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-legacy

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
#pragma warning (restore S4049 CA1024)
#pragma warning restore CA1024
#pragma warning restore S4049

Check failure on line 38 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-core

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 38 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / windows-latest

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 38 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / windows-latest

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 38 in src/Polly.Core/Telemetry/ResilienceStrategyTelemetry.cs

View workflow job for this annotation

GitHub Actions / mutations-legacy

Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

/// <summary>
/// Reports an event that occurred in a resilience strategy.
Expand Down

0 comments on commit db1fb3f

Please sign in to comment.