-
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 Getting started documentation for otel-cpp sdk #942
Conversation
docs/public/sdk/GettingStarted.rst
Outdated
- In-Memory Exporter: keeps the data in memory, useful for debugging. | ||
- Jaeger Exporter: prepares and sends the collected telemetry data to a Jaeger backend via UDP and HTTP. | ||
- Zipkin Exporter: prepares and sends the collected telemetry data to a Zipkin backend via the Zipkin APIs. | ||
- Logging Exporter: saves the telemetry data into log streams |
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.
nit: ending .
? The same for line 20.
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.
thanks, it was missing at few other places, fixed all.
Codecov Report
@@ Coverage Diff @@
## main #942 +/- ##
=======================================
Coverage 95.36% 95.36%
=======================================
Files 160 160
Lines 6780 6780
=======================================
Hits 6465 6465
Misses 315 315 |
opts.server_addr = "localhost"; | ||
opts.server_port = 6831; | ||
auto jaeger_udp_exporter = | ||
std::unique_ptr<sdktrace::SpanExporter>(new opentelemetry::exporter::jaeger::JaegerExporter(opts)); |
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.
Add Jaeger HTTP example?
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.
Yes missed that. Added now.
.. code:: cpp | ||
|
||
// simple processor | ||
auto simple_processor = std::unique_ptr<sdktrace::SpanProcessor>( |
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.
List the full definition of stdtrace
in the beginning may help the users who follow these example code?
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.
Good point. Added it at the beginning.
Changes
Currently, the otel-cpp documentation ( https://opentelemetry-cpp.readthedocs.io/en/latest/ ) contains reference api documentation for both sdk and api and
Getting started
doc for api. But theGetting started
doc for sdk is missing.This PR adds the sdk doc. This is how the sdk doc looks like:
https://labhas-opentelemetry-cpp.readthedocs.io/en/latest/sdk/GettingStarted.html
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes