* Handle ContainerResource edge case
* Simplify container id logic
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Start from one character after last '-'
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* add some methods to ConfigProperties to help with defaulting.
* wire up default methods
* javadoc
* bots hate underscores
* leverage primitives to eliminate nullability.
* remove null check (call doesn't return null per javadoc)
* address PR comments.
* move internal method out of public interface
* roll back fallback
* rename util class
* use assertj
* spotless
* coverage
* Update sdk-extensions/autoconfigure/src/test/java/io/opentelemetry/sdk/autoconfigure/ConfigPropertiesTest.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* static
* spot(less)
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Remove instrument selector predicates, add instrument name wildcards
* Cache name pattern to regex translation
* Use alternative glob match algo, get rid of cache
* Switch View and ViewBuilder to classes
* Make AttributesProcessor an empty interface, move content to AbstractAttributesProcessor
* Drop io.opentelemetry.sdk.metrics.view package
* Simplify MetricReader
* Tighten up PR
* Restore some methods / classes and deprecate
* Revert "Restore some methods / classes and deprecate"
This reverts commit fee90e5da7.
* 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>