generated from honeycombio/.github
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: clarify SDK configuration options (command vs function) and fina…
…l developing.md & readme.md audits (#105) <!-- Thank you for contributing to the project! 💜 Please see our [OSS process document](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md#) to get an idea of how we operate. --> ## Which problem is this PR solving? - Closes #57 - Closes #77 ## Short description of the changes - Created an examples overview - Comments to smoke tests re: testing both configure_opentelemetry() and opentelemetry_instrument - Moved example development notes to developing.md - Left additional breadcrumbs for others to use the smoke-test docker-compose for running examples with collector should they so choose ## How to verify that this has the expected result All the links in the readme's work. Finding information about example usage is clear. It's clear there are two ways to use the distro: configure_opentelemetry() or opentelemetry_instrument Note: This is probably best reviewed by viewing the readme's in the [repo view](https://github.com/honeycombio/honeycomb-opentelemetry-python/tree/emash-config-vs-command) rather than the .md diffs :)
- Loading branch information
1 parent
63ec5fe
commit d6beb27
Showing
8 changed files
with
69 additions
and
49 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
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,35 @@ | ||
# Examples | ||
|
||
## [Hello World Flask](hello-world-flask/) | ||
|
||
This example configures the distro using the `opentelemetry_instrument` command, and contains examples of: | ||
- configuring the distro with environment variables | ||
- sending metrics with OpenTelemetry using a counter | ||
- using baggage with context tokens | ||
- manually passing baggage with context | ||
- setting a span attribute | ||
|
||
Check out the [Hello-World-Flask Readme](hello-world-flask/README.md) for setting this up! | ||
|
||
## [Hello World Python](hello-world/) | ||
|
||
This example configures the distro using the `configure_opentelemetry()` function, and contains examples of: | ||
- configuring the distro with a combination of parameters and set environment variables | ||
- sending metrics with OpenTelemetry using a counter | ||
- using baggage with context tokens | ||
- setting a span attribute | ||
|
||
Check out the [Hello-World Readme](hello-world/README.md) for setting this up! | ||
|
||
## Running Examples with Docker-Compose | ||
|
||
If you'd like to use Docker for running these examples, there is a `docker-compose.yml` we use for smoke-tests [that may be helpful.](../smoke-tests/docker-compose.yml) | ||
|
||
We have the HONEYCOMB_API_ENDPOINT set to an OpenTelemetry Collector. This can be modified as needed or deleted entirely to use the default Honeycomb API Endpoint. | ||
|
||
Because each example uses the same port, either comment out the other apps in the docker-compose file, or specify the app and protocol to run: | ||
|
||
```bash | ||
cd smoke-tests && docker-compose up --build app-sdk-grpc | ||
``` | ||
|
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