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

Gauge: Add support for constant labels #468

Merged
merged 4 commits into from
Apr 4, 2019

Conversation

mayurkale22
Copy link
Member

@codecov-io
Copy link

codecov-io commented Apr 3, 2019

Codecov Report

Merging #468 into master will decrease coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #468      +/-   ##
==========================================
- Coverage    94.7%   94.66%   -0.05%     
==========================================
  Files         150      150              
  Lines        9780     9683      -97     
  Branches      732      744      +12     
==========================================
- Hits         9262     9166      -96     
+ Misses        518      517       -1
Impacted Files Coverage Δ
src/detect-resource.ts 66.66% <0%> (-26.2%) ⬇️
test/test-detect-resource.ts 93.84% <0%> (-5.68%) ⬇️
src/metrics/gauges/gauge.ts 100% <0%> (ø) ⬆️
src/grpc-stats/server-stats.ts 100% <0%> (ø) ⬆️
src/resource-labels.ts 100% <0%> (ø) ⬆️
src/grpc-stats/client-stats.ts 100% <0%> (ø) ⬆️
test/test-derived-gauge.ts 100% <0%> (ø) ⬆️
src/grpc-stats/common-distributions.ts 100% <0%> (ø) ⬆️
src/metrics/metric-registry.ts 100% <0%> (ø) ⬆️
test/test-gauge.ts 100% <0%> (ø) ⬆️
... and 7 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 f219ec7...d6f208e. Read the comment docs.

Copy link
Contributor

@draffensperger draffensperger left a comment

Choose a reason for hiding this comment

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

LGTM with some optional/style nits

packages/opencensus-core/src/common/validations.ts Outdated Show resolved Hide resolved
packages/opencensus-core/src/common/validations.ts Outdated Show resolved Hide resolved
packages/opencensus-core/src/common/validations.ts Outdated Show resolved Hide resolved
1. Remove map -> constantLabels
2. Make labels values and keys merging code consistent.
3. Update error message
@mayurkale22 mayurkale22 merged commit 6f5c6b3 into census-instrumentation:master Apr 4, 2019
@mayurkale22 mayurkale22 deleted the customLabels branch April 4, 2019 20:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants