1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-22 20:06:07 +02:00
Commit Graph

713 Commits

Author SHA1 Message Date
Tyler Yahn
3b22e73328
Merge pull request #808 from jmacd/jmacd/agg_refactor
Add aggregation.Kind and rename sdk/export/metric/aggregator to aggregation
2020-06-10 10:20:58 -07:00
Sam Xie
659aac3275 Prevent panic while parsing tags 2020-06-10 17:03:26 +08:00
jmacd
8b58f4f48e Uppercase 2020-06-10 00:53:31 -07:00
jmacd
e3c9929313 Remove dead code 2020-06-10 00:52:41 -07:00
jmacd
a877fbbb85 Comments 2020-06-10 00:42:57 -07:00
jmacd
8483cc3d23 Add Aggregation.Kind() 2020-06-10 00:32:14 -07:00
jmacd
bb2eb8ee26 Comments 2020-06-10 00:05:17 -07:00
jmacd
6f0c6b4683 Split aggregation.go 2020-06-09 22:53:30 -07:00
jmacd
da2bdb8249 Update aggregation.go/aggregator.go 2020-06-09 22:41:51 -07:00
Tyler Yahn
e53841a4b4
Support Instrumentation Library Info in Trace Export Pipeline (#805)
* 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.

* Support instrumentation library in SDK trace exports

* Update Jaeger exporter to export instrumentation
2020-06-09 22:15:53 -07:00
Sam Xie
4b8f8b90dc Remove WithDisabledFromEnv from NewRawExporter 2020-06-10 11:36:25 +08:00
Sam Xie
0966ad51ca Use the noop provider instead of the disabled exporter 2020-06-10 11:10:17 +08:00
Sam Xie
fe65825510 Use EnvStore to recover environment variables in testing 2020-06-10 11:10:17 +08:00
Sam Xie
538c763360 Add EnvStore to store and recover environment variables 2020-06-10 11:10:17 +08:00
Sam Xie
a242bd7df2 Improve memory allocation while parsing tags 2020-06-10 11:10:17 +08:00
Sam Xie
e2ab0e0b98 Use environment variables as default options 2020-06-10 11:10:17 +08:00
Sam Xie
11032a87f8 Add license header 2020-06-10 11:10:17 +08:00
Sam Xie
d8d7b41695 Add environment variables for jaeger exporter
Handle these environment variables: JAEGER_SERVICE_NAME, JAEGER_DISABLED, JAEGER_TAGS, JAEGER_ENDPOINT, JAEGER_USER, JAEGER_PASSWORD
2020-06-10 11:10:17 +08:00
Sam Xie
a234027fde Add disabled field for jaeger exporter 2020-06-10 11:10:17 +08:00
Tyler Yahn
c367f256a2
Merge pull request #804 from MrAlias/handler-test
Fix global handler_test.go test failure
2020-06-09 17:36:04 -07:00
Tyler Yahn
b2b914984d
Delay the sends to not overload 2020-06-09 17:21:01 -07:00
Tyler Yahn
a0a1abc666
Merge branch 'master' into handler-test 2020-06-09 15:37:03 -07:00
Tyler Yahn
ba0203a208
Merge pull request #806 from codeboten/send-headers
Send configured headers with every request
2020-06-09 15:36:43 -07:00
Tyler Yahn
9ce42c89c5
Merge branch 'master' into send-headers 2020-06-09 15:31:27 -07:00
Vladimir Mihailenco
7ebd7b5ffa
Fix BatchSpanProcessor.Shutdown to wait until all spans are processed (#766)
* Fix BatchSpanProcessor.Shutdown to wait until all spans are processed

Currently it exits too soon - before drainQueue is finished

* Check bsp.stopCh to reliably drop span when batcher is stopped

* Enable tests

* Always use WithBlocking

Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-06-09 15:20:48 -07:00
Tyler Yahn
c58680a772
Merge pull request #807 from dcwangmit01/fix-otlp-example
Fixed OTLP example's accidental early close of exporter
2020-06-09 14:04:38 -07:00
Alex Boten
6365fe9288 refactor following review feedback 2020-06-09 13:59:22 -07:00
alrex
f30ac1e329
Update exporters/otlp/otlp_integration_test.go
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-06-09 13:53:30 -07:00
David C Wang
ce49579d66 Fixed OTLP example's accidental early close of exporter
* The exp.Stop() as argument to handleErr is getting executed
  immediately.  Wrap this with an anonymous func so that this
  argument is executed when the defer statement is activated.
* From the "Tour of Go" docs on Defer: "The deferred call's arguments
  are evaluated immediately, but the function call is not executed
  until the surrounding function returns."
2020-06-09 20:36:17 +00:00
Alex Boten
c28b510ec5 Send configured headers with every request 2020-06-09 12:30:40 -07:00
Tyler Yahn
388dbc785f
Update global handler_test.go
On slower VMs (like the CI VMs), this test was timing out in 2ms and
failing. Additionally, in the process of failing, the suite tear-down
function would reset the globalHandler and cause a race with the spawned
goroutine that was abandoned.

This increases the pause from 2ms to 10ms, unifies and simplifies the
wait logic, and stops the child goroutine on failure.
2020-06-09 12:07:23 -07:00
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
a43367a7a4
Merge pull request #790 from vmingchen/otlp-example
Add example that uses OTLP and the collector
2020-06-04 08:40:09 -07:00
Tyler Yahn
9318a73297
Run precommit 2020-06-04 08:29:10 -07:00
Tyler Yahn
cafdc869ea
Merge branch 'master' into otlp-example 2020-06-04 08:19:57 -07:00
Tyler Yahn
eb14b395bb
Merge pull request #791 from MrAlias/err-handle
Update Error Handling
2020-06-02 13:44:20 -07:00
Tyler Yahn
5fa286d44d
Update internal/metric/async.go
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2020-06-02 13:40:20 -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
wtong98
f86491e1ec Add replace directive to example go.mod 2020-06-02 14:31:30 -05:00
Tyler Yahn
3e95c9c78e
Update error handling exporters to use global.Handle 2020-06-02 12:30:55 -07:00
wtong98
cffb360324 Merge branch 'master' into otlp-example.
Sync the local branch with upstream changes
2020-06-02 14:28:46 -05:00
Tyler Yahn
0cb2666b7c
Update internal metric testing with global.Handle 2020-06-02 12:27:55 -07:00
Tyler Yahn
0b928ed0a1
Update metric SDK to use oterror.Handler 2020-06-02 12:26:25 -07:00
wtong98
4ac30219ae Fix go.mod dependencies 2020-06-02 14:11:23 -05:00
Tyler Yahn
cff4ddf888
Merge pull request #777 from MrAlias/otlp
Add gRPC Default Service Config To OTLP Exporter
2020-06-02 10:45:45 -07:00
Tyler Yahn
289f372308
Merge branch 'master' into otlp 2020-06-02 10:41:44 -07:00