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

Add support for System.Diagnostics.Metrics #3479

Merged
merged 22 commits into from
Feb 1, 2023

Conversation

wiktork
Copy link
Member

@wiktork wiktork commented Jan 26, 2023

Summary

Relies on dotnet/diagnostics#3587

Release Notes Entry

Add support for System.Diagnostics.Metrics

kkeirstead and others added 11 commits January 26, 2023 14:04
…rsing (#3137)

* Fix ICountersLogger contract

* MetadataUpdates

* Fixup merge issues

* Fixup api protection levels

* Fixup tests and add CounterEnded payload

* Fixup metadata parsing
…ck. Still need to address erroneusly printing error message when doing live metrics without Sys.Diag.Metrics, and add configuration option to allow users to specify eventcounter/sys.diag.metrics
@wiktork wiktork requested a review from a team as a code owner January 26, 2023 22:06
wiktork and others added 4 commits January 31, 2023 09:08
…20230130.1

Microsoft.Diagnostics.Monitoring , Microsoft.Diagnostics.Monitoring.EventPipe
 From Version 6.0.0-preview.23077.1 -> To Version 6.0.0-preview.23080.1
@wiktork wiktork merged commit 7725e81 into main Feb 1, 2023
@wiktork wiktork deleted the shared/systemDiagnosticsMetricsMain branch February 1, 2023 17:49
@wiktork wiktork added the update-release-notes Pull requests that should be mentioned in the release notes label Feb 3, 2023
@wiktork
Copy link
Member Author

wiktork commented Feb 21, 2023

/backport to release/7.x

@github-actions
Copy link
Contributor

Started backporting to release/7.x: https://github.com/dotnet/dotnet-monitor/actions/runs/4236876361

@github-actions
Copy link
Contributor

@wiktork backporting to release/7.x failed, the patch most likely resulted in conflicts.

Please backport manually using one of the below commands, followed by git am --continue once the merge conflict has been resolved.

PowerShell

(Invoke-WebRequest "https://github.com/dotnet/dotnet-monitor/commit/7725e816a3144ccd277c8e71c7ad04dc2980ff28.patch").Content | git am --3way --ignore-whitespace --exclude="documentation/**.md" --keep-non-patch

Bash

curl -sSL "https://github.com/dotnet/dotnet-monitor/commit/7725e816a3144ccd277c8e71c7ad04dc2980ff28.patch" | git am --3way --ignore-whitespace --exclude="documentation/**.md" --keep-non-patch

git am error output:

$ git am --3way --ignore-whitespace --exclude="documentation/**.md" --keep-non-patch changes.patch

Applying: Add support for System.Diagnostics.Metrics (#3479)
.git/rebase-apply/patch:474: trailing whitespace.
        
.git/rebase-apply/patch:490: trailing whitespace.
        
.git/rebase-apply/patch:499: trailing whitespace.
        
.git/rebase-apply/patch:1174: trailing whitespace.
        
.git/rebase-apply/patch:1190: trailing whitespace.
        
warning: 5 lines add whitespace errors.
Using index info to reconstruct a base tree...
M	cspell.json
M	documentation/schema.json
M	eng/Version.Details.xml
M	eng/Versions.props
M	src/Microsoft.Diagnostics.Monitoring.Options/OptionsDisplayStrings.Designer.cs
M	src/Microsoft.Diagnostics.Monitoring.Options/OptionsDisplayStrings.resx
M	src/Tests/Microsoft.Diagnostics.Monitoring.UnitTestApp/Program.cs
Falling back to patching base and 3-way merge...
Auto-merging src/Tests/Microsoft.Diagnostics.Monitoring.UnitTestApp/Program.cs
CONFLICT (content): Merge conflict in src/Tests/Microsoft.Diagnostics.Monitoring.UnitTestApp/Program.cs
Auto-merging src/Microsoft.Diagnostics.Monitoring.Options/OptionsDisplayStrings.resx
Auto-merging src/Microsoft.Diagnostics.Monitoring.Options/OptionsDisplayStrings.Designer.cs
Auto-merging eng/Versions.props
CONFLICT (content): Merge conflict in eng/Versions.props
Auto-merging eng/Version.Details.xml
CONFLICT (content): Merge conflict in eng/Version.Details.xml
Auto-merging documentation/schema.json
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Add support for System.Diagnostics.Metrics (#3479)
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

wiktork added a commit to wiktork/dotnet-monitor that referenced this pull request Feb 22, 2023
* Add prototype support for system diagnostics metrics

* [feature branch, do not review] Update counter api, fixup metadata parsing (dotnet#3137)

* Fix ICountersLogger contract

* MetadataUpdates

* Fixup merge issues

* Fixup api protection levels

* Fixup tests and add CounterEnded payload

* Fixup metadata parsing

* [System Diagnostics Metrics] Quantile->Percentile Changes & Testing Improvements (dotnet#3165)

* Rename counterpipeline

* Fix invariant

* Fixup regex

* Added tests for histogram and timeseries; addressed some other feedback. Still need to address erroneusly printing error message when doing live metrics without Sys.Diag.Metrics, and add configuration option to allow users to specify eventcounter/sys.diag.metrics

* Fix counter name

* Use one payload for Histogram

* Added MetricType option for configuration; added testing to go along with it

* Move documentation to correct file

* Initial PR feedback

* Do not allow CounterEnded events to displace existing metrics

* Deduplicate errors

* Update dependencies from https://github.com/dotnet/diagnostics build 20230130.1

Microsoft.Diagnostics.Monitoring , Microsoft.Diagnostics.Monitoring.EventPipe
 From Version 6.0.0-preview.23077.1 -> To Version 6.0.0-preview.23080.1

* Fix minor formatting issues

* Fix spell check issues

* Update documentation/configuration/metrics-configuration.md

Co-authored-by: Justin Anderson <[email protected]>

* Update documentation/configuration/metrics-configuration.md

Co-authored-by: Justin Anderson <[email protected]>

* PR Feedback

* Add comment from PR

---------

Co-authored-by: kkeirstead <[email protected]>
Co-authored-by: kkeirstead <[email protected]>
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Justin Anderson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
update-release-notes Pull requests that should be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants