Skip to content

curl based implementation for http client api#385

Merged
reyang merged 34 commits intoopen-telemetry:masterfrom
lalitb:http_client_curl
Nov 18, 2020
Merged

curl based implementation for http client api#385
reyang merged 34 commits intoopen-telemetry:masterfrom
lalitb:http_client_curl

Conversation

@lalitb
Copy link
Copy Markdown
Member

@lalitb lalitb commented Nov 3, 2020

This brings the CURL implementation for HTTP Client API, along with few minor changes in API.

TODO -

@lalitb lalitb requested a review from a team November 3, 2020 20:56
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 3, 2020

Codecov Report

Merging #385 (2568485) into master (88d43a3) will decrease coverage by 0.29%.
The diff coverage is 89.52%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #385      +/-   ##
==========================================
- Coverage   95.00%   94.71%   -0.30%     
==========================================
  Files         171      175       +4     
  Lines        7186     7581     +395     
==========================================
+ Hits         6827     7180     +353     
- Misses        359      401      +42     
Impacted Files Coverage Δ
...nclude/opentelemetry/ext/http/client/http_client.h 90.90% <ø> (ø)
...lemetry/ext/http/client/curl/http_operation_curl.h 82.43% <82.43%> (ø)
ext/test/http/curl_http_test.cc 93.50% <93.50%> (ø)
...ntelemetry/ext/http/client/curl/http_client_curl.h 95.00% <95.00%> (ø)
sdk/test/metrics/counter_aggregator_test.cc 98.21% <0.00%> (-1.79%) ⬇️
sdk/test/common/circular_buffer_test.cc 98.97% <0.00%> (-1.03%) ⬇️
... and 2 more

Comment thread sdk/include/opentelemetry/sdk/common/http_client.h Outdated
Comment thread sdk/include/opentelemetry/sdk/common/http_client.h Outdated
Comment thread sdk/include/opentelemetry/sdk/common/http_client.h Outdated
Copy link
Copy Markdown
Member

@reyang reyang left a comment

Choose a reason for hiding this comment

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

LGTM.

Comment thread exporters/include/opentelemetry/exporters/common/http/http_client_curl.h Outdated
Comment thread exporters/test/CMakeLists.txt Outdated
Comment thread exporters/include/opentelemetry/exporters/common/http/http_operation_curl.h Outdated
lalitb and others added 3 commits November 10, 2020 10:10
Co-authored-by: Reiley Yang <reyang@microsoft.com>
Co-authored-by: Reiley Yang <reyang@microsoft.com>
Copy link
Copy Markdown
Contributor

@jsuereth jsuereth left a comment

Choose a reason for hiding this comment

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

This looks fine for CURL, but I have a few asks:

  • Can you open a ticket about Bazel support and assign to me? I'll look into it.
  • Can you update documentation for how to compile w/ CURL support (with a TODO on bazel). I think adding optional deps like these really need to be well documented on how to consume them, and what level of support they have.

Copy link
Copy Markdown
Contributor

@pyohannes pyohannes left a comment

Choose a reason for hiding this comment

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

Thanks for bringing this on the way. I added some suggestions and questions about points that are unclear to me.

Comment thread CMakeLists.txt Outdated
Comment thread CMakeLists.txt Outdated
Comment thread CMakeLists.txt Outdated
Comment thread exporters/include/opentelemetry/exporters/common/http/http_client_curl.h Outdated
Comment thread exporters/include/opentelemetry/exporters/common/http/http_operation_curl.h Outdated
Comment thread exporters/include/opentelemetry/exporters/common/http/http_client_curl.h Outdated
Comment thread exporters/include/opentelemetry/exporters/common/http/http_operation_curl.h Outdated
@lalitb
Copy link
Copy Markdown
Member Author

lalitb commented Nov 12, 2020

This looks fine for CURL, but I have a few asks:

  • Can you open a ticket about Bazel support and assign to me? I'll look into it.
  • Can you update documentation for how to compile w/ CURL support (with a TODO on bazel). I think adding optional deps like these really need to be well documented on how to consume them, and what level of support they have.

Appreciate your help here @jsuereth . I have created the ticket #390 for bazel build, and assigned to you. Please feel free to take it up once this PR is merged. I will add documentation for this dependency, though I have mentioned few details in new ticket which will help you get going.

@lalitb
Copy link
Copy Markdown
Member Author

lalitb commented Nov 13, 2020

Need to remove http_server from code coverage . It seems to be affecting the overall percentage.

@lalitb
Copy link
Copy Markdown
Member Author

lalitb commented Nov 18, 2020

@reyang - We discussed this PR during community meeting. It should be fine to merge it. There is tiny drop in code coverage percentage I believe it should be acceptable.

@reyang reyang merged commit f101607 into open-telemetry:master Nov 18, 2020
GerHobbelt pushed a commit to GerHobbelt/opentelemetry-cpp that referenced this pull request Aug 31, 2025
…ib-1.x

Update dependency bazel_skylib to v1.8.0
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.

6 participants