Skip to content
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

[Do Not Merge] Add Meter Tags, Instrument Tags, and Scopes to System Diagnostics Metrics #237

Closed
wants to merge 7 commits into from

Conversation

kkeirstead
Copy link
Owner

Summary

This PR goes along with dotnet/diagnostics#4324 in the diagnostics repo.

This PR adds meter tags, instrument tags, and scopes to System Diagnostics Metrics. There is currently a limitation (see dotnet/runtime#93097) around having multiple providers with the same name. As a result, this PR currently makes the assumption that all meters have unique names. 

Quick note - this PR is currently targeting the unification branch, but shouldn't be merged into main until that PR has been merged.

Closes dotnet#5140

Release Notes Entry

Add Support for Meter Tags and Instrument Tags for System Diagnostics Metrics.

@kkeirstead kkeirstead closed this Oct 30, 2023

char separator = IsMeter(metric) ? '=' : ':';
var metadataValues = CounterUtilities.GetMetadata(metadata, separator);
var metadataValues = CounterUtilities.GetMetadata(allMetadata, separator);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So for prometheus export, we will effectively combine meter, instrument, and instance tags into one set correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants