Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pnvnd committed Apr 17, 2022
1 parent c5bec3e commit 2de0598
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
27 changes: 25 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,25 @@
# learning_log
Check out the deployed app at https://pnvnd.herokuapp.com
# Instructions
Check out the deployed app at https://datacrunch-python-django.herokuapp.com/

1. `python -m venv venv`
2. `.\venv\Scripts\Activate.ps1`
3. `pip install -r requirements.txt`
4. `python -m pip install --upgrade pip`
5. `python manage.py migrate` (optional)
6. `python manage.py runserver`
7. Go to http://127.0.0.1:8000

# OpenTelemetry
1. Check out the OTEL settings in `learning_logs/view.py`
2. Set the following environment variables:
```PowerShell
$env:DJANGO_SETTINGS_MODULE="learning_log.setting"
$env:OTEL_EXPORTER_OTLP_ENDPOINT="https://otlp.nr-data.net:4317"
$env:OTEL_EXPORTER_OTLP_HEADERS="api-key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXNRAL"
$env:OTEL_LOGS_EXPORTER="otlp"
$env:OTEL_METRICS_EXPORTER="otlp"
$env:OTEL_METRIC_EXPORT_INTERVAL="1000"
$env:OTEL_RESOURCE_ATTRIBUTES="service.name=python-django.local,service.instance.id=localhost"
```
3. `python manage.py runserver --noreload`
2 changes: 1 addition & 1 deletion runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.10.3
python-3.10.4

0 comments on commit 2de0598

Please sign in to comment.