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

Exporter/Stackdriver: Support Exemplar in Stackdriver TimeSeries#520

Merged
mayurkale22 merged 3 commits into
census-instrumentation:masterfrom
mayurkale22:exemplar
May 20, 2019
Merged

Exporter/Stackdriver: Support Exemplar in Stackdriver TimeSeries#520
mayurkale22 merged 3 commits into
census-instrumentation:masterfrom
mayurkale22:exemplar

Conversation

@mayurkale22

Copy link
Copy Markdown
Member

Fixes #365, Follow-up PR of #405.

Stackdriver TimeSeries#Exemplar API: https://cloud.google.com/monitoring/api/ref_v3/rest/v3/TimeSeries#Exemplar

@codecov-io

codecov-io commented May 13, 2019

Copy link
Copy Markdown

Codecov Report

Merging #520 into master will increase coverage by 0.15%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #520      +/-   ##
==========================================
+ Coverage   95.06%   95.22%   +0.15%     
==========================================
  Files         147      146       -1     
  Lines        9591     9927     +336     
  Branches      538      545       +7     
==========================================
+ Hits         9118     9453     +335     
- Misses        473      474       +1
Impacted Files Coverage Δ
src/zpages-frontend/page-handlers/templates-dir.ts 75% <0%> (-25%) ⬇️
src/detect-resource.ts 90.9% <0%> (-9.1%) ⬇️
src/stackdriver-monitoring.ts 77.77% <0%> (-2.78%) ⬇️
test/test-detect-resource.ts 99.02% <0%> (-0.98%) ⬇️
src/grpc-stats/server-stats.ts 100% <0%> (ø) ⬆️
src/resource-labels.ts 100% <0%> (ø) ⬆️
...c/zpages-frontend/controllers/tracez.controller.ts 100% <0%> (ø) ⬆️
...es-frontend/controllers/traceconfigz.controller.ts 100% <0%> (ø) ⬆️
src/grpc-stats/client-stats.ts 100% <0%> (ø) ⬆️
src/zpages-frontend/controllers/rpcz.controller.ts 100% <0%> (ø) ⬆️
... and 10 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 8481335...004d5de. Read the comment docs.

value: bucket.exemplar!.value,
timestamp: toISOString(bucket.exemplar!.timestamp),
attachments: Object.keys(bucket.exemplar!.attachments)
.map((key) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What would you think about breaking out a helper function to map from a bucket attachment key to an exemplar?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sure, Done.

@mayurkale22 mayurkale22 merged commit f522ce2 into census-instrumentation:master May 20, 2019
@mayurkale22 mayurkale22 deleted the exemplar branch May 20, 2019 22:16
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.

Exporter/Stackdriver: Support Exemplar in Stackdriver TimeSeries.

4 participants