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

Add start method to StatsEventListener #259

Merged

Conversation

mayurkale22
Copy link
Member

With the current approach, we execute below apis for each request of new view and measurement.
onRegisterView - whenever a new view is registered and
onRecord - whenever a new measurement is recorded.

New approach: The plan is to start exporter that polls Metric from Metrics library (which is collection of metric from stats and gauges apis) and send batched data to backend.

Once the new approach is ready I will deprecate and remove onRegisterView and onRecord apis.

With the current approach, we are calling onRegisterView (whenever a new view is registered) and onRecord (whenever a new measurement is recorded). With the new approach, plan is to start exporter that polls Metric from Metrics library and send batched data to backend.
@codecov-io
Copy link

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #259      +/-   ##
==========================================
- Coverage   94.61%   94.54%   -0.07%     
==========================================
  Files         101      101              
  Lines        7311     7316       +5     
  Branches      690      690              
==========================================
  Hits         6917     6917              
- Misses        394      399       +5
Impacted Files Coverage Δ
src/exporters/console-exporter.ts 75% <0%> (-2.78%) ⬇️
src/zpages.ts 91.42% <0%> (-1.33%) ⬇️
src/prometheus-stats.ts 93.1% <0%> (-1.09%) ⬇️
test/test-stats.ts 99.02% <0%> (-0.98%) ⬇️
src/stackdriver-monitoring.ts 92.85% <0%> (-0.75%) ⬇️
src/stats/stats.ts 97.91% <0%> (ø) ⬆️

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 52c304e...3b2753a. Read the comment docs.

@mayurkale22 mayurkale22 merged commit fed0ad4 into census-instrumentation:master Jan 7, 2019
@mayurkale22 mayurkale22 deleted the StatsEventListener branch January 7, 2019 18:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants