-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Reorganize examples and improve ext packages documentation (#483)
This commit moves the text on the readmes of the external packages to their source code as a docstring. This improves the generated documentation and helps to consolidate the documentation in a single place. Also unify the readmes present on each package to include a 1 line description, installation instructions and a link to the online documentation. This small readme will be the one shown on Github and on PyPI. Also change the examples structure to have the following examples: - basic meter & tracer - http integration - jaeger, prometheus, otcollector{tracer, metrics} - opentracing shim Co-authored-by: alrex <alrex.boten@gmail.com> Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
- Loading branch information
1 parent
fbfafa4
commit 04a9533
Showing
62 changed files
with
945 additions
and
680 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Basic Meter | ||
=========== | ||
|
||
These examples show how to use OpenTelemetry to capture and report metrics. | ||
|
||
There are three different examples: | ||
|
||
* basic_metrics: Shows to how create a metric instrument, how to configure an | ||
exporter and a controller and also how to capture data by using the direct | ||
calling convention. | ||
|
||
* calling_conventions: Shows how to use the direct, bound and batch calling conventions. | ||
|
||
* observer: Shows how to use the observer instrument. | ||
|
||
The source files of these examples are available :scm_web:`here <docs/examples/metrics/>`. | ||
|
||
Installation | ||
------------ | ||
|
||
.. code-block:: sh | ||
pip install opentelemetry-api | ||
pip install opentelemetry-sdk | ||
pip install psutil # needed to get ram and cpu usage in the observer example | ||
Run the Example | ||
--------------- | ||
|
||
.. code-block:: sh | ||
python <example_name>.py | ||
The output will be shown in the console after few seconds. | ||
|
||
Useful links | ||
------------ | ||
|
||
- OpenTelemetry_ | ||
- :doc:`../../api/metrics` | ||
|
||
.. _OpenTelemetry: https://github.com/open-telemetry/opentelemetry-python/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.