Commit Graph

360 Commits

Author SHA1 Message Date
Trask Stalnaker cd2583df6a
Add misspell check (and fix misspellings) (#4290)
* Add misspell check

* Fix misspellings

* Spotless
2022-03-22 15:12:40 +09: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
Brian Yan e54e7ac4dc
feat:add the shortcut of removeif in ResourceBuilder (#4286)
* fix:add an ending period to form notes

* feat:add the shortcut of removeif in ResourceBuilder

* fix:fix the errors of check

* feat:run two gradlew task to achieve check

* fix:fix format violations

* feat:remove extra function and modify the unit test

* fix: fix format violations

* feat:format code and modify unit test

* feat:make unit test specification

* feat:cleanup for normalize
2022-03-22 13:03:55 +09:00
jack-berg dba57a538a
Drop io.opentelemetry.sdk.metrics.common package (#4275) 2022-03-21 10:02:08 -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 ccfa2dcbe4
Implement metric identity specification (#4222)
* Implement metric identity specification

* PR feedback

* Fix build
2022-03-15 12:46:27 -05:00
jack-berg 59a6061dc5
Deprecate InstrumentationLibraryInfo (#4256)
* Deprecate InstrumentationLibraryInfo

* API diff
2022-03-14 14:45:10 -05:00
Anuraag Agrawal 26c04299d3
Make MetricData factories internal (#4257) 2022-03-11 16:30:13 +09:00
Anuraag Agrawal f5f99cf72d
Inline MeterSelector into InstrumentSelector (#4241) 2022-03-09 14:37:53 +09:00
Anuraag Agrawal 9ac622170e
Extract View configuration interface so it only exposes public API. (#4239)
* Extract View configuration interface so it only exposes public API.

* scare
2022-03-09 14:36:56 +09:00
Anuraag Agrawal 048a0c8d14
Migrate PointData to interface (#4242) 2022-03-09 11:16:48 +09:00
wallezhang 3a78a9030a
feat: Add enabled resource providers configuration (#4231)
* feat: Add enabled resource providers configuration

* style: Code style changes by running spotlessApply

* test: Add unit test for specific resource providers in both configurations

* test: Add unit test for only specific resource providers in enabled configuration
2022-03-09 09:44:05 +09:00
Anuraag Agrawal 22c7a8e10b
Cleanups to View configuration (#4225) 2022-03-04 10:46:55 +09:00
Anuraag Agrawal 2527359cd5
Deprecate automatic histogram method for removal. (#4218) 2022-03-03 08:27:13 +09:00
Anuraag Agrawal a6107d5590
Remove type-specific SumData (#4216)
* Remove type-specific SumData

* scare
2022-03-02 08:40:21 +09:00
Anuraag Agrawal d868eff3e1
Move view builders to top level (#4202) 2022-02-24 09:08:05 +09:00
jack-berg 4a67130738
File based view configuration (#4163)
* Add experimental view config module

* Rename view-config to metric-incubator

* Switch naming from camelCase to snake_case

* Extend with attribute key filter

* Wire up to autoconfiguration

* Use snakeyaml instead of jackson

* PR feedback

* PR feedback
2022-02-18 11:56:21 -06: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
John Watson f7c52e181e
Update OTLP protobufs to v0.13.0-alpha (#4170)
and add documentation on how to update that dependency.
2022-02-12 10:33:38 -08:00
jack-berg 3f5778e647
Do not register periodic metric reader when exporter is null (#4166) 2022-02-09 14:25:27 -06:00
jack-berg b9074f1d8b
Drop deprecations (#4158)
* Drop OBSERVABLE_SUM and OBSERVABLE_UP_DOWN_SUM

* Drop SdkMeterProviderConfigurer
2022-02-08 14:17:06 +09:00
jack-berg eb92539f94
Logs customizer (#4148) 2022-02-04 10:11:56 -06:00
jack-berg 4392f52e1c
Metrics customizer (#4127)
* Use noop meter provider if no readers registered

* Extend AutoConfigurationCustomizer with metrics customizers

* Switch from inline to instance level mocks

* Deprecate SdkMeterProviderConfigurer
2022-02-03 12:26:04 -06:00
jack-berg bd29e1f2ef
Deprecate SdkTracerProviderConfigurer (#4136)
* Deprecate SdkTracerProviderConfigurer

* Update sdk-extensions/autoconfigure/src/testFullConfig/java/io/opentelemetry/sdk/autoconfigure/TestTracerProviderConfigurer.java

Co-authored-by: John Watson <jkwatson@gmail.com>
2022-02-03 14:19:28 +09:00
Anuraag Agrawal 47f7c38ef5
Enable loggers in all tests via slf4j. (#4126)
* Route all test jul logging through slf4j.

* Cleanup and more suppressions
2022-02-02 14:43:25 +09:00
jack-berg 4a015cc794
Set MeterProvider on BatchLogProcessor (#4138) 2022-02-02 08:06:07 +09: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
Ryan Rupp 586ac11803
Make SPI factories instantiate implementations lazily (#4059)
* Make SPI factories instantiate implementations lazily

Previously, this would load all SPI factories and then eagerly instantiate each implementation. This would potentially result in implementations that would get instantiated even if they didn't end up getting used. An example was if the AWS contrib jar was included, this would result in an AwsXrayRemoteSampler being instantiated eagerly despite the configuration not using it. This could then result in errors or unused resources depending on the implementation i.e. in the AwsXrayRemoteSampler example it spawns a thread and makes a network request.

This change transitions the factories so that they only construct the implementation objects if the configuration specifically asks for it. Note the SPI factories themselves must still must be eagerly loaded to determine which factory names are available. This change applies to all auto-configuration areas following this pattern: Samplers, Metric Exporters, Text Map Propagators and Span Exporters.

* Now that instantiating implementations is on-demand (only if used), allow any exceptions to propagate

* format fix

* Change NamedSpiManager from interface to class

Co-authored-by: jack-berg <jberg@newrelic.com>
2022-01-31 15:49:58 -06:00
wallezhang 97d2115dc4
refactor: adjust tracer and meter provider customizer execution order (#4129)
* refactor: adjust tracer and meter provider customizer execution order

* refactor: Modify tracer provider customizer flow

* style: Format code using spotlessApply
2022-01-31 11:56:00 -06:00
jack-berg 87f788a3b4
Cleanup retry configuration (#4131) 2022-01-31 11:30:39 -06:00
Anuraag Agrawal 3cabcc7e45
Improve behavior of some tests (#4123) 2022-01-26 08:17:21 -08:00
Anuraag Agrawal 3a9b44832d
Deprecate gRPC setChannel (#4116) 2022-01-26 08:13:43 -08:00
jack-berg 0ef60f8233
Use noop meter provider if no readers registered (#4120)
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2022-01-26 08:08:31 -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 0a2f400b59
Schedule jaeger remote sampling with fixed delay and clean up tests. (#4122) 2022-01-25 20:51:43 -08:00
Anuraag Agrawal f4f61ea2f3
Close jaeger sampler in provider test too. (#4113) 2022-01-26 08:29:08 +09:00
Anuraag Agrawal 53df4aa8a1
Fix flaky FullConfigTest (#4115) 2022-01-25 07:50:04 -08:00
Ryan Dens 1313265692
BatchSpanProcessor metrics (#4112)
* ♻️ refactor TracerProviderConfiguration.configureBatchSpanProcessor to have MeterProvider provided to it

* 🐛 set meterProvider on BatchSpanProcessorBuilder

* 👌 chain usage of builder APIs where possible

Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>

* 🎨 formatting

Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
2022-01-24 18:27:14 -08:00
jack-berg 8bbb0e25da
Enable reflective setting of retry policy for OkHttpGrpcExporter (#4097)
* Enable reflective setting of retry policy for OkHttpGrpcExporter

* Drop deprecated method

* Add test coverage
2022-01-21 11:07:00 +09:00
Pavol Loffay 5d521f5c21
Switch Jaeger remote sampler to use grpc lite (#4043)
* Switch Jaeger remote sampler to gRPC lite

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Abstract impl

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Service done

* Working example

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Handle gzip compression

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Clean dependencies

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Remove dependency on proto

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* remove stdout

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Fix

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Fix logger

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* jcmpAPI failing

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Fix

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Fix

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Fix

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Switch logger

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Fix

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Support grpc netty too

* NPE test

* update after merge main

* Switch Jaeger remote sampler to gRPC lite

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* test

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* test

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* test

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* test

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* test

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* test

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* some tests

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* some tests

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* tls test

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* tls for default

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Workaround logger reference issue

* Use a better logger workaround

* Wait for two polls since first poll may not have been processed by client in time for assertion.

* Don't depend on poll count for assertions.

* shutdownNow

* Cleanups

* Update logunit

* Don't stop at body read failure

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2022-01-19 12:26:47 +09:00
Eugene R 3518c98c45
Annotate AutoValue classes as Immutable (#3875)
* annotate AutoValue classes as Immutable

* Remove @Immutable on internal classes

Co-authored-by: jack-berg <jberg@newrelic.com>
2022-01-14 14:53:14 -06:00
Roberto Cortez 7b570f53ce
Provide a way to register / skip the shutdown hook in AutoConfiguredOpenTelemetrySdkBuilder (#4072) 2022-01-11 09:46:53 -08:00
Roberto Cortez 07a2d2eb28
Customizer for SdkTracerProviderBuilder (#4004) 2022-01-08 11:18:38 +09:00
Anuraag Agrawal c28797ae89
Use configured classloader for resource SPI. (#4064) 2022-01-07 12:44:44 +09:00
Anuraag Agrawal 429afa1c99
Add toString to SDK trace components and print autoconfigured SDK (#4047)
* Add toString to SDK trace components and print autoconfigured SDK

* Clean

* Tweak logging message
2022-01-07 10:55:46 +09:00
Anuraag Agrawal dfb4a74ac5
Update errorprone (#4048) 2022-01-06 11:33:00 +09: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 6f755cc812
Add http/protobuf retry (#3983)
* Add http/protobuf retry

* PR feedback
2021-12-17 12:35:29 +09:00
jack-berg 2fb3d633a0
Remove deprecations from autoconfigure module (#3923) 2021-12-17 09:12:39 +09:00