Commit Graph

51 Commits

Author SHA1 Message Date
jack-berg 06158ffc2d
Cleanup readmes (#5263) 2023-03-06 09:39:34 -06:00
Lin Lin ce18841b5d
Fixed example resource provider classname. (#5235) 2023-02-17 10:39:13 -08:00
jack-berg 92403b01b7
Add base2ExponentialHistogram to Aggregation (#5143) 2023-02-05 10:54:44 -06:00
Bruno Medeiros cdf13a7c10
docs(readme): fix resource providers property docs (#5135) 2023-02-04 08:07:08 -08:00
jack-berg 17e81063ba
Align exemplar filter names with spec (#5063)
* Align exemplar filter names with spec

* coverage

* spotless
2022-12-29 11:11:39 -06:00
Ben Roling 7dd5c1ccd7
Add auto-configure support for logging-otlp (#4879)
* Add autoconfigure support for logging-otlp

* Add NotOnClasspath tests

* Fix formatting

* Declare logging-otlp as experimental, add unit test

* Spotless

Co-authored-by: Jack Berg <jberg@newrelic.com>
2022-11-28 11:15:31 -06:00
jack-berg ee2d981bdc
Remove support for otel.experimental.sdk.enabled (#4973) 2022-11-26 09:16:59 -06:00
jack-berg 99dbcaf3c6
Add support for BatchLogRecordProcessor autoconfiguration (#4811) 2022-10-17 14:41:45 -05:00
jack-berg 6fa504df97
Fix broken link (#4861) 2022-10-17 13:00:16 -05:00
Bruno Baptista c37dada000
Add support for new system property otel.sdk.disabled (#4810)
* Add support for new system property otel.sdk.disabled

* address review comments
2022-10-03 11:51:57 -05:00
jack-berg 35680960cb
Fix autoconfigure documentation (#4658) 2022-08-07 15:55:36 -05:00
jack-berg 7a2a5b379d
Update autoconfigure docs for multiple exporters (#4619) 2022-07-20 09:39:48 -05:00
jack-berg d2a8304b9b
Otlp exporter default aggregation (#4557)
* Add default aggregation selector option to OTLP metric exporters

* change compose to with
2022-07-05 10:21:04 -05:00
jack-berg 7d80a99846
Add experimental option to disable autoconfigured opentelemetry SDK (#4489)
* Add experimental option to disable autoconfigured opentelemetry SDK

* Add AutoConfiguredOpenTelemetrySdk#isSdkEnabled()

* Remove isSdkEnabled()
2022-06-06 11:23:14 -05:00
jack-berg 33d2c22260
Implement general attribute limits (#4495)
* Implement general attribute limits

* Spotless
2022-05-26 09:25:14 -05:00
jack-berg d355bf56df
Fix OTEL_EXPORTER_OTLP_CLIENT_KEY docs (#4474) 2022-05-17 17:18:32 -07:00
jack-berg b7b6a75637
Drop reference to OTEL_EXPORTER_LOGGING_PREFIX (#4462) 2022-05-12 15:46:19 -05:00
jack-berg 44afb133bd
Add changelog entry for 1.13.0 release (#4355)
* Add changelog entry for 1.13.0

* PR feedback
2022-04-08 13:35:24 -05:00
jack-berg 21a61e5894
Change MetricExporter getPreferredTemporality to accept InstrumentType (#4288) 2022-03-24 11:25:50 -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
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 9456aeea26
Experimental support for disabling resource keys (#4169)
* Experimental support for disabling resource keys

* Rename property
2022-02-17 14:19:27 -06:00
jack-berg 10f5efa14d
Add log autoconfigure support (#4015)
* Add log autoconfigure support

* Support log logging exporter via autoconfigure

* Add unit test
2022-01-05 08:21:58 -08:00
Kunshuai Zhu 44dccd6c33
Fix the problem that README.md failed to display [javadoc-image] (#4039) 2022-01-01 09:39:45 -08:00
jack-berg 2fb3d633a0
Remove deprecations from autoconfigure module (#3923) 2021-12-17 09:12:39 +09:00
jack-berg 65e7145e9c
OTLP metric temporality configuration (#3847)
* Add ability to configure preferred temporality to OTLP grpc and http metric exporters

* Make OTLP metric preferred temporality configurable

* Make temporality configuration case insensitive
2021-11-12 11:03:20 +09:00
jack-berg 4b7e50928f
Configure periodic metric reader interval with otel.metric.export.interval (#3840) 2021-11-09 13:59:33 +09:00
jack-berg a1a45d2657
Autoconfigure experimental OTLP retry (#3791)
* Add retry policy class and wire into autoconfigure

* Wire up otlp retry for DefaultGrpcExporter

* Add documentation to autoconfigure readme

* Add more tests

* Move delegate accessor to :exporters:otlp:common

* Use jackson for json serialization

* PR feedback
2021-11-09 10:06:47 +09:00
jason plumb 26aad090ee
Document ResourceProvider SPI and how to disable (#3720)
* add documentation around resource provider spi

* spotless

* Update sdk-extensions/autoconfigure/README.md

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>

* Update sdk-extensions/autoconfigure/README.md

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>

* Update sdk-extensions/autoconfigure/README.md

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>

* add link to sdk-extension resources

* spotless meh

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>
2021-10-11 13:23:29 -07:00
jack-berg 95949e0713
Remove autoconfigure otlp protocol experimental properties (#3718)
* Remove autoconfigure otel.experimental.exporter.otlp.protocol and otel.experimental.exporter.otlp.{signal}.protocol properties

* Add entry to changelog
2021-10-11 12:05:52 +09:00
jack-berg 6c3010dd08
Change otlp http/protobuf default port from 4317 to 4318 (#3694) 2021-10-05 16:24:06 -07:00
jack-berg 5556795623
Update autoconfigure to append signal path to otlp http endpoint if n… (#3666)
* Update autoconfigure to append signal path to otlp http endpoint if not present

* Use URI.resolve() instead of string concatenation

* revert to string concatenation

* Add URL validation to OTLP endpoint

* Always append signal path to otlp http/protobuf endpoint

* Add changelog entry, clarify tests, append root path if not included on generic http endpoint
2021-10-05 12:48:21 -07:00
Josh Suereth 95551dbbdb
Finish wiring exemplars into metrics SDK (#3599)
* Initial implementation of simple ExemplarReservoirs

- Add an implementation of naive fixed-bucket reservoir sampling
- Add an implementation of FixedSizeHistogram reservoir sampling where latest-measurement per-histogram-bucket is kept.
- Add assertions for exemplars.

* Remove explicit locks for mild performance boost.

* Create a new random holder abstraction.

- Create new random holder abstraction that allows
  - ThreadLocalRandom when efficient
  - simple detection of Android + workaround for TLR
  - Overridable with mocked random for testing.
- Update tracing RandomIdGenerator to leverage new RnadomHolder
- Expand exemplar reservoir tests to use new random holder
- Remove android-only random id generator test

* Add api diff + fix silly naming thing.

* Move random hodler to be Supplier, other updates from code review.

* Fixes from review.

* Fix bytebuddy issue with mocking.

* Expose aggregation configuration and wire in exemplar sampler

- Expose classes for aggregation configuration that are visible in exemplar sampler
- Create default exemplar sampler that samples w/ traces
- Expand metric benchmarks to include exemplar + no-exemplar to check overhead.

* Fix merge conflict.

* Wire exemplar filter config into autoconfigure module.

* Expose aggregation configuration and wire in exemplar sampler

- Expose classes for aggregation configuration that are visible in exemplar sampler
- Create default exemplar sampler that samples w/ traces
- Expand metric benchmarks to include exemplar + no-exemplar to check overhead.

* Fix merge conflict.

* Wire exemplar filter config into autoconfigure module.

* Migrate exemplar reservoir instantiation into aggregations.  Start migrating off AggregatorFactory -> Aggregation.

* Small cleanup.

* Fixes from review (and report of clsasloader fixes from other laptop.

* Migrate to null-object pattern.

* Add internal boilerplate.

* Run spotless.

* Fix toString of aggregation values.

* Fix ==
2021-09-24 13:55:46 -07:00
jack-berg a1ea0d5ce1
Remove experimental prefix from otlp protocol config properties (#3622)
* Remove experimental prefix from otlp protocol config properties

* Restore experimental otlp protocol configuration options, but mark as deprecated.
2021-09-17 12:17:52 +09:00
Anuraag Agrawal 72d33c4153
Update autoconfigure README (#3615) 2021-09-14 07:53:28 -07:00
jack-berg 9b9ef48b34
Add autoconfigure for span attribute value length limits (#3602)
* Rename SpanLimitsBuilder.setMaxAttributeLength to setMaxAttributeValueLength

* Add span attribute value length limits to autoconfigure

* Fix build
2021-09-10 14:01:33 -07:00
jack-berg 2670fe2926
Add autoconfigure support for OTLP gzip compression (#3589)
* Add autoconfigure support for OTLP gzip compression

* Respond to PR feedback.
2021-09-10 13:03:21 +09:00
Anuraag Agrawal e8f054615e
Separate out autoconfigure-spi artifact with tracing autoconfiguratio… (#3570)
* Separate out autoconfigure-spi artifact with tracing autoconfiguration SPI.

* Split
2021-09-01 10:21:01 -07:00
jack-berg a0b0ab4e2c
Support comma separated list for exporters for otel.traces.exporter. (#3529)
* Support comma separated list for exporters for otel.traces.exporter.

* Respond to PR feedback.
2021-08-23 14:34:24 -07:00
jack-berg 16cfb66fc4
Add support for configuring OTLP protocol to autoconfigure module. (#3522) 2021-08-23 09:40:46 -07:00
jack-berg 58c16a9133
Add missing readmes and missing javadoc links (#3500) 2021-08-16 12:36:54 -07:00
jack-berg 20f872d8dc
Add OTLP signal specific certificate autoconfiguration (#3439)
* Add setTrustedCertificates support to OtlpGrpcMetricExporterBuilder

* Add signal specific certificate configuration to autoconfiguration

* Improve test coverage.

* Try to meet code coverage requirements.

* Qualify SslUtil.setTrustedCertificatesPem
2021-08-05 17:10:48 +09:00
jack-berg 42831fe004
Add support for signal specific timeout and headers autoconfiguration. (#3434)
* Add support for signal specific timeout and headers autoconfiguration.

* Attempt to fix build.

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-08-03 10:43:45 -07:00
Anna Nosek f606a5b19b
Add documentation for OTEL_SERVICE_NAME (#3396)
* add doc for OTEL_SERVICE_NAME

* Update sdk-extensions/autoconfigure/README.md

Co-authored-by: Christian Neumüller <christian+github@neumueller.me>

Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
2021-07-14 07:49:51 -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
Chris Marks 72db16e58e
Update description on otel.exporter.otlp.headers to indicate using commas, not semicolons. (#3019) 2021-03-11 20:47:52 -08:00
Sergei Malafeev 9d96758195
Support OTEL_EXPORTER_OTLP_METRICS/TRACES_ENDPOINT (#3000)
* Support OTEL_EXPORTER_OTLP_METRICS/TRACES_ENDPOINT

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* update README.md

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* update README.md

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* add test

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* reset global ot for tests

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* add not global test

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* update test

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* update test

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* added tearDown

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2021-03-10 08:13:24 -08:00
John Watson 724b3bd064
update the autoconfigure docs to show the correct default value for the jaeger endpoint (#3004) 2021-03-09 18:22:19 -08:00
John Watson 7cb828838f
Add some notes about shutdown hooks and JUL. (#2991)
resolves #1147
2021-03-06 09:49:51 -08:00
YuDong Tang c9246b30a4
fix doc link (#2929) 2021-02-24 07:53:52 -08:00