* Fix nullable warning in AttributeAssertion
* Fix warnings in assertion tests
* Add missing test for MetricAssert.hasSummarySatisfying() type check failure
* Add hasResourceSatisfying() method to SpanDataAssert and MetricAssert
* Adjustment of behaviour of hasXAttributesSatisfying and hasXAttributesSatisfyingExactly assertions
* Cleanup
* Additional test coverage for new assertion method
* Added javadoc on assertions
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* 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>
* 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
* 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>
* Add helper to SpanDataAssert to assert that span status satisfies a condition
* Copypasta fail
* Add StatusDataAssert with assertion helpers for validating the exporter span status
* PR Feedback
Co-authored-by: Jack Berg <jberg@newrelic.com>
* Add batch callback API
* Update API to accept varargs of instruments
* Add more tests
* Add default API implementations, more test coverage
* PR feedback
* Allow multiple async callbacks, allow callbacks to be removed
* Use AutoCloseable to remove callbacks, don't unregister from MetricStorageRegistry
* Use CopyOnWriteArrayList
* PR feedback
* PR feedback
* Overload put with AttributeKey with String array
* Use generic instead of String
* Format and javadoc
* Cast to type
* New public method
* 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
* Remove explicit okio dependency (#4187)
* Deprecate PrometheusCollector (#4185)
* Correct javadoc
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Cast to type
Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Use noop meter provider if no readers registered
* Extend AutoConfigurationCustomizer with metrics customizers
* Switch from inline to instance level mocks
* Deprecate SdkMeterProviderConfigurer
* 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>
* adding setTrustedCertificates to JaegerGrpcSpanExporterBuilder for mTLS support
* fixing formatting error
* added setTrustedCertificates to JaegerGrpcSpanExporterBuilder
* added validConfig test for setTrustedCertificates mTLS support
* removing unnecessary comments
* Allow configuration of preferred temporality in LoggingMetricExporter and OtlpJsonLoggingMetricExporter
* Make InMemoryMetricReader preferred temporality configurable
* Add create() methods to LoggingSpanExporter, LoggingMetricExporter, and SystemOutLogExporter, deprecate public constructors
* Add MeterProvider to OpenTelemetry API
* Spot
* Set
* Move NoopMeter to package private
* Merge metrics API code into API package
* Finish
* Fix / clean
* Drift
* Update extensions/noop-api/src/main/java/io/opentelemetry/extension/noopapi/NoopOpenTelemetry.java
Co-authored-by: John Watson <jkwatson@gmail.com>
* Spot
Co-authored-by: John Watson <jkwatson@gmail.com>
* Add remove method to AttributesBuilder
* Improve test coverage
* Remove attributes by nulling out instead of removing from list
* feedback wip
* Add AttributesBuilder#remove(String) method
* Add removeIf() method
* AbstractFixedSizeExemplarReservoir uses more efficient removeIf() attribute filter
* Add an auto-configuration builder.
* Test
* Builder
* More
* Revamp
* Customizer only customizes
* Pass config to customizers
* More specific name
* Cleanup
* Cleanup
* SPI test
* Clean
* Clean
* Clean
* Shutdown once instead of flush and shutdown for simple
* Clean
* Cleanups
* Cleanup
* Add attribute length limits to SpanLimits.
* Respond to PR feedback
* Respond to PR feedback
* Remove test utility function
* Rename method to getMaxAttributeValueLength
* Make Jaeger remote sampler available via SPI
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
* use env vars
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
* Add more tests
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>
* Allow root Context to be overridden
Adds ContextStorage.root() to provide a way to customize the
implementation of the root Context when you don't want the
root to be an ArrayBasedContext.
* Update context/src/main/java/io/opentelemetry/context/ContextStorage.java
Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Allow users to access the default Clock and TestClock
* Update TestClock API
* Doc
* Fix
* html
* Less newlines
* Update sdk/common/src/main/java/io/opentelemetry/sdk/common/Clock.java
Co-authored-by: John Watson <jkwatson@gmail.com>
Co-authored-by: John Watson <jkwatson@gmail.com>