Joshua MacDonald
0e2fdfc682
Support cumulative, delta, and pass-through exporters ( #840 )
...
* Update Process()
* Checkpoint
* Add subtractor; fix test
* Fix all simple integrator tests
* Build the rest (checkpoint)
* Pass all but Prometheus tests
* Precommit pass
* Add aggregation.Kind argument to ExportKindFor
* Remove Subtractor support
* Remove dead test code
* Restore the Subtractor code
* Fix the tests
* Comments
* Add tests for MetricKind
* Add ChangeSign test
* Test ExportKind
* New file
* Rename ChangeSign
* Remove a TODO, add a TODO
* Remove Stateful remnants
* Typo
* Typo
* Test an invalid export kind
* Comments
* Lint
* Apply suggestions from code review
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
2020-06-22 22:59:51 -07:00
David C Wang
ce49579d66
Fixed OTLP example's accidental early close of exporter
...
* The exp.Stop() as argument to handleErr is getting executed
immediately. Wrap this with an anonymous func so that this
argument is executed when the defer statement is activated.
* From the "Tour of Go" docs on Defer: "The deferred call's arguments
are evaluated immediately, but the function call is not executed
until the surrounding function returns."
2020-06-09 20:36:17 +00:00
wtong98
4ac30219ae
Fix go.mod dependencies
2020-06-02 14:11:23 -05:00
wtong98
de094be4fc
Touch up details
2020-06-01 08:41:57 -05:00
wtong98
80d1eb98ed
Finish OTLP example
2020-05-27 10:06:33 -05:00
wtong98
a4cf6e1d69
Add OTLP metrics
2020-05-26 15:24:16 -05:00
wtong98
69ddc81a81
Add OTLP trace
2020-05-26 11:17:14 -05:00