-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Martin Taillefer <[email protected]>
- Loading branch information
Showing
18 changed files
with
575 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...es/Microsoft.Extensions.Telemetry/Metering.Collectors.EventCounters/Internal/Constants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace Microsoft.Extensions.Telemetry.Metering.Internal; | ||
|
||
internal sealed class Constants | ||
{ | ||
#pragma warning disable R9A044 // Assign array of literal values to a static field for improved performance | ||
public static readonly Dictionary<string, HashSet<string>> DefaultCounters = new() | ||
{ | ||
["System.Runtime"] = new HashSet<string> | ||
{ | ||
"cpu-usage", | ||
"working-set", | ||
"time-in-gc", | ||
"alloc-rate", | ||
"exception-count", | ||
"gen-2-gc-count", | ||
"gen-2-size", | ||
"monitor-lock-contention-count", | ||
"active-timer-count", | ||
"threadpool-queue-length", | ||
"threadpool-thread-count" | ||
}, | ||
["Microsoft-AspNetCore-Server-Kestrel"] = new HashSet<string> | ||
{ | ||
"connection-queue-length", | ||
"request-queue-length", | ||
}, | ||
}; | ||
#pragma warning restore R9A044 // Assign array of literal values to a static field for improved performance | ||
} |
Oops, something went wrong.