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
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
tensorchen
2ffbd869d7
Rename TraceFlagsSampled, TraceFlagsUnused
2020-05-06 01:41:54 +08:00
tensorchen
bae2298a36
Rename trace.TraceID & trace.TraceIDFromHex
2020-05-03 13:48:38 +08:00
tensorchen
c6c155de6f
Move SpanContext from core package into trace
2020-05-02 20:17:11 +08:00
ET
34bd998963
Remove internal StateLocker implementation ( #688 )
...
Fixes #657
With the changes in #667 and #669 to use a plain-old-mutex for
concurrent access of Histogram and MinMaxSumCount aggregators,
the StateLocker implementation is no longer used in the project.
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-04-30 14:15:04 -07:00
Joshua MacDonald
d7b3c3d7e7
Fix and test uses of global.Meter with RecordBatch() ( #680 )
...
* Test use of global.Meter.RecordBatch
* Avoid new dep
2020-04-29 16:13:55 -07:00
ET
e4ec924b25
Reimplement histogram using mutex instead of stateLocker ( #669 )
...
* Reimplement histogram using mutex instead of stateLocker
Move existing implementation to histogram_statelocker.go. Implement
benchmarks for single thread and parallel histogram updates comparing
mutex version to stateLocker version
* Drop statelocker implementation and alignment tests, benchmarks
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-04-29 10:08:58 -07:00
ET
bd16ce0cfa
Switch MinMaxSumCount to a mutex lock instead of StateLocker ( #667 )
...
* Switch MinMaxSumCount to a mutex lock instead of StateLocker
With multiple values being modified for each Update(), a single mutex
lock and non-atomic operations ends up being faster than making each
value update into an atomic operation.
* Remove StateLocker implementation and comparison benchmarks
* Remove field offset tests. No longer required with no atomics.
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-04-28 18:27:13 -07:00
Liz Fong-Jones
ee30252752
add SetAttribute(string,interface{}) ( #674 )
2020-04-28 14:24:47 -07:00