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

778 Commits

Author SHA1 Message Date
dependabot[bot]
693fa3d990
Bump google.golang.org/grpc from 1.27.1 to 1.29.1 in /exporters/trace/jaeger (#831)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ET <evantorrie@users.noreply.github.com>
Co-authored-by: Liz Fong-Jones <lizf@honeycomb.io>
2020-06-22 13:58:02 -04:00
dependabot[bot]
59c658380b
Bump github.com/google/go-cmp from 0.4.0 to 0.5.0 (#836)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: evantorrie <evantorrie@users.noreply.github.com>
2020-06-22 13:31:15 -04:00
dependabot[bot]
9a8674cbae
Bump github.com/google/go-cmp from 0.4.0 to 0.5.0 in /exporters/trace/jaeger (#837)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: evantorrie <evantorrie@users.noreply.github.com>
Co-authored-by: Liz Fong-Jones <lizf@honeycomb.io>
2020-06-22 13:01:08 -04:00
dependabot[bot]
818105ca73
Bump github.com/google/go-cmp from 0.4.0 to 0.5.0 in /exporters/otlp (#839)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: evantorrie <evantorrie@users.noreply.github.com>
Co-authored-by: Liz Fong-Jones <lizf@honeycomb.io>
2020-06-22 12:54:07 -04:00
dependabot[bot]
b0e67d2eb1
Bump google.golang.org/api from 0.20.0 to 0.28.0 in /exporters/trace/jaeger (#843)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: evantorrie <evantorrie@users.noreply.github.com>
Co-authored-by: Liz Fong-Jones <lizf@honeycomb.io>
2020-06-22 12:48:52 -04:00
ET
f29cc497bf
Apply transitive dependabot go.mod dependency updates as part of automatic Github workflow (#844) 2020-06-22 12:34:11 -04:00
Joshua MacDonald
4e4271791f
Add export timestamps; distinguish Accumulation vs. Record (#835)
* Introduce Accumulation

* Refactor export structs

* FTB exporters

* Test timestamps

* Test no-start case

* From feedback

* Apply suggestions from code review

(Thanks @MrAlias!)

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

* Comments in sdk/metric/integrator/test

* Fix build

* Comments and feedback

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-06-18 10:16:33 -07:00
almariah
c36fcd2dc4
set othttp span status from HTTP status code (#832)
* set othttp span status from HTTP status code

* set othttp span status from HTTP status code

* set othttp span status from HTTP status code

* remove the cast to int of statusCode

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-06-17 09:43:07 -07:00
Yoan Blanc
3d3664ec04
fix: typo (#834)
it seems to be for a pull controller
2020-06-17 09:05:29 -07:00
Liz Fong-Jones
a7a839bc55
Create dependabot.yml (#814)
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2020-06-15 18:41:33 -04:00
Joshua MacDonald
9925ebe517
Single-state Aggregator and test refactor (#812)
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-06-13 00:55:01 -07:00
Tyler Yahn
288a3dd435
Metrics instrumentation version (#811)
* Support instrumentation library in metrics

* Update stdout exporter to display instrumentation info

* Fix tests that use the STDOUT exporter

* Refactor to keep SDK out of API

* Update global Meter and test Meter version

* Revert unneeded import syntax change

* Fix Unit comment

* Update comments

* Update comment

* Revert no-op change to import
2020-06-12 09:11:17 -07:00
Tyler Yahn
7d5117fafd
Changes AlwaysParentSample to ParentSample(fallback) (#810)
* Changes AlwaysParentSample to ParentSample(fallback)

To match
https://github.com/open-telemetry/opentelemetry-specification/blob/v0.5.0/specification/trace/sdk.md#parentorelse
introduced in
https://github.com/open-telemetry/opentelemetry-specification/pull/609

* Fix lint
2020-06-11 08:27:21 -07:00
Tyler Yahn
4bf35c611b
Merge pull request #796 from XSAM/feature/jaeger-exporter-env
Add environment variables for Jaeger exporter
2020-06-10 10:34:24 -07:00
Tyler Yahn
f06ae571ff
Merge branch 'master' into feature/jaeger-exporter-env 2020-06-10 10:28:51 -07:00
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