Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

NewSummary functions with Custom Objectives #56

Merged
merged 5 commits into from
Jan 27, 2020
Merged

Conversation

bnsblue
Copy link
Contributor

@bnsblue bnsblue commented Jan 27, 2020

No description provided.

@@ -133,6 +133,11 @@ type Scope interface {
NewSummary(name, description string) (prometheus.Summary, error)
MustNewSummary(name, description string) prometheus.Summary

// Creates new prometheus.Summary metric with a custom set of objectives
Copy link
Contributor

Choose a reason for hiding this comment

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

can you explain what an objective is in this comment? the link doesn't elaborate

@codecov-io
Copy link

codecov-io commented Jan 27, 2020

Codecov Report

Merging #56 into master will decrease coverage by 0.1%.
The diff coverage is 77.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #56      +/-   ##
==========================================
- Coverage   72.21%   72.11%   -0.11%     
==========================================
  Files          56       56              
  Lines        2246     2252       +6     
==========================================
+ Hits         1622     1624       +2     
- Misses        500      504       +4     
  Partials      124      124
Impacted Files Coverage Δ
promutils/scope.go 87.85% <77.77%> (-1.58%) ⬇️

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 aa04a92...8463489. Read the comment docs.

EngHabu
EngHabu previously approved these changes Jan 27, 2020
promutils/scope.go Show resolved Hide resolved
katrogan
katrogan previously approved these changes Jan 27, 2020
@bnsblue bnsblue dismissed stale reviews from katrogan and EngHabu via 8463489 January 27, 2020 22:50
@bnsblue bnsblue merged commit c963e9f into master Jan 27, 2020
eapolinario pushed a commit that referenced this pull request Sep 6, 2023
* upgrade dependency, and add new summary creation function that takes custom objectives

* fix test

* refactor the newly added functions

* add what objectives mean to the comments

* add comments to SummaryOptions
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