-
Notifications
You must be signed in to change notification settings - Fork 839
Implementation Plan for HybridCache ReportTagMetrics #6862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mokarchi
wants to merge
7
commits into
dotnet:main
Choose a base branch
from
mokarchi:feature/ReportTagMetrics
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
46a0faa
Add tag-aware metrics to HybridCache for richer telemetry
mokarchi d16c225
Add IDisposable to ReportTagMetricsIntegrationTests
mokarchi 87583c0
Improve metrics handling and update documentation
mokarchi d600b2d
Refactor metric emission and improve code consistency
mokarchi a22f3ba
Refactor CreateTagList initialization and loop style
mokarchi c6834ba
Make `ReportTagMetricsIntegrationTests` sealed, improve Dispose
mokarchi 36ae59b
Merge branch 'main' into feature/ReportTagMetrics
mokarchi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -53,8 +53,37 @@ public class HybridCacheOptions | |
/// <see langword="true"/> to use "tags" data as dimensions on metric reporting; otherwise, <see langword="false"/>. | ||
/// </value> | ||
/// <remarks> | ||
/// If enabled, take care to ensure that tags don't contain data that | ||
/// should not be visible in metrics systems. | ||
/// <para> | ||
/// When enabled, cache operations will emit System.Diagnostics.Metrics with tag values as dimensions, | ||
/// providing richer telemetry for cache performance analysis by tag categories. | ||
/// </para> | ||
/// <para> | ||
/// <strong>Important PII and Security Considerations:</strong> | ||
/// </para> | ||
/// <list type="bullet"> | ||
/// <item><description> | ||
/// Ensure that tag values do not contain personally identifiable information (PII), | ||
/// sensitive data, or high-cardinality values that could overwhelm metrics systems. | ||
/// </description></item> | ||
/// <item><description> | ||
/// Tag values will be visible in metrics collection systems, dashboards, and telemetry pipelines. | ||
/// Only use tags that are safe for observability purposes. | ||
/// </description></item> | ||
/// <item><description> | ||
/// Consider using categorical values like "region", "service", "environment" rather than | ||
/// user-specific identifiers or sensitive business data. | ||
/// </description></item> | ||
/// <item><description> | ||
/// High-cardinality tags (e.g., user IDs, session IDs) can cause performance issues | ||
/// in metrics systems and should be avoided. | ||
/// </description></item> | ||
/// </list> | ||
/// <para> | ||
/// Example of appropriate tags: ["region:us-west", "service:api", "environment:prod"]. | ||
/// </para> | ||
/// <para> | ||
/// Example of inappropriate tags: ["user:[email protected]", "session:abc123", "customer-data:sensitive"]. | ||
/// </para> | ||
/// </remarks> | ||
public bool ReportTagMetrics { get; set; } | ||
|
||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.