1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
Commit Graph

838 Commits

Author SHA1 Message Date
Tyler Yahn
c38abde14b
Proof of concept 2020-05-21 09:45:24 -07:00
Tyler Yahn
84a21fe9d7
Merge pull request #755 from realdave/748-prevent-panic
Ensure gRPC ClientStream override methods do not panic
2020-05-21 08:53:53 -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
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
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
jmacd
63df1b5e22 Add merged iterator 2020-05-20 23:20:29 -07:00
Dave McGregor
316b4fdc66
Merge branch 'master' into 748-prevent-panic 2020-05-20 18:26:01 -04:00
Dave McGregor
f9bf364f23 Ensure gRPC ClientStream override methods do not panic.
Previously, the channel used to aggregate the finished state of the stream
could be closed while still open to receiving stream state events.

This removes the closing of the channel, and instead adds a "done" channel that
is used to skip sending to the channel after the receiver is done.
2020-05-20 18:07:53 -04:00
Tyler Yahn
029c0ee71d
Merge pull request #754 from Aneurysm9/OTG-753
Replace sdktrace.WithResourceAttributes() with WithResource()
2020-05-20 14:19:21 -07:00
Anthony J Mirabella
068ad5b3a5 make precommit to cleanup otel-collector/go.sum 2020-05-20 16:42:34 -04: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
Tyler Yahn
19ee7b7a97
Merge pull request #711 from stefanprisca/master
OpenTelemetry Collector Demo
2020-05-20 09:26:53 -07:00
Stefan Prisca
3f24acf4c0 Merge branch 'master' of github.com:stefanprisca/opentelemetry-go into sp-master 2020-05-20 10:39:50 +02:00
Stefan Prisca
e1b144e775 Wait for batcher to push changes 2020-05-20 10:38:34 +02:00
Stefan Prisca
1f16b8a573 Merge branch 'master' of https://github.com/open-telemetry/opentelemetry-go into sp-master 2020-05-20 10:28:40 +02: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
Vladimir Mihailenco
9adedba214
Fix String in Infer (#746) 2020-05-19 09:10:30 -07:00
Stefan Prisca
7c9f0696ca
Update Makefile 2020-05-19 07:29:52 +02: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
Tyler Yahn
1e36a61edf
Fix panic in gRPC UnaryServerInfo (#740)
Fixes unresolved issue identified in #691 and attempted in #697.

Adds unit test to ensure the UnaryServerInfo function does not panic
during an error returned from the handler and appropriately annotates
the span with the correct event.

Restructures the interceptor to remove this class of errors.

Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-05-18 18:54:38 -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
5a534a0b00
Merge pull request #719 from vmihailenco/master
Rewrite processQueue for better batching
2020-05-18 11:21:37 -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
Stefan Prisca
8bcefd434e remove unnecessary jaeger files & add licence header 2020-05-16 12:37:47 +02:00
Stefan Prisca
c80ed298db
Update example/otel-collector/k8s/otel-collector.yaml
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-05-16 12:16:04 +02:00
Stefan Prisca
2a00038175
Update example/otel-collector/k8s/namespace.yaml
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-05-16 12:15:53 +02: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
ET
0122b586b7
Ensure golang alpine image is running golang-1.14 (#733)
Older versions of go (even only as recently as 1.12.7) have problems
building outside of $GOPATH
2020-05-15 21:53:05 -07:00
Tyler Yahn
a5565e8604
Merge pull request #731 from MrAlias/standards
Add api/standard package to implement semantic conventions
2020-05-15 16:46:08 -07:00
Tyler Yahn
c8e23c22bc
Merge branch 'master' into standards 2020-05-15 16:40:26 -07:00
Tyler Yahn
47d71328a0
Merge pull request #695 from mujtaba-ahmed12/grpctest
Added test for grpc UnaryInterceptorClient
2020-05-15 16:33:35 -07:00
Tyler Yahn
55d4f7c31f
Upgrade to v0.5.0 2020-05-15 16:27:40 -07:00
Tyler Yahn
56547c988a
Merge branch 'master' into grpctest 2020-05-15 15:47:13 -07:00
Tyler Yahn
5abfeb02a9
Add tracing standards 2020-05-15 15:20:30 -07:00
Ahmed Mujtaba
f4a25cf745 Added condition for missing attr received in attr expected 2020-05-15 22:43:07 +02:00