-
Notifications
You must be signed in to change notification settings - Fork 423
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
Add http client/server example #632
Conversation
Codecov Report
@@ Coverage Diff @@
## main #632 +/- ##
==========================================
+ Coverage 94.49% 94.51% +0.02%
==========================================
Files 197 197
Lines 9130 9127 -3
==========================================
- Hits 8627 8626 -1
+ Misses 503 501 -2
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small suggestions.
exporters/ostream/include/opentelemetry/exporters/ostream/span_exporter.h
Outdated
Show resolved
Hide resolved
exporters/ostream/include/opentelemetry/exporters/ostream/span_exporter.h
Outdated
Show resolved
Hide resolved
Co-authored-by: Tom Tan <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm generally OK with this, but it would be best if you fix the not-so-atomic check-run-assign on atomic, because someone else may look at this code, and spread the erroneous implementation elsewhere.
Fixes #631
Changes
Adds simple client/server example using http client and server library as provided by this repo.
It's very simple functionality for now to create and dump spans at both the end. Next step would be to have nested spans and w3c context propagation.
Also small formatting fix in ostream exporter to dump attributes properly. Currently on xterm, contents get wrapped on same line and not readable properly for larger attributes.
CHANGELOG.md
updated for non-trivial changes