Commit Graph

106 Commits

Author SHA1 Message Date
jack-berg 06158ffc2d
Cleanup readmes (#5263) 2023-03-06 09:39:34 -06:00
jack-berg 7bb2f0d832
Remove boxed primitives from aggregations (#5184) 2023-02-11 20:46:27 -06:00
jack-berg 9b10152cf8
Prepare for 1.23.0 release (#5189)
* Prepare changelog for 1.23.0 release

* Add missing since annotations

* Adjust releasing docs

* Add new changelog entries, add event API artifact to readme

* PR feedback

* PR feedback
2023-02-10 14:07:48 -06:00
Donnerbart 2b7fe75826
Add resource assertion methods to SpanDataAssert and MetricAssert (#5160)
* 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
2023-02-09 15:25:11 -06:00
jack-berg 59043802e6
Merge :sdk:metrics-testing into :sdk:testing (#5144) 2023-01-24 08:42:04 -08:00
jack-berg 299cfad6e6
Close OpenTelemetrySdk after all tests (#5139) 2023-01-20 20:02:33 -08:00
jack-berg 8897dd4d5c
Revert removal final newline (#5133)
* Revert removal final newline

* Add to final newlin editorconfigoverride
2023-01-18 08:51:41 -06:00
dependabot[bot] 1e4a7be6be
Bump spotless-plugin-gradle from 6.12.1 to 6.13.0 (#5126)
* Bump spotless-plugin-gradle from 6.12.1 to 6.13.0

Bumps [spotless-plugin-gradle](https://github.com/diffplug/spotless) from 6.12.1 to 6.13.0.
- [Release notes](https://github.com/diffplug/spotless/releases)
- [Changelog](https://github.com/diffplug/spotless/blob/main/CHANGES.md)
- [Commits](https://github.com/diffplug/spotless/compare/gradle/6.12.1...plugin-gradle/6.13.0)

---
updated-dependencies:
- dependency-name: com.diffplug.spotless:spotless-plugin-gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix build

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jack Berg <jberg@newrelic.com>
2023-01-17 16:47:56 -06:00
Gregor Zeitlinger 67127c791f
sort spans by start time (parents before children as tiebreaker) to avoid common causes for flaky tests (#5026) 2023-01-10 16:05:36 -06:00
jack-berg ca18354115
Prepare for 1.21.0 release (#5028)
* Update bom to point to opentelemetry-extension-aws:1.20.1

* Update changelog for 1.21.0 release

* Add missing since annotations

* Spotless

* Include 1.16.0 semantic convention update in changelog

* Add attribute assertions change
2022-12-09 13:22:51 -06:00
jason plumb 79a601d7d7
Attribute assertions should always contain the attr key (#5027)
* improve attribute assertions to alwyas contain the attr key

* spotless

* change assertion

* Update sdk/testing/src/test/java/io/opentelemetry/sdk/testing/assertj/AttributeAssertionTest.java

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

* fix build

Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
2022-12-09 12:51:07 -06:00
Łukasz Monkiewicz ac2ba4a2df
Adjustment of behaviour of hasXAttributesSatisfying and hasXAttribute… (#4882)
* 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>
2022-11-29 13:47:15 -06:00
jack-berg fa3d292879
Fix misleading javadoc (#4946) 2022-11-13 08:53:42 -06:00
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