Commit Graph

195 Commits

Author SHA1 Message Date
jack-berg 2bc88f45c6
Deprecate multi argument InstrumentationScopeInfo create method (#4710)
* Deprecate multi argument InstrumentationScopeInfo create method

* PR feedback
2022-08-24 13:35:31 -05:00
jack-berg 77be2e0136
Break out :exporters:common module (#4575)
* Break out :exporters:common module

* Comment out readme links

* spot
2022-08-08 08:28:24 -05:00
jack-berg 5def2f7fb2
Always pull ghrc.io/open-telemetry/opentelemetry-java/* images (#4656)
* Always pull ghrc.io/open-telemetry/opentelemetry-java/* images

* Unused import

* Add error logging to collector

* unused imports

* spot

* revert error logging
2022-08-07 15:56:07 -05:00
Anuraag Agrawal 852e755eeb
Use OkHttpGrpcExporter unless upstream Channel provided by user (#4538)
* Use OkHttp-based gRPC exporter unless setChannel is called.
2022-06-17 09:45:03 +09:00
jack-berg 86cc4bc27d
Add some missing since annotations (#4520) 2022-06-09 20:41:52 -05:00
Anuraag Agrawal 9dc1be5db8
Allow overriding OTLP gRPC authority. (#4514) 2022-06-10 10:37:56 +09:00
jason plumb 83bfb84d14
Migrate to assertj (#4512)
* migrate from junit/jupiter assertions to assertj in a few remaining places.

* reorder
2022-06-02 13:38:46 -07:00
Donnerbart 2e5598e492
Add setter for MeterProvider to JaegerGrpcSpanExporterBuilder (#4487)
* Add setter for MeterProvider to JaegerGrpcSpanExporterBuilder

* Make exporter name configurable for ExporterMetrics
2022-05-24 12:13:48 -07:00
Anuraag Agrawal 0ab2eea43e
Use updated docker test images (#4306) 2022-03-25 10:17:46 -05:00
jkamon a355c347b8
Allow client certificate (#4194)
* Allow client certificate

* Allow client certificate - changes signature and add parameters

* Allow client certificate - rename chain to certificate

* Allow client certificate - fix first set of comments

* Allow client certificate - comments

* Allow client certificate - compile fix

* Allow client certificate - tests

* Allow client certificate - rename privateKeyChainPem to certificatePem

* Allow client certificate - remove incorrect test

* Allow client certificate - removed unused function

* Allow client certificate - spotlessApply

* Allow client certificate - match expected and thrown error messages

* Allow client certificate - spotlessApply

* Allow client certificate - from spec project it was requested to remove logs entries

* Allow client certificate - match expected and thrown error messages

* Allow client certificate - improve test coverage

* Allow client certificate - document also LOG version of env variables
2022-03-21 17:19:17 +09:00
jack-berg ef99593d4f
Export otel.scope.name, otel.scope.version (#4261) 2022-03-15 12:32:29 -05:00
jack-berg 59a6061dc5
Deprecate InstrumentationLibraryInfo (#4256)
* Deprecate InstrumentationLibraryInfo

* API diff
2022-03-14 14:45:10 -05:00
Anuraag Agrawal 3a9b44832d
Deprecate gRPC setChannel (#4116) 2022-01-26 08:13:43 -08:00
Anuraag Agrawal 044cadb47e
Reorganize internal export code. (#4111)
* Reorganize internal export code.

* Cleanups
2022-01-26 14:39:58 +09:00
Anuraag Agrawal 750611a673
Don't lookup IP address again in jaeger exporter assertion. (#4067) 2022-01-07 08:03:50 -08:00
Kyle Tully edbe46a9f7
Expose setTrustedCertificates in JaegerGrpcSpanExporterBuilder for mTLS Support (#4061)
* adding setTrustedCertificates to JaegerGrpcSpanExporterBuilder for mTLS support

* fixing formatting error

* added setTrustedCertificates to JaegerGrpcSpanExporterBuilder

* added validConfig test for setTrustedCertificates mTLS support

* removing unnecessary comments
2022-01-07 13:46:24 +09:00
Anuraag Agrawal dfb4a74ac5
Update errorprone (#4048) 2022-01-06 11:33:00 +09:00
jack-berg 01bb3e20aa
Remove grpc dependency from examples (#4041)
* Include grpc-stub dependency in jaegar example

* Fix jaeger exporter source sets

* Update jaeger example to use endpoint instead of channel

* Update otlp example to use okhttp grpc exporter
2022-01-05 11:27:44 +09:00
Anuraag Agrawal 905c1ffa4f
Update Gradle and build dependencies. (#4026) 2021-12-23 07:56:05 -08:00
Anuraag Agrawal 38d0826843
Remove accidentally leftover grpc-api dependency (#3918) 2021-11-19 20:48:27 +09:00
Anuraag Agrawal cb0e02c8ad
Fix merge conflict (#3841) 2021-11-08 18:16:51 -08:00
Anuraag Agrawal 872c86cf8a
Migrate jaeger exporter to use GrpcExporter (#3800)
* Migrate jaeger exporter to use GrpcExporter

* Cleanup

* Update integration test

* Fix
2021-10-29 12:01:41 +09:00
Anuraag Agrawal 7c3e22efbc
Fix more nullness (#3655)
* Fix more nullness

* Actually not that improbable

* Null check

* Cleanup
2021-09-28 09:24:42 +09:00
Anuraag Agrawal b88bfe16cc
Use repo ghcr images for integration tests. (#3644) 2021-09-22 08:28:09 -07:00
Anuraag Agrawal 0cef3f79b5
Migrate Jaeger exporter to marshaler (#3625)
* Migrate Jaeger exporter to marshaler

* Remove Jaeger protos from public API

* Separate our jaeger-proto artifact.

* Move

* Cleanups

* Spot
2021-09-21 07:40:15 -07:00
Anuraag Agrawal ca75723885
Remove protobuf-java-util / gson dependency from jaeger exporter in favor of Jackson. (#3597) 2021-09-11 12:47:35 +09:00
Anuraag Agrawal 6ef3091cfb
Copy in spotless-conventions from instrumentation repo (#3554)
* Copy in spotless-conventions from instrumentation repo.

* Reformat

* A few more dotfiles
2021-08-27 08:28:31 -07:00
jack-berg dd84ccaec7
Fix javadoc (#3499)
* Add javadoc links for otlp-http modules

* Fix otlp module javadoc links

* Fix logging exporter javadoc link

* Fix jaeger exporters javadoc links

* Fix prometheus exporter javadoc link

* Fix zipkin exporter javadoc link

* Fix extension annotations javadoc link

* Fix extension trace propagators javadoc links

* Fix sdk-extensions aws javadoc link

* Fix sdk-extensions async-processor javadoc links
2021-08-16 10:35:42 -07:00
Anuraag Agrawal e0854d6ac1
Fix some nullness in exporters (#3492) 2021-08-16 08:56:58 -07:00
jason plumb cb5198ba99
encapsulate Resource.getAttribute() to help with some law of Demeter violations. (#3468) 2021-08-12 09:06:31 +09:00
Trask Stalnaker 60c3c5ca0c
Format build.gradle.kts files (#3427) 2021-07-29 13:21:38 +09:00
Anuraag Agrawal ce9c8854c7
Extract publishing and animalsniffer plugins. (#3334) 2021-06-22 08:23:16 +09:00
Anuraag Agrawal 5f03e70628
Migrate protobuf logic to plugin (#3329)
* Migrate protobuf build logic to plugin

* Cleanup
2021-06-18 08:50:18 -07:00
Anuraag Agrawal 7f544416e4
Define an extension for otel-specific configuration of Java. (#3317) 2021-06-17 15:54:25 +09:00
Anuraag Agrawal b9ca09b6c1
Extract java conventions plugin. (#3316) 2021-06-15 12:29:47 -07:00
John Watson be58d03d04
Make sure the 2nd call to shutdown() on the GRPC exporters succeeds. (#3307)
* Make sure the 2nd call to shutdown() on the GRPC exporters succeeds.
Resolves #3306

* re-order the check for the channel already being shut down
2021-06-11 08:09:35 +09:00
John Watson 910e66c8db
Add dropped attribute/event counts to jaeger and zipkin exporters. (#3201)
* Add dropped attribute/event counts to jaeger and zipkin exporters.
Resolves #3197

* Small refactoring from feedback

* formatting
2021-05-06 13:23:32 -07:00
Trask Stalnaker ea3d795cfb
Support otel.exporter.jaeger.timeout (#3145)
* Support otel.exporter.jaeger.timeout

* Mention milliseconds

* Update sdk-extensions/autoconfigure/README.md

Co-authored-by: John Watson <jkwatson@gmail.com>

Co-authored-by: John Watson <jkwatson@gmail.com>
2021-04-20 09:48:54 -07:00
John Watson 5c18578538
Introduce a ThrottlingLogger wrapper and use for error logging in exporters (#3051)
* initial implementation of logging throttling

* simplify the throttle and incorporate into all the exporters

* small cleanup

* try the ratelimiter and see if it can work

* try the ratelimiter and see if it can work

* re-implement the ThrottlingLogger using the RateLimiter from Jaeger.

* code cleanup & additional tests

* add a unit test for the log level check

* Update sdk/common/src/main/java/io/opentelemetry/sdk/internal/ThrottlingLogger.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-03-31 20:36:02 -07:00
Piotr Glazar 1a9c9096a9
Resource.Builder for convenient work with Resource class (#3065)
* Resource.Builder for convenient work with Resource class

* Remove unused import

* Adding javadoc comment

* Spotless fix

* Code review fixes

* Adding Javadoc

* Call Resource.create instead of AutoValue
2021-03-31 15:53:33 +09:00
John Watson 6d1a00ce40
cleanup the out-of-date Jaeger exporter docs (#3072) 2021-03-29 18:06:42 -07:00
Bogdan Drutu 9e1c76b324
Do not allow null description in the StatusData (#2896)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-22 15:31:45 -08:00
Bogdan Drutu f28947655b
Remove unnecessary dependencies on alpha artifacts (#2892)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-18 19:43:52 -08:00
Bogdan Drutu 93dd38a18d
Ensure ParametersAreNonnullByDefault is present in all packages (#2879)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-18 08:58:01 -08:00
Anuraag Agrawal 43f1ecf7ed
Remove support for schemaless URLs for gRPC exporters. (#2834) 2021-02-17 16:37:49 +09:00
Anuraag Agrawal ae460d37a7
Use schemed endpoint for jaeger exporter. (#2821) 2021-02-17 12:41:09 +09:00
Anuraag Agrawal 900c35ed8c
Migrate remaining gradle scripts to kotlin (#2820)
* Migrate remaining gradle scripts to kotlin

* Finish more
2021-02-16 14:11:07 -08:00
Anuraag Agrawal 522953bd8f
Restore Trace/SpanId.fromBytes (#2750)
This reverts commit d6fea3a70a.
2021-02-08 07:42:49 -08:00
Bogdan Drutu d6fea3a70a
Remove helper methods fromBytes from Trace/Span Id (#2727)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-05 20:29:51 -08:00
Bogdan Drutu 77d993d653
[BREAKING CHANGE] Cleanup TraceId/SpanId classes. Ensure consistency. (#2696)
Summary of changes:
* getHexLength renamed to getLength
* bytesFromHex/bytesToHex renamed to asBytes/fromBytes.
* bytesFromHex/bytesToHex renamed to asLongHigh/asLongLow
* Update javadoc.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-04 07:38:25 -08:00