Skip to content

Add Meter Tags, Instrument Tags, and Scopes to System Diagnostics Metrics - #4324

Merged
kkeirstead merged 6 commits into
dotnet:mainfrom
kkeirstead:kkeirstead/TagsAndScopes_PR
Jan 8, 2024
Merged

kkeirstead merged 6 commits into
dotnet:mainfrom
kkeirstead:kkeirstead/TagsAndScopes_PR

Conversation

@kkeirstead

@kkeirstead kkeirstead commented Oct 13, 2023 •

Copy link
Copy Markdown
Contributor

This PR goes along with kkeirstead/dotnet-monitor#237 in the dotnet-monitor 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. 

Just a quick note - I made some guesses about how this data should be displayed/formatted, but I can change this if this information should be presented differently (or not at all for dotnet-counters).

* Unify counters

* fixup merge

* Switched to using AggregatePercentilePayload.

* Changes to AggregatePercentilePayload

* Bug fixes to improve consistency with existing dotnet counters tool

* Adjustments to support shared sessions - this has not been tested.

* Bug fix.

* Clean up before PR

* Small adjustments.

* Small changes.

* Fixes small filtering bug with instrumentation started

* Reintroduced display name for aggregate percentile payload

* Partial PR Feedback - has not been tested, and needs more changes.

* More PR Feedback.

* PR Feedback.

* End to end appears to be working, need to add testing and do cleanup. Note that this operates under the assumption of unique meter names

* Small cleanup, condensing tests.

---------

Co-authored-by: wiktork <[email protected]>
@kkeirstead
kkeirstead marked this pull request as ready for review October 16, 2023 18:55
@kkeirstead
kkeirstead requested a review from a team as a code owner October 16, 2023 18:55

@noahfalk noahfalk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think there is an issue with how the cached data is keyed, but otherwise it looks good. Thanks!

@noahfalk noahfalk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@kkeirstead
kkeirstead merged commit e701ba5 into dotnet:main Jan 8, 2024
@ViktorHofer

ViktorHofer commented Jan 8, 2024 •

Copy link
Copy Markdown
Member

From what I can see, this broke the build. @kkeirstead CI didn't ran since Dec 4th which is why you didn't see the failures in the PR.

ViktorHofer added a commit to ViktorHofer/diagnostics that referenced this pull request Jan 8, 2024
@kkeirstead

Copy link
Copy Markdown
Contributor Author

From what I can see, this broke the build. @kkeirstead CI didn't ran since Dec 4th which is why you didn't see the failures in the PR.

Thanks for the heads-up, this PR was sitting for a while so that would make sense. I'll start working on a fix now, it looks like it's from the recent changes in ConsoleExporterTests.cs according to the failed build.

kkeirstead added a commit that referenced this pull request Jan 8, 2024
It looks like #4324 hadn't run a build in a while, and was checked in
without validating against the new tests in
#4376 (causing the builds in
main to fail). I don't believe there are any other issues, but this
should give us a fresh build to confirm that.
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants