* 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
* 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
* 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
* Use noop meter provider if no readers registered
* Extend AutoConfigurationCustomizer with metrics customizers
* Switch from inline to instance level mocks
* Deprecate SdkMeterProviderConfigurer
* 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>
* refactor: adjust tracer and meter provider customizer execution order
* refactor: Modify tracer provider customizer flow
* style: Format code using spotlessApply
* ♻️ 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>
* 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>