Skip to content

Attribute assertions should always contain the attr key - #5027

Merged
jack-berg merged 5 commits into
open-telemetry:mainfrom
breedx-splk:improve_assertion_message
Dec 9, 2022
Merged

Attribute assertions should always contain the attr key#5027
jack-berg merged 5 commits into
open-telemetry:mainfrom
breedx-splk:improve_assertion_message

Conversation

@breedx-splk

Copy link
Copy Markdown
Contributor

Resolves #5025

@breedx-splk
breedx-splk requested a review from a team December 8, 2022 23:02
@codecov

codecov Bot commented Dec 8, 2022

Copy link
Copy Markdown

Codecov Report

Base: 91.24% // Head: 91.25% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (5bfc8bb) compared to base (ab31828).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #5027      +/-   ##
============================================
+ Coverage     91.24%   91.25%   +0.01%     
+ Complexity     4886     4881       -5     
============================================
  Files           552      552              
  Lines         14440    14424      -16     
  Branches       1379     1375       -4     
============================================
- Hits          13176    13163      -13     
+ Misses          876      875       -1     
+ Partials        388      386       -2     
Impacted Files Coverage Δ
.../aggregator/DoubleExponentialHistogramBuckets.java 87.27% <ø> (-0.77%) ⬇️
...opentelemetry/opentracingshim/SpanBuilderShim.java 94.78% <100.00%> (+0.98%) ⬆️
...ava/io/opentelemetry/opentracingshim/SpanShim.java 91.07% <100.00%> (+0.80%) ⬆️
...gregator/DoubleExponentialHistogramAggregator.java 100.00% <100.00%> (ø)
...emetry/sdk/testing/assertj/AttributeAssertion.java 83.33% <100.00%> (+5.55%) ⬆️
...y/exporter/internal/marshal/CodedOutputStream.java 69.82% <0.00%> (-1.19%) ⬇️
...metry/sdk/logs/export/BatchLogRecordProcessor.java 90.07% <0.00%> (ø)
...emconv/resource/attributes/ResourceAttributes.java 100.00% <0.00%> (ø)
...metry/sdk/metrics/export/PeriodicMetricReader.java 90.00% <0.00%> (+2.85%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jkwatson jkwatson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

breedx-splk and others added 2 commits December 9, 2022 09:11
…/AttributeAssertionTest.java

Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
@jack-berg
jack-berg merged commit 79a601d into open-telemetry:main Dec 9, 2022
dmarkwat pushed a commit to dmarkwat/opentelemetry-java that referenced this pull request Dec 30, 2022
…ry#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Better error messages from SpanDataAssert#hasAttributesSatisfyingExactly(AttributeAssertion...)

3 participants