Tyler Yahn
a98bb979df
Update Tracer API with instrumentation version ( #802 )
...
* Update Tracer API with instrumentation version
Add option to the `Provider.Tracer` method to specify the
instrumentation version.
Update the global, noop, opentracing bridge, and default SDK
implementations.
This does not propagate the instrumentation library version to the
exported span. That is left for a follow-on PR.
* Revert trace_test.go
This is for the next PR.
* Update SDK to include version for default instrumentation
If the instrumentation library name is empty and the default
instrumentation is uses, include the SDK version.
* Update comments and documentation
* Remove default instrumentation version
2020-06-09 11:47:54 -07:00
Joshua MacDonald
9401bd9cda
Remove Context arguments from Aggregator.Checkpoint and Integrator.Process ( #803 )
...
* Typo
* Swap order of ddsketch.New for consistency w/ histogram.New
* Remove Integrator.Process ctx argument
* Remove Aggregator.Checkpoint ctx argument
* Revert bugfix
2020-06-09 11:00:50 -07:00
Tyler Yahn
50f0f85c79
Discard error in trace testing
2020-06-02 13:33:19 -07:00
Tyler Yahn
e73d119d6c
Update concurrency support in test Handlers
2020-06-02 13:03:02 -07:00
Tyler Yahn
8c5b1663a2
Fix push_test.go
...
Add test handler
2020-06-02 12:50:34 -07:00
Tyler Yahn
2efa30feec
Error on span name set with uninitialized
2020-06-02 12:43:01 -07:00
Tyler Yahn
0b928ed0a1
Update metric SDK to use oterror.Handler
2020-06-02 12:26:25 -07:00
Joshua MacDonald
86a10268b8
Minor cleanups in sdk/metric/aggregator ( #781 )
...
* Typo
* Swap order of ddsketch.New for consistency w/ histogram.New
2020-05-30 20:16:40 -07:00
Paulo Janotti
b3f17329c8
Remove SpanID from sampling parameters
...
Update code per latest spec, see:
https://github.com/open-telemetry/opentelemetry-specification/pull/621
2020-05-28 16:08:04 -07:00
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