Skip to content

w3c tracing integration test#522

Merged
artursouza merged 3 commits into
dapr:masterfrom
artursouza:w3c_integration_test
Mar 23, 2021
Merged

w3c tracing integration test#522
artursouza merged 3 commits into
dapr:masterfrom
artursouza:w3c_integration_test

Conversation

@artursouza

@artursouza artursouza commented Mar 20, 2021

Copy link
Copy Markdown
Contributor

Description

Added integration test for W3C tracing

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #394

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@halspang halspang 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.

Looks fine overall, just a few quick comments.

Comment on lines +93 to +99
private static boolean isZipkinUp() {
try (Socket ignored = new Socket("localhost", ZIPKIN_PORT)) {
return true;
} catch (IOException ignored) {
return false;
}
}

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.

Is it worth calling any specific API here to actually check the health? Or do we not really need to worry about a scenario where the socket is open but the underlying server isn't listening?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If that happens, then we need to have a smarter logic here. Zipkin is installed way before this check, so we don't run into that race condition (yet).

Comment thread sdk-tests/src/test/java/io/dapr/it/tracing/Validation.java
Comment thread sdk-tests/src/test/java/io/dapr/it/tracing/Validation.java Outdated
@artursouza artursouza requested a review from halspang March 23, 2021 01:38
@codecov

codecov Bot commented Mar 23, 2021

Copy link
Copy Markdown

Codecov Report

Merging #522 (4c8304f) into master (9662265) will decrease coverage by 0.13%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #522      +/-   ##
============================================
- Coverage     80.59%   80.46%   -0.14%     
+ Complexity      975      974       -1     
============================================
  Files            88       88              
  Lines          3015     3015              
  Branches        330      330              
============================================
- Hits           2430     2426       -4     
- Misses          420      423       +3     
- Partials        165      166       +1     
Impacted Files Coverage Δ Complexity Δ
sdk/src/main/java/io/dapr/utils/Retry.java 50.00% <0.00%> (-25.00%) 1.00% <0.00%> (-1.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9662265...4c8304f. Read the comment docs.

@artursouza artursouza merged commit 589a352 into dapr:master Mar 23, 2021
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* w3c tracing integration test

* Addresses PR comments.

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.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.

Integration test for W3C tracing

3 participants