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

50 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 ()
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 ()
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 ()
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]
b0e67d2eb1
Bump google.golang.org/api from 0.20.0 to 0.28.0 in /exporters/trace/jaeger ()
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
Tyler Yahn
f06ae571ff
Merge branch 'master' into feature/jaeger-exporter-env 2020-06-10 10:28:51 -07:00
Sam Xie
659aac3275 Prevent panic while parsing tags 2020-06-10 17:03:26 +08:00
Tyler Yahn
e53841a4b4
Support Instrumentation Library Info in Trace Export Pipeline ()
* 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
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
3e95c9c78e
Update error handling exporters to use global.Handle 2020-06-02 12:30:55 -07:00
Anthony J Mirabella
0e8fb1cb4f Ensure zipkin exporter reads and closes response body 2020-06-02 11:46:34 -04:00
Paul Thomson
6929c15957 Add application/json header 2020-05-29 06:24:22 +10:00
Tyler Yahn
ad37aae65c
Prepare for releasing v0.6.0 2020-05-21 12:10:12 -07:00
Tyler Yahn
ce266f9656
Prepare for releasing v0.5.0 2020-05-13 17:11:23 -07:00
Chen Yixiao
1301b6f3e4
Move core and key to kv package ()
* Move core to kv

* Move kv.Value to kv.value.Value

* Move key to kv
2020-05-13 16:06:03 -07:00
Liz Fong-Jones
bafdd1b138
Merge branch 'master' into zipkin_mock_addr 2020-05-05 14:08:30 -04:00
tensorchen
375083a085 Update mockZipkin addr from :0 to 127.0.0.1:0 2020-05-06 01:50:00 +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
Joshua MacDonald
4c9a29d2d7
Add a key benchmark, use reflection in key.Infer() ()
* Add a key benchmark, optimize SDK SetAttribute

* Use reflect in key.Infer

* Move to separate benchmark file; remove pointer test; remove dead comment

* Run go mod tidy

* Add license header

* Use the reflect scalar accessors

Co-authored-by: Liz Fong-Jones <lizf@honeycomb.io>
2020-04-30 13:06:00 -07:00
Igor German
5863f8562b
Add jaeger option that allows to specify custom http client () 2020-04-28 14:35:34 -04:00
Rahul Patel
1de7f68bfc
Prepare for releasing v0.4.3 () 2020-04-24 15:24:00 -07:00
Joshua MacDonald
0bb12d9b1b
New api/label package, common label set impl ()
* New label set API

* Checkpoint

* Remove label.Labels interface

* Fix trace

* Remove label storage

* Restore metric_test.go

* Tidy tests

* More comments

* More comments

* Same changes as 654

* Checkpoint

* Fix batch labels

* Avoid Resource.Attributes() where possible

* Update comments and restore order in resource.go

* From feedback

* From feedback

* Move iterator_test & feedback

* Strenghten the label.Set test

* Feedback on typos

* Fix the set test per @krnowak

* Nit
2020-04-23 12:10:58 -07:00
Joshua MacDonald
acb350b8f3
Support JSON marshal of Resources ()
* Support JSON marshal of Resources

* Add a test

* Another test

* Fix arch bug

* Fix other test
2020-04-22 14:32:58 -07:00
NiaoGe
d20fc722f2
Fix typo trace.Exporter to trace.SpanSyncer ()
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-04-21 20:34:53 -07:00
Milad
ddad4d45ae
trace exporter: using type names for return values ()
* trace exporter: using type names for return values

* Update jaeger.go

Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-04-21 20:30:57 -07:00
Krzesimir Nowak
927d9155ae
Increase the visibility of the api/key package ()
* Point to the convenience functions in api/key package

This is to increase the visibility of the api/key package through the
api/core package, otherwise developers often tend to miss the api/key
package altogether and write `core.Key(name).TYPE(value)` and complain
at the verbosity of such a construction. The api/key package would
allow them to write `key.TYPE(name, value)`.

* Use the api/key package where applicable

This transforms all the uses of `core.Key(name).TYPE(value)` to
`key.TYPE(name, value)`. This also should help increasing the
visibility of the api/key package for developers reading the otel-go
code.

Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-04-21 20:26:51 -07:00
Oleg Shatnyuk
cf7c4e5328
fix zipkin without local endpoint with service name () 2020-04-18 23:02:29 -07:00
Rahul Patel
857e80c270
Prepare for releasing v0.4.2 () 2020-03-31 12:57:37 -07:00
Liz Fong-Jones
02b6be15e0
Pre release v0.4.1 ()
* fix release script for ubuntu

* Prepare for releasing v0.4.1
2020-03-31 13:02:15 -04:00
Rahul Patel
57d5f55600
Prepare for releasing v0.4.0 ()
* Prepare for releasing v0.4.0

* update README.

* remove target date for released features.
2020-03-30 14:33:27 -07:00
Tyler Yahn
a485d0ec64
Update License header for all source files ()
* Update License header for all source files

- Add Apache 2.0 header to source files that did not have one.
- Update all existing headers dated to 2019 to be 2020
- Remove comma from License header to comply with the Apache 2.0
  guidelines.

* Update Copyright notice

Use the standard Copyright notices outlined by the
[CNCF](https://github.com/cncf/foundation/blob/master/copyright-notices.md#copyright-notices)
2020-03-23 22:41:10 -07:00
Rahul Patel
a1c243965e
Prepare for releasing v0.3.0 () 2020-03-21 14:06:39 -07:00
Rahul Patel
80b720a771
update stdout trace with resource. ()
* update stdout trace with resource.

* convert resource to span attributes.

* remove resource reference after converting to Span Attributes.
2020-03-16 16:48:35 -07:00
Rahul Patel
74a528520b
update jaeger exporter to translate resources to tags. () 2020-03-16 16:38:21 -07:00
Rahul Patel
6ada85adba
add resource option to Provider. ()
- update otlp exporter to export resources.
2020-03-13 13:07:36 -07:00
Yoshi Yamaguchi
fcc4aca8c7
Fix typo in module name () 2020-03-12 20:48:49 -07:00
Krzesimir Nowak
d9210f5676
Zipkin exporter ()
* Add zipkin exporter

The zipkin exporter implements the SpanBatcher interface. It follows
the current-at-the-time-of-writing document about conversion from
OpenTelemetry span data to Zipkin spans. Which means that endpoint
information is not yet filled.

* Fix typo in docs

* Add a zipkin example

This sends span information to a locally running zipkin collector.
Currently I have a problem getting the collector to show me the spans
after accepting them with HTTP 202. Not sure if this is because of
missing endpoint information.

* Make gitignore consistent

The fixed paths should be prefixed with a slash. The "relative" paths
mean that git will ignore all the files that end with the path.

* Add tests for zipkin exporter
2020-03-11 14:49:02 -07:00
Gustavo Silva Paiva
85751428a3
add shorter version for global providers () 2020-03-11 08:23:32 -07:00
Matej Gera
fe0099fb3d
[tracing] add simplified export pipeline setup for Jaeger ()
* add simplified export pipeline setup for Jaeger

* add With* options to configure SDK options.

* add test for WithRegistration and WithSDK

* rename Registeration with RegisterGlobal

* rename WithRegistration to RegisterAsGlobal

Co-authored-by: rahulpa <rahulpa@google.com>
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-03-10 13:58:45 -07:00
Joshua MacDonald
3bf3927eb5
Add status message parameter ()
* Add status message parameter

* Cleanups around use of codes.OK

* Update for status message
2020-03-07 10:38:59 -08:00
Tyler Yahn
9459629d21
Remove the StackDriver trace exporter ()
Vendor exporters needed to be hosted outside this codebase.

Additionally, remove the http-stackdriver example.

Resolves 

Partially addresses 

Co-authored-by: Rahul Patel <rahulpa@google.com>
2020-03-06 17:53:52 -08:00
Liz Fong-Jones
ffdbc05665
update to v0.2.3 ()
Promote everything to v0.2.3, golang 1.14, and give everything a nice go get -u ./... and go mod tidy along the way too.
2020-03-04 16:12:25 -05:00
Tyler Yahn
52fb033e13
Rename the exporter directory to exporters ()
The `go.opentelemetry.io/otel/exporter/trace/jaeger` package was
mistakenly released with a `v1.0.0` tag instead of `v0.1.0`. This
resulted in all subsequent releases not becoming the default latest,
meaning that `go get`s pulled in the incompatible `v0.1.0` release of
that package when pulling in more recent packages from other otel
packages. Renaming the `exporter` directory to `exporters` fixes this
issue by consequentially renaming the package.

Additionally, this action also renames *all* exporters. This is
understood to be a disruptive action to existing users as they will need
to update any dependencies they currently have on our exporters.
However, it was decided to take this action regardless. The need to
resolve the existing issue explained above is highly important, and
given the Alpha state of this project these kinds of breaking changes
should be expected (though not without reason).

Resolves 

Co-authored-by: Rahul Patel <rghetia@yahoo.com>
2020-03-02 13:54:57 -08:00