-
Notifications
You must be signed in to change notification settings - Fork 5
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
maint: Add Django example #176
Conversation
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.
Some corrections to the README for a follow-up PR.
## Distro Instrumentation Example | ||
|
||
This app uses configuration configures the OpenTelemetry SDK programmatically in [manage.py](./manage.py). | ||
Alternitively, you can use environment variables as parameters like below: |
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.
Alternitively, you can use environment variables as parameters like below: | |
Alternatively, you can use environment variables as parameters like below: |
To send to Honeycomb, set your API Key: | ||
|
||
```bash | ||
HONEYCOMB_API_KEY="your-api-key" poetry run python3 app.py |
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.
Update this example command to use the same as earlier in this README for the django app.
HONEYCOMB_API_KEY="your-api-key" poetry run python3 app.py | |
HONEYCOMB_API_KEY="your-api-key" poetry run python manage.py runserver |
## Which problem is this PR solving? Fixes a couple of typos in the Django example added in the following PR: - #176 ## Short description of the changes - Fix typos - Update run command to match previous example ## How to verify that this has the expected result Django example doesn't contain typos and commands execute as expected.
Which problem is this PR solving?
Adds a Django example for users of that ecosystem to reference.
Short description of the changes
How to verify that this has the expected result
Some can use the django example to better understand and use this distro.