Providing an abstract HTTP interface.#370
Conversation
Codecov Report
@@ Coverage Diff @@
## master #370 +/- ##
==========================================
- Coverage 94.91% 94.88% -0.03%
==========================================
Files 155 155
Lines 6882 6882
==========================================
- Hits 6532 6530 -2
- Misses 350 352 +2
|
pyohannes
left a comment
There was a problem hiding this comment.
Thanks for working on this. This will be an important part of our SDK.
Co-authored-by: Reiley Yang <reyang@microsoft.com>
Co-authored-by: Johannes Tax <jtax@newrelic.com>
Co-authored-by: Johannes Tax <jtax@newrelic.com>
Co-authored-by: Johannes Tax <jtax@newrelic.com>
pyohannes
left a comment
There was a problem hiding this comment.
I have some smaller questions. But pending those answered, this PR is ready to be merged and I'll approve it.
Co-authored-by: Johannes Tax <jtax@newrelic.com>
Co-authored-by: Johannes Tax <jtax@newrelic.com>
Co-authored-by: Johannes Tax <jtax@newrelic.com>
|
|
||
| void OnError(nostd::string_view err) noexcept override | ||
| { | ||
| std::cout << " Error:" << err; |
| Delete | ||
| }; | ||
|
|
||
| enum class SessionState |
There was a problem hiding this comment.
There are plenty of errors, e.g., libcurl https://curl.haxx.se/libcurl/c/libcurl-errors.html - some are specific to libcurl, others are specific to non HTTP/HTTPS protocols, but many would be found in any HTTP library
There was a problem hiding this comment.
Right. http_client implementer for libcurl, winInet, winhttp and others need to ensure to map all those library-specific errors to http_client error states.
…s-create-or-update-comment-digest Update peter-evans/create-or-update-comment digest to f2fea6b
This PR brings the HTTP client API to be used across various exporters ( eg zipkin, azure monitor ) to communicate with remove telemetry servers/collectors.
In continuation with previous #309 PR which I have closed now due to copyright/license issues.
This closes #6
@maxgolov @pyohannes @ThomsonTan - please help reviewing this.