Tyler Yahn
a5e9204b58
Merge branch 'master' into pre_release_v0.6.0
2020-05-21 15:45:47 -07:00
Joshua MacDonald
b17a7845df
Rename Register* to New* ( #761 )
2020-05-21 15:42:14 -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
4f3188ab95
Fix use of values in benchmark
2020-05-21 11:36:52 -07:00
jmacd
9d2e78ae2b
Comment
2020-05-21 11:21:13 -07:00
jmacd
17b8543050
Lint
2020-05-21 11:18:47 -07:00
jmacd
2aa0f1496e
Comment on linear vs binary search
2020-05-21 11:09:10 -07:00
jmacd
db993ec5cc
Cleanup sort
2020-05-21 10:46:22 -07:00
jmacd
9548817e7e
Add a benchmark
2020-05-21 10:45:26 -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
b63cf49bba
Use sort.Search to locate histogram bucket
2020-05-21 02:08:08 -07:00
jmacd
48a8a869fe
Upstream
2020-05-21 02:01:06 -07:00
jmacd
1c8c5df4db
resource.Merge uses label.MergeIterator
2020-05-21 00:33:39 -07:00
jmacd
0b5080372a
Add benchmark
2020-05-21 00:19:08 -07:00
Anthony J Mirabella
923a6c8afc
Replace sdktrace.WithResourceAttributes() with WithResource()
2020-05-20 16:08:43 -04: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
15e8edd498
Add the UpDownSumObserver instrument ( #750 )
...
* Add the UpDownSumObserver instrument
* Precommit
* Downcase error message
2020-05-20 10:19:51 -07:00
Vladimir Mihailenco
244ed23e44
Rename ScheduleDelayMillis to BatchTimeout ( #752 )
...
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-05-20 10:12:57 -07:00
Joshua MacDonald
1fab21ddbf
Support use of synchronous instruments in async callbacks ( #725 )
...
* Support use of synchronous instruments in async callbacks
* Add a test
2020-05-19 21:33:10 -07:00
Joshua MacDonald
c5f2252c48
Add the SumObserver instrument ( #747 )
...
* Add the SumObserver instrument
* Lint
2020-05-19 11:49:24 -07:00
Joshua MacDonald
0a333cade1
Add the UpDownCounter instrument ( #745 )
...
* Add UpDownCounter to the API
* Add an SDK test
* Comment fix
2020-05-19 10:00:22 -07:00
Joshua MacDonald
055e9c54e1
Disable parts of batch_span_processor test as flakes ( #743 )
...
* Name the BSP tests
* Add a drain wait group; use the stop wait group to avoid leaking a goroutine
* Lint & comments
* Fix
* Use defer/recover
* Restore the Add/Done...
* Restore the Add/Done...
* Consolidate select stmts
* Disable the test
* Lint
* Use better recover
2020-05-19 09:36:33 -07:00
Tyler Yahn
51ff97e534
Add timeout to push Controller ( #742 )
...
Addresses existing TODO in the push `tick` function by added a context
timeout set to a configurable Controller timeout. This ensures that hung
collections or exports do not have runaway resource usage.
Defaults to the length of a collector period.
2020-05-18 21:43:27 -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
Tyler Yahn
3e1d85ee23
Merge branch 'master' into master
2020-05-18 11:15:50 -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
Vladimir Mihailenco
4408b6e328
Remove buggy enqueueWait
2020-05-16 10:19:46 +03: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
1d554f34c1
Add standard package contain all semantic conventions
2020-05-15 12:42:13 -07:00
Tyler Yahn
55bbf51459
Switch to kv.Key types
2020-05-15 11:44:17 -07:00
Tyler Yahn
f7f3fc3918
Remove redundant "Key" from const names
2020-05-15 11:38:02 -07:00
Tyler Yahn
4eecaf5391
Update resourcekey package doc
2020-05-15 11:35:44 -07:00
Tyler Yahn
7c209b5c8c
Rename resourcekeys to singular resourcekey
2020-05-15 11:33:14 -07:00
Vladimir Mihailenco
b2285e0c71
Fix timer.Stop
2020-05-15 14:01:43 +03:00
Vladimir Mihailenco
28571207b7
Add a comment
2020-05-15 11:54:56 +03:00
Vladimir Mihailenco
88d9ad0ba8
Add ref to #174
2020-05-15 11:54:56 +03:00
Vladimir Mihailenco
8885bc404d
Move IsSampled check
2020-05-15 11:54:56 +03:00
Vladimir Mihailenco
774889cbfa
Add proper enqueue sync
2020-05-15 11:54:56 +03:00
Vladimir Mihailenco
ab19dddd0f
Update tests
2020-05-15 11:54:56 +03:00
Vladimir Mihailenco
891d16dd15
Replace Ticker with Timer since Ticker does not Reset yet
2020-05-15 11:54:56 +03:00
Vladimir Mihailenco
2719c0ac16
Rewrite processQueue for better batching
2020-05-15 11:54:56 +03:00
Tyler Yahn
ce266f9656
Prepare for releasing v0.5.0
2020-05-13 17:11:23 -07:00
Joshua MacDonald
fefdf59a0b
Batch Observer callback support ( #717 )
...
* api/metric changes from jmacd:jmacd/batch_obs_2
* Add an SDK test
* Use a single collector method
* Two fixes
* Comments; embed AsyncRunner
* Comments
* Comment fix
* More comments
* Renaming for clarity
* Renaming for clarity (fix)
* Lint
2020-05-13 16:27:52 -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