Joshua MacDonald
1cdf4ee8e6
Create a export.Checkpointer API; refactor metric export pipeline test helpers ( #1055 )
...
* Add regexp filter in api/label, test
* Add regexp option to sdk.Config
* Return indistinct values only when keyRe != nil
* Filter in sdk
* Add an accumulator filter test
* SDK tests pass
* Precommit
* Undo set filters
* Backout related filter changes
* Add a new test
* Checkpoint
* Comments
* Comments in label.Set
* Lint
* Add Checkpointer
* Test refactor continues
* Refactor reducer test
* Checkpoint
* Update push_test
* Update pull controller
* Comment
* Remove pending PRs
* Remove exportertest pkg
* Revert basic changes
* Revert testing changes
* Restore processortest changes
* Precommit & comments
* Comments on pull semantics
* Comments
* Fix buggy test; incorrect expectation following error
* Finish this test
* Comments
* 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-08-13 13:12:32 -07:00
Tyler Yahn
1dbc75bc2f
Clean stale indirect dependency requirements ( #1041 )
...
* Clean stale indirect dependency requirements
In the recent changes to isolate the main `otel` package there were many
indirect dependencies of the package that were removed, however, the
go.mod was not automatically cleaned of these. This removes those (and
similar ones in the otel-collector example and otel exporter) and prunes
the go.sum files accordingly.
* Run in a clean system to reproduce build
2020-08-07 09:05:22 -07:00
Tyler Yahn
799c178925
Make opentracing bridge into own Go module ( #1038 )
...
* Make opentracing bridge into own Go module
* Update dependabot config
* Clean dependencies of project
Now the bridge is a module, clean all upstream modules that no longer
implicitly depend on it.
* Update Changelog
* go mod tidy
2020-08-06 07:59:41 -07:00
Anthony Mirabella
ae278e9186
Remove othttp and httptrace instrumentations that have moved to contrib ( #1032 )
2020-08-04 23:30:23 -07:00
dependabot[bot]
ea0720c05e
Bump google.golang.org/grpc from 1.30.0 to 1.31.0 ( #1004 )
...
* Bump google.golang.org/grpc from 1.30.0 to 1.31.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.30.0 to 1.31.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.30.0...v1.31.0 )
Signed-off-by: dependabot[bot] <support@github.com>
* Auto-fix go.sum changes in dependent modules
* Auto-fix go.sum changes in dependent modules
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: MrAlias <MrAlias@users.noreply.github.com>
2020-08-04 14:08:36 -07:00
Andy Schweig
5438916f62
Expose optional ResponseWriter interfaces. ( #979 )
...
http.ResponseWriters may implement additional interfaces
(http.CloseNotifier, http.Flusher, http.Hijacker, http.Pusher,
io.ReaderFrom) that get lost when the ResponseWriter is wrapped in
another object. This change uses the httpsnoop package to wrap the
ResponseWriter so that the resulting object implements any of the
optional interfaces that the original ResponseWriter implements as
well as using the replacement ResponseWriter methods that gather
information for tracing.
2020-07-30 10:30:47 -07:00
Tyler Yahn
fd61d2edec
Release v0.10.0 ( #990 )
...
* Prepare for releasing v0.10.0
* Update CHANGELOG
* Correct Changelog
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-07-30 08:57:24 -07:00
Tyler Yahn
8fbaa9d432
Make the SDK into its own Go module ( #985 )
...
* Remove otel/sdk dependency from grpctrace
Use otel/trace/testtrace instead and cleanup testing code.
* Update httptrace to not depend on the SDK
Update testing to use api/trace/testtrace instead.
* Add changes to Changelog
* Make the SDK its own Go module
* Upgrade go.mod to 1.14 project wide
* go mod tidy
2020-07-29 15:54:26 -07:00
dependabot[bot]
c5d77d234c
Bump github.com/google/go-cmp from 0.5.0 to 0.5.1 ( #957 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2020-07-22 10:03:41 -04:00
Tyler Yahn
58e50e249f
Release v0.9.0 ( #952 )
...
* Prepare for releasing v0.9.0
* Update Changelog
2020-07-20 12:40:42 -07:00
Tyler Yahn
aff7a80d5a
Release v0.8.0 ( #929 )
...
* Prepare for releasing v0.8.0
* Update Changelog
* Update Changelog
2020-07-10 09:23:53 -07:00
Joshua MacDonald
3475d5575e
Fix incorrect aggregation; Prometheus exporter behavior ( #903 )
...
* Avoid applying stale udpates; add a test
* Add Memory option to basic processor
* Always use memory in the pull controller
* Test the memory option
* Precommit
* Add a Prometheus-specific test
* More comment on Memory option
* Link to 862
* Remove sleep
* Update changelog
* Comment on stale and stateless aggregators
* Update sdk/metric/processor/basic/config.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Liz Fong-Jones <lizf@honeycomb.io>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-07-07 12:52:35 -07:00
Liz Fong-Jones
f1e3536baf
Update opentracing dependency ( #885 )
...
Co-authored-by: lizthegrey <lizthegrey@users.noreply.github.com>
2020-07-01 17:51:06 -04:00
Tyler Yahn
49ac8eb238
Prepare for the v0.7.0 release ( #876 )
...
* Prepare for releasing v0.7.0
* Update Changelog for v0.7.0 release
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-06-26 13:54:33 -07:00
ET
0594313fca
Update google.golang.org/grpc from 1.27.1 to 1.30.0 ( #870 )
...
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-06-24 16:07:08 -07:00
dependabot[bot]
9cdfdb2d3a
Bump github.com/stretchr/testify from 1.4.0 to 1.6.1 ( #824 )
...
* Bump github.com/stretchr/testify from 1.4.0 to 1.6.1
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.4.0 to 1.6.1.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.4.0...v1.6.1 )
Signed-off-by: dependabot[bot] <support@github.com>
* Update go.mod
* math.Inf(1)+math.Inf(-1)=NaN
Math is hard
* Remove indirect transitive dependency
* Auto-fix go.sum changes in dependent modules
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Liz Fong-Jones <lizf@honeycomb.io>
Co-authored-by: Evan Torrie <evantorrie@users.noreply.github.com>
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-06-24 11:16:21 -07:00
dependabot[bot]
18b096208c
Bump github.com/prometheus/client_golang from 1.7.0 to 1.7.1 in /exporters/metric/prometheus ( #867 )
...
* Bump github.com/prometheus/client_golang in /exporters/metric/prometheus
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/prometheus/client_golang/releases )
- [Changelog](https://github.com/prometheus/client_golang/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prometheus/client_golang/compare/v1.7.0...v1.7.1 )
Signed-off-by: dependabot[bot] <support@github.com>
* Auto-fix go.sum changes in dependent modules
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2020-06-24 10:10:41 -07:00
Joshua MacDonald
2966505271
Rename Integrator to Processor ( #863 )
...
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-06-23 12:00:15 -07:00
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
dependabot[bot]
92058a3548
Bump github.com/prometheus/client_golang from 1.5.0 to 1.7.0 in /exporters/metric/prometheus ( #838 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: lizthegrey <lizthegrey@users.noreply.github.com>
2020-06-22 14:54:56 -04:00
dependabot[bot]
d9c309ff52
Bump github.com/benbjohnson/clock from 1.0.0 to 1.0.3 ( #815 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: evantorrie <evantorrie@users.noreply.github.com>
Co-authored-by: Liz Fong-Jones <lizf@honeycomb.io>
2020-06-22 14:31:36 -04:00
dependabot[bot]
25887d5bff
Bump github.com/stretchr/testify from 1.4.0 to 1.6.1 in /exporters/metric/prometheus ( #822 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: evantorrie <evantorrie@users.noreply.github.com>
Co-authored-by: Liz Fong-Jones <lizf@honeycomb.io>
2020-06-22 14:18:36 -04:00
dependabot[bot]
59c658380b
Bump github.com/google/go-cmp from 0.4.0 to 0.5.0 ( #836 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: evantorrie <evantorrie@users.noreply.github.com>
2020-06-22 13:31:15 -04:00
Joshua MacDonald
4e4271791f
Add export timestamps; distinguish Accumulation vs. Record ( #835 )
...
* Introduce Accumulation
* Refactor export structs
* FTB exporters
* Test timestamps
* Test no-start case
* From feedback
* Apply suggestions from code review
(Thanks @MrAlias!)
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
* Comments in sdk/metric/integrator/test
* Fix build
* Comments and feedback
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-06-18 10:16:33 -07:00
jmacd
6f0c6b4683
Split aggregation.go
2020-06-09 22:53:30 -07:00
Tyler Yahn
3e95c9c78e
Update error handling exporters to use global.Handle
2020-06-02 12:30:55 -07:00
Tyler Yahn
ad37aae65c
Prepare for releasing v0.6.0
2020-05-21 12:10:12 -07:00
Tyler Yahn
0d3daf02b1
Merge branch 'master' into jmacd/prom_res
2020-05-21 11:55:41 -07:00
jmacd
dacebd6430
Use []float64 for boundaries
2020-05-21 10:29:03 -07:00
jmacd
3d2493463c
Comments
2020-05-21 09:53:34 -07:00
jmacd
7172b30492
Add resources in the Prom tests
2020-05-21 01:38:43 -07:00
jmacd
196d7740bd
Add resource support
2020-05-21 01:29:09 -07:00
jmacd
c829d3ea67
Tests pass
2020-05-21 00:36:17 -07:00
jmacd
0b5080372a
Add benchmark
2020-05-21 00:19:08 -07:00
Joshua MacDonald
5461669733
Add a pull controller, use it for Prometheus ( #751 )
...
* Checkpoint new pull controller
* Tests pass
* Fix example
* Example fix
* Add a test
* Comment
* address MrAlias's feedback
2020-05-20 10:27:26 -07:00
Joshua MacDonald
21d094af43
Refactor the api/metrics push controller; add CheckpointSet synchronization ( #737 )
...
* Checkpoint
* Finish tests
* Checkpoint
* Checkpoint (builds)
* Checkpoint + RWMutex interface
* Comments
* Remove commitLock
* Apply feedback
2020-05-18 18:37:41 -07:00
Joshua MacDonald
69da3056f2
Move Resource into the metric export Record ( #739 )
...
* Checkpoint
* Tests pass
2020-05-18 17:44:28 -07:00
Joshua MacDonald
ee3c9ed1a5
Rename Observer to ValueObserver ( #734 )
...
* Observer -> ValueObserver
* Move wrappers into async.go
2020-05-18 11:03:43 -07:00
Joshua MacDonald
76baa9cc7a
Remove the push controller named Meter map ( #738 )
...
* Remove the push controller named Meter map
* Checkpoint
* Remove Provider impls
* Add a test
* Expose Provider() getter instead of implementing the interface
2020-05-18 10:48:58 -07:00
Joshua MacDonald
2dee67652a
Histogram aggregator initial state ( fix #735 ) ( #736 )
...
* Add a test
* Add comments and description options
* Another test
* Undo buffer re-use
* Mod tidy
* Precommit
* Again
* Copyright
* Undo rename
2020-05-18 09:44:33 -07:00
Joshua MacDonald
6bc14ffd2c
Replace Measure instrument by ValueRecorder instrument ( #732 )
...
* Measure->Value recorder and cleanups re: measure
* More edits
* More edits
* Feedback
2020-05-15 22:11:12 -07:00
Tyler Yahn
ce266f9656
Prepare for releasing v0.5.0
2020-05-13 17:11:23 -07:00
Joshua MacDonald
587cde3352
Remove NewKey and update doc comment ( #721 )
...
* Update doc comment
* Remove NewKey
* NewKey->Key
2020-05-13 16:21:23 -07:00
Chen Yixiao
1301b6f3e4
Move core and key to kv package ( #720 )
...
* Move core to kv
* Move kv.Value to kv.value.Value
* Move key to kv
2020-05-13 16:06:03 -07:00
Joshua MacDonald
64afb05e53
Metric SDK renames to align with draft SDK spec ( #710 )
...
* Replace batcher w/ integrator; rename ungrouped to simple
* SDK -> Accumulator
* Cleamup
* Address feedback
2020-05-11 10:23:06 -07:00
Chen Yixiao
f0855b7d08
Move Number to api/metric package ( #706 )
...
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-05-10 23:44:42 -07:00
Rahul Patel
1de7f68bfc
Prepare for releasing v0.4.3 ( #664 )
2020-04-24 15:24:00 -07:00
Joshua MacDonald
3008c1bf02
Pass Resources through the metrics export pipeline ( #659 )
2020-04-24 09:44:21 -07:00
Joshua MacDonald
cd1be0e698
Use the label.Set.Equivalent value instead of an encoding in the batcher ( #658 )
2020-04-24 09:32:49 -07:00
Joshua MacDonald
0bb12d9b1b
New api/label
package, common label set impl ( #651 )
...
* New label set API
* Checkpoint
* Remove label.Labels interface
* Fix trace
* Remove label storage
* Restore metric_test.go
* Tidy tests
* More comments
* More comments
* Same changes as 654
* Checkpoint
* Fix batch labels
* Avoid Resource.Attributes() where possible
* Update comments and restore order in resource.go
* From feedback
* From feedback
* Move iterator_test & feedback
* Strenghten the label.Set test
* Feedback on typos
* Fix the set test per @krnowak
* Nit
2020-04-23 12:10:58 -07:00