Commit Graph

93 Commits

Author SHA1 Message Date
jack-berg eec0225e37
Changelog 1.18.0 (#4737)
* Add since annotations

* Prepare changelog for 1.17.0 release

* Spotless

* PR feedback

* Spotless
2022-09-09 13:44:23 -05:00
Mateusz Rzeszutek 169554bb50
Add AttributesAssert#doesNotContainKey() (#4723)
* Add AttributesAssert#doesNotContainKey()

* jApiCmp

* Update sdk/testing/src/main/java/io/opentelemetry/sdk/testing/assertj/AttributesAssert.java

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

Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
2022-08-25 20:05:14 -07:00
jack-berg 2bc88f45c6
Deprecate multi argument InstrumentationScopeInfo create method (#4710)
* Deprecate multi argument InstrumentationScopeInfo create method

* PR feedback
2022-08-24 13:35:31 -05:00
Maksym Ochenashko 7d01751e01
Update example in `InMemorySpanExporter` (#4644)
The current example is out of date and does not compile.
2022-07-28 08:20:17 -07:00
jack-berg facbf4fb9e
Add default implementations for getInstrumentationScopeInfo methods (#4640) 2022-07-27 17:54:29 -05:00
jack-berg 9c3a98c90e
Add changelog entry for 1.16.0 (#4603)
* Add changelog entry for 1.16.0

* Change heading to ## Unreleased
2022-07-12 21:02:00 -05:00
HaloFour 31be1dcc3f
Add helper to SpanDataAssert to assert that span status satisfies a condition (#4469)
* 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>
2022-06-23 12:44:18 -07:00
jack-berg 86cc4bc27d
Add some missing since annotations (#4520) 2022-06-09 20:41:52 -05:00
jack-berg 078d55abe5
Add SdkMeterProvider toString method (#4464)
* Add SdkMeterProvider toString method

* Fix build

* Ignore null values in InstrumentSelector / View #toString()
2022-05-13 11:52:04 -05:00
jack-berg 0d234f56c9
Add metrics to OpenTelemetryRule and OpenTelemetryExtension (#4459)
* Add metrics to OpenTelemetryRule and OpenTelemetryExtension

* Clear metrics, respond to PR feedback
2022-05-13 10:06:05 -05:00
jack-berg e067223409
Convert tests to from :sdk:metrics-testing to :sdk:testing (#4444) 2022-05-09 09:34:09 -05:00
jack-berg 89c6323fff
Move InMemoryMetricReader and InMemoryMetricExporter to :sdk:testing (#4442)
* Move InMemoryMetricReader and InMemoryMetricExporter to :sdk:testing

* Move tests
2022-05-06 20:00:11 -05:00
Anuraag Agrawal 2bc8178dce
Split exemplar assertion into double / long (#4432)
* Split exemplar assertion into double / long

* Merge
2022-05-06 14:33:57 +09:00
Anuraag Agrawal bfb39f42d4
Remove Data from metric assertion class names (#4433) 2022-05-05 10:47:26 -05:00
Lauri Tulmin 3f2317fdac
Add hasSpansSatisfyingExactlyInAnyOrder (#4427)
* Add hasSpansSatisfyingExactlyInAnyOrder

* address review comment

* address review comment
2022-05-03 17:25:47 +09:00
Anuraag Agrawal ee4d771142
Migrate sum, histogram, summary assert to stable testing. (#4419)
* Migrate sum, histogram, summary assert to stable testing.

* Coverage
2022-04-28 12:39:29 +09:00
Anuraag Agrawal 173a0c27fd
Have long aggregators export long exemplars (#4403)
* WIP exemplar

* Have long aggregators export long exemplars

* Fix
2022-04-22 11:18:47 +09:00
Anuraag Agrawal f464817013
Move gauge assertions into stable testing artifact. (#4395)
* Move gauge assertions into stable testing artifact.

* Disable publishing of old metrics-testing
2022-04-21 11:31:15 +09:00
Gregor Zeitlinger b717b0625a
Add SpanDataAssert.hasAttribute (#4271)
* add assertAttributes to be able to assert a single attribute in a fluent way

* add assertAttributes to be able to assert a single attribute in a fluent way

* Update sdk/testing/src/main/java/io/opentelemetry/sdk/testing/assertj/SpanDataAssert.java

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

* Update sdk/testing/src/main/java/io/opentelemetry/sdk/testing/assertj/SpanDataAssert.java

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

Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
2022-03-22 15:56:59 +09:00
jack-berg 59a6061dc5
Deprecate InstrumentationLibraryInfo (#4256)
* Deprecate InstrumentationLibraryInfo

* API diff
2022-03-14 14:45:10 -05:00
Anuraag Agrawal 5fb1189b98
Add int overload for equalTo attribute assertion (#4249) 2022-03-09 08:23:34 +09:00
Anuraag Agrawal 242f509dd1
Add ability to do loose attribute matching while checking all keys. (#4173)
* Add ability to do loose attribute matching while checking all keys.

* equalTo

* Support absent keys
2022-02-22 12:15:17 +09:00
jack-berg cde99eb77d
Add InMemoryLogExporter (#3757)
* Add InMemoryLogExporter

* Use synchronized list in in memory exporters

* merge conflict

* Use ConcurrentLinkedQueue
2021-10-21 15:08:52 +09:00
Anuraag Agrawal 3085c58073
Avoid zipSatisfy (#3705) 2021-10-07 08:11:28 -07:00
Anuraag Agrawal b311d50d03
Fix some nullness. (#3647)
* Fix some nullness.

* Log
2021-09-22 09:00:57 -07:00
jack-berg 58c16a9133
Add missing readmes and missing javadoc links (#3500) 2021-08-16 12:36:54 -07:00
Anuraag Agrawal ca8a12ff01
Add AttributesAssert.containsKey (#3433) 2021-08-03 12:51:49 -07:00
Anuraag Agrawal 2d9a949c70
Add Iterable versions of hasTraces / Spans (#3429) 2021-08-03 10:32:36 -07:00
Trask Stalnaker 60c3c5ca0c
Format build.gradle.kts files (#3427) 2021-07-29 13:21:38 +09:00
Anuraag Agrawal d4bbaf405d
Add containsEntry overload that accepts int (#3412) 2021-07-21 13:41:59 +09:00
Anuraag Agrawal 8163b9fc00
Add assertion for exception (#3409) 2021-07-20 08:49:40 +09:00
Anuraag Agrawal 3d0485364b
Add hasNoParent assertion (#3406) 2021-07-15 14:09:25 +09:00
Anuraag Agrawal 669bf0b42b
Add TraceAssert.getSpan (#3386)
* Add TraceAssert.getSpan

* Fix and comment
2021-07-09 07:45:29 -07:00
Anuraag Agrawal f90040579e
Allow users to access the default Clock and TestClock (#3363)
* 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>
2021-07-09 11:26:55 +09:00
Anuraag Agrawal d7e8651767
Add vararg hasEvents assertion (#3377)
* Add vararg hasEvents assertion

* Test
2021-07-09 10:01:49 +09:00
Anuraag Agrawal b5d202a08c
Add hasAttributes which takes a list of entries. (#3378) 2021-07-09 08:06:50 +09:00
Anuraag Agrawal ce9c8854c7
Extract publishing and animalsniffer plugins. (#3334) 2021-06-22 08:23:16 +09:00
Anuraag Agrawal 7f544416e4
Define an extension for otel-specific configuration of Java. (#3317) 2021-06-17 15:54:25 +09:00
Anuraag Agrawal b9ca09b6c1
Extract java conventions plugin. (#3316) 2021-06-15 12:29:47 -07:00
John Watson 5b4763321e
Implement handling the OTEL_SERVICE_NAME env var. (#3253)
* Implement handling the OTEL_SERVICE_NAME env var.

* Update to use the semconv module and attributes testing helpers.

* add unit tests for testing API additions
2021-05-27 09:55:26 -07:00
John Watson 9a330d03e7
Make the test extensions defensively reset the GlobalOpenTelemetry instance before setting. (#3110) 2021-04-07 09:12:41 +09:00
John Watson aac9284f83
Add a new module for extensions to the tracing APIs. (#2962)
* Add a new module for extensions to the tracing APIs.
Includes one simple possible example.

* formatting

* rename and add javadoc

* Clean up & simplify based on feedback

* rename the module to just incubator

* Move to a package named more like the core api trace package.

* repackage to match the module
2021-03-17 18:53:38 -07:00
Anuraag Agrawal 1ec484e2d6
Add event assertion, full attributes assertion, and fuzzy attribute value assertion. (#2927) 2021-02-24 08:02:08 -08:00
Bogdan Drutu 013643c707
Add package-info for all packages (#2902)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-21 10:44:00 -08:00
Bogdan Drutu 7c038e00e9
Mark classes final, or hide ctor for testing classes (#2847)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-17 15:18:46 -08:00
Bogdan Drutu a633d1ee87
[Breaking Change] Remove metrics exporter from stable testing package (#2857)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-17 12:29:05 -08:00
John Watson f83c21638a
[Breaking Change] Rename TraceStateBuilder.set() to put() (#2830)
Provisionally resolves #2746
2021-02-17 08:16:24 -08:00
John Watson 20a1601089
[Breaking Change] Rename getEmpty() to empty() (#2831) 2021-02-17 08:15:23 -08:00
John Watson 920f79d151
clean up the javadoc and make examples pasteable (#2824)
* clean up the javadoc and make examples pastable
resolves #2817

* formatting
2021-02-17 12:31:08 +09:00
Anuraag Agrawal 0385f6d79b
Make StrictContextStorage package-private (#2772) 2021-02-08 19:03:35 -08:00