Commit Graph

119 Commits

Author SHA1 Message Date
jack-berg 42056f57c8
Introduce ConfigProvider API (#6549) 2025-03-04 17:21:19 -06:00
jack-berg 31869a3fc6
Interpret timeout zero value as no limit (#7023) 2025-01-16 18:02:31 -06:00
jack-berg f52554bc52
Rebrand file configuration to declarative configuration in documentation (#6812) 2024-10-22 09:12:07 -05:00
renovate[bot] 7522bfe141
Update dependency checkstyle to v10.18.0 (#6670)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: John Watson <jkwatson@gmail.com>
2024-08-25 12:57:30 -07:00
Chung Nguyen 581690ecac
supress zipkin exporters instrumentations (#6552) 2024-08-19 13:57:08 -05:00
jack-berg ea6e3ddb7e
Add file configuration ComponentProvider support for exporters (#6493) 2024-08-05 11:06:27 -05:00
renovate[bot] 77bb439422
Update dependency io.zipkin.reporter2:zipkin-reporter-bom to v3.3.0 (#6230)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jack Berg <jberg@newrelic.com>
2024-02-20 16:24:03 -06:00
jack-berg e9e1feeae0
Prepare 1.35.0 release (#6213)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2024-02-09 07:59:03 -06:00
Crypt Keeper 0e4986a073
Update dependency io.zipkin.reporter2:zipkin-reporter-bom to v3.2.1 (#6151)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
2024-01-24 16:52:57 -06:00
Crypt Keeper 208118af18
Update dependency io.zipkin.reporter2:zipkin-reporter-bom to 3.1.1 (#6129)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2024-01-12 17:02:11 -06:00
renovate[bot] cb44b2b18c
Update errorProneVersion to v2.23.0 (#5927)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jack Berg <jberg@newrelic.com>
2023-10-23 10:31:09 -05:00
jack-berg a438127c37
Deprecate semconv module (#5786) 2023-09-08 10:43:42 -05:00
jack-berg 73faa33b99
Config properties from map (#5782) 2023-08-30 09:33:39 -05:00
jack-berg ce7323ee3d
Add SpanExporterFactory support for zipkin exporter (#5771) 2023-08-28 14:49:33 -05:00
jack-berg a781ba8fa9
Suppress test logs (#5620) 2023-07-11 12:19:56 -05:00
dependabot[bot] b14bed8d89
Bump com.diffplug.spotless:spotless-plugin-gradle from 6.18.0 to 6.19.0 (#5469)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2023-05-31 09:56:15 -07: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 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
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
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 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
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 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
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 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