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 CLR Eventsource and EventCounter Metrics #305

Merged
merged 6 commits into from
Apr 29, 2020
Merged

Conversation

hananiel
Copy link
Contributor

@hananiel hananiel commented Apr 25, 2020

Metrics end-end with metrics and prometheus actuators
Make updates to MetricsEndpoint to serialize metrics correcty
Resolves #256 and Partially #299

@codecov
Copy link

codecov bot commented Apr 25, 2020

Codecov Report

Merging #305 into master will increase coverage by 0.16%.
The diff coverage is 73.38%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #305      +/-   ##
==========================================
+ Coverage   53.05%   53.21%   +0.16%     
==========================================
  Files        1098     1102       +4     
  Lines       36748    37062     +314     
  Branches     7236     7299      +63     
==========================================
+ Hits        19496    19723     +227     
- Misses      15480    15548      +68     
- Partials     1772     1791      +19     
Impacted Files Coverage Δ
...alancer/LoadBalancerHttpClientBuilderExtensions.cs 100.00% <ø> (ø)
...ndpointBase/Metrics/Observer/CLRRuntimeObserver.cs 68.29% <ø> (-21.96%) ⬇️
.../EndpointBase/Metrics/Observer/CLRRuntimeSource.cs 100.00% <ø> (ø)
...ContentNegotiation/ContentNegotiationExtensions.cs 85.71% <50.00%> (+7.93%) ⬆️
...Base/Metrics/Factory/AutoCollectingMeterFactory.cs 68.75% <50.00%> (-1.25%) ⬇️
...lemetryBase/Metrics/Processor/SteeltoeProcessor.cs 60.24% <54.45%> (-21.68%) ⬇️
...ore/Metrics/EndpointServiceCollectionExtensions.cs 59.61% <57.14%> (-0.39%) ⬇️
...gement/src/EndpointBase/Metrics/MetricsEndpoint.cs 70.00% <62.33%> (-4.00%) ⬇️
.../Management/src/EndpointBase/ActuatorMediaTypes.cs 90.00% <80.00%> (-3.34%) ⬇️
...pointBase/Metrics/Observer/EventCounterListener.cs 81.94% <81.94%> (ø)
... and 27 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bdfaf68...7991fa8. Read the comment docs.

@jkonicki jkonicki requested a review from dtillman April 28, 2020 19:50
dtillman
dtillman previously approved these changes Apr 29, 2020
[Theory]
[MemberData(nameof(EndpointMiddleware_ContentNegotiation_TestCases))]
public async void EndpointMiddleware_ContentNegotiation(EndpointNames epName, string epPath, MediaTypeVersion version, string[] accepts, string contentType, string name)
public async void EndpointMiddleware_ContentNegotiation(EndpointNames epName, string epPath, string[] accepts, string contentType, string name)
Copy link
Member

Choose a reason for hiding this comment

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

@hananiel This might be one to add an exception for (in tests)

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 12 Code Smells

80.2% 80.2% Coverage
1.3% 1.3% Duplication

@hananiel hananiel merged commit 700eee0 into master Apr 29, 2020
@hananiel hananiel deleted the EventCounterCLR branch April 29, 2020 18:23
@jkonicki jkonicki added this to the 3.0.0-M3 milestone May 1, 2020
@jkonicki jkonicki added ReleaseLine/3.x Identified as a feature/fix for the 3.x release line Component/Management Issues related to Steeltoe Management (actuators) labels May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component/Management Issues related to Steeltoe Management (actuators) ReleaseLine/3.x Identified as a feature/fix for the 3.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update CLR Metrics to use EventCounters
4 participants