Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute assertions should always contain the attr key #5027

Merged

Conversation

breedx-splk
Copy link
Contributor

Resolves #5025

@breedx-splk breedx-splk requested a review from a team as a code owner December 8, 2022 23:02
@codecov
Copy link

codecov bot commented Dec 8, 2022

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.

Copy link
Contributor

@jkwatson jkwatson left a comment

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