Commit Graph

127 Commits

Author SHA1 Message Date
jack-berg 06158ffc2d
Cleanup readmes (#5263) 2023-03-06 09:39:34 -06:00
jack-berg 6edba790d8
Cleanup autoconfigured resources in case of exception (#5117)
* Cleanup autoconfigured resources in case of exception

* Improve test coverage

* Spotless

* Reduce logging level to info for multiple shutdowns

* Fix build
2023-01-22 09:25:50 -06:00
jack-berg 8897dd4d5c
Revert removal final newline (#5133)
* Revert removal final newline

* Add to final newlin editorconfigoverride
2023-01-18 08:51:41 -06:00
dependabot[bot] 1e4a7be6be
Bump spotless-plugin-gradle from 6.12.1 to 6.13.0 (#5126)
* Bump spotless-plugin-gradle from 6.12.1 to 6.13.0

Bumps [spotless-plugin-gradle](https://github.com/diffplug/spotless) from 6.12.1 to 6.13.0.
- [Release notes](https://github.com/diffplug/spotless/releases)
- [Changelog](https://github.com/diffplug/spotless/blob/main/CHANGES.md)
- [Commits](https://github.com/diffplug/spotless/compare/gradle/6.12.1...plugin-gradle/6.13.0)

---
updated-dependencies:
- dependency-name: com.diffplug.spotless:spotless-plugin-gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix build

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jack Berg <jberg@newrelic.com>
2023-01-17 16:47:56 -06:00
jack-berg e82ab27582
Add proper shutdown implementations for all exporters (#5113) 2023-01-13 19:27:03 -08:00
jack-berg 7f0889a6a3
Move autoconfigure exporter tests (#5051)
* Move SPI logging-otlp tests to :exporters:logging-otlp

* Move SPI zipkin tests to :exporters:zipkin

* Move SPI jaeger tests to :exporters:jaeger

* Spotless
2022-12-21 08:23:21 -06:00
jack-berg 551e764df8
JIT exporter metrics (#4993)
* Build ExporterMetrics instruments just in time

* Exporters use GlobalOpenTelemetry#getMeterProvider() if meter provider is not set

* FullConfigTest reset GlobalOpenTelemetry

* MetricExporters use MeterProvider.noop()
2022-12-17 15:19:00 -06:00
jack-berg 0973a7c426
Fix out of date zipkin exporter docs (#4995) 2022-11-29 10:38:37 -06:00
Jonatan Ivanov df74d4cca5
Populate Zipkin remoteEndpoint (#4933)
* Populate Zipkin remoteEndpoint
fixes gh-4932

* Add conditions for creating zipkin remote endpoint

* Parameterize remote endpoint tests with span kind

* Verify INTERNAL span kind too
2022-11-28 14:16:14 -06:00
jack-berg 0fc41d4c30
Implement zipkin exporter provider (#4991) 2022-11-28 14:08:13 -06:00
jason plumb e61d7c84a3
Zipkin exporter: Serialize EventData attributes as JSON (#4934)
* serialize EventData attributes to json

* remove import

* fix test

* address code review comments.

* safety first
2022-11-21 16:53:52 -06:00
jack-berg c252fdfc7b
Prepare release 1.20.0 (#4931)
* Add changelog for 1.20.0

* Add missing since annotations
2022-11-11 12:55:30 -06:00
Donnerbart fa46f19d39
Unify compression configuration for exporters (#4775)
* Fix handling of compressionMethod `none` in GrpcExporterBuilder

* Fix handling of compressionMethod `none` in OkHttpExporterBuilder

* Add compression configuration assertions to AbstractGrpcTelemetryExporterTest

* Add compression configuration to JaegerGrpcSpanExporterBuilder

* Add compression configuration to ZipkinSpanExporterBuilder

* Specify that zipkin default compression is gzip

Co-authored-by: Jack Berg <jberg@newrelic.com>
2022-11-01 13:00:35 -05:00
jack-berg eec0225e37
Changelog 1.18.0 (#4737)
* Add since annotations

* Prepare changelog for 1.17.0 release

* Spotless

* PR feedback

* Spotless
2022-09-09 13:44:23 -05:00
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
jason plumb 734b13e9c5
Improve single responsibility of ZipkinSpanExporter. (#4675)
* improve single responsibility of ZipkinSpanExporter by factoring out OtelToZipkinSpanTransformer.

* add javadoc

* make utility constructor private

* make new class final and jApiCmp

* add javadocs

* enhance javadoc

* make package private

* hide logger

* spotless

* jApiCmp

* create transformer with supplier

* jApiCmp

* rename all Function vars to "transformer"

* remove dead code

* remove Function interface from OtelToZipkinSpanTransformer

* create factory method and rename test util

* rename attributesMap -> attributes

* rebase after metrics merge

* add javadoc

* remove static shared ip address

* Hey look it's a period.

* allow the builder to control the ip address supplier, not the entire transformer.

* hide instance behind getter

* remove unused

* rebase

* hide OtelToZipkinSpanTransformer from public usage

* jApiCmp

* add default to javadocs
2022-08-17 18:11:20 -05:00
jack-berg d5bb47664b
Prepare changelog for 1.17.0 release (#4683)
* Prepare changelog for 1.17.0 release

* Add changelog entry for zipkinspanexporter metrics

* Add more details
2022-08-12 11:29:27 -05:00
Donnerbart 323174abae
Add metrics to ZipkinSpanExporter (#4501)
* Add metrics to the ZipkinSpanExporter

* Add distinct transport name for HTTP/JSON trace metrics

* Use :expoters:common

* Fix javadoc

Co-authored-by: Jack Berg <jberg@newrelic.com>
2022-08-12 10:57:46 -05:00
Trask Stalnaker 559d05adf5
Add markdown link check (#4287)
* Add markdown link check

* Fix links

* Now detects anchor links too!

* Reword comment
2022-03-22 14:11:34 +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 03c41ec940
Add a testing-internal module and functionality to SuppressLogger for… (#4130)
* Improve behavior of some tests (#4123)

* Optimize

* Fix logging.properties

* Clean
2022-02-01 16:04:39 +09:00
Anuraag Agrawal dfb4a74ac5
Update errorprone (#4048) 2022-01-06 11:33:00 +09:00
Anuraag Agrawal 47d359475a
Migrate Zipkin integration test from junit4 to junit5 + testcontainers (#3639) 2021-09-22 08:31:24 +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
Anuraag Agrawal 87f2b5e0a8
Update error-prone (#3485) 2021-08-13 09:44:29 -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 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 f396965196
Add @since tags for new public methods. (#3209)
* Add @since tags for new public methods.

* remove errant since tags
2021-05-07 08:26:55 +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
John Watson cc4720de13
Add the option to configure the zipkin exporter timeout. (#3203) 2021-05-06 09:12:06 +09: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
Bogdan Drutu 75ea07e597
Fix more api dependencies which should be implementation (#2919)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-23 12:20:06 -08: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 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
John Watson a100a45780
fix main branch merge race (#2844) 2021-02-17 08:53:28 -08:00
Anuraag Agrawal 31a6da0bf5
Minor cleanups to zipkin exporter. (#2836)
* Minor cleanups to zipkin exporter.

* Another tiny cleanup
2021-02-17 14:39:29 +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
Bogdan Drutu 19c002471e
Move Span.Kind to the upper level as SpanKind (#2646)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-02 12:27:54 -08:00
Bogdan Drutu 527b5f4549
Expose the SpanContext to the SpanData (#2660)
This helps exporter to have access directly to bytes, hex or any other format we will expose for the ids in the SpanContext.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-02 08:54:26 -08:00
Anuraag Agrawal 85382fd786
Consolidate animalsniffer config to top level. (#2637)
* Consolidate animalsniffer config to top level.

* Revert unintended
2021-02-01 09:27:52 -08:00
Anuraag Agrawal 6eee5ba4ae
Update dependencies (#2618)
* Update dependencies

* Inline annotations

* Revert "Inline annotations"

This reverts commit 8facc4ddbe.

* Unmodifiable
2021-02-01 12:21:00 +09:00
Anuraag Agrawal bfe0e196f8
Remove deprecated setServiceName (#2610) 2021-01-29 10:27:37 -08:00
Anuraag Agrawal e84c5d235c
Expose zipkin as an API dependency. (#2606) 2021-01-29 08:23:24 -08:00
Anuraag Agrawal 32a63fb8e3
Migrate to using gradle platform to manage dependency versions instea… (#2586)
* Migrate to using gradle platform to manage dependency versions instead of global variables.

* Remove unused and fix test

* Revert test yolo

* Workaround test ordering issue by just merging them

* Spot
2021-01-27 13:54:58 +09:00