Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
groovecoder committed Dec 18, 2023
1 parent 1530b8f commit 1068357
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env-dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ DJANGO_INTERNAL_IPS=127.0.0.1, localhost
RELAY_FIREFOX_DOMAIN="relay.firefox.com"
MOZMAIL_DOMAIN="mozmail.com"
SENTRY_DSN=""
OTEL_PYTHON_DJANGO_INSTRUMENT=False
SERVE_ADDON="private_relay.zip"
AWS_REGION="us-east-1"
AWS_ACCESS_KEY_ID=""
Expand Down
4 changes: 4 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
import os
import sys

from opentelemetry.instrumentation.django import DjangoInstrumentor


def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "privaterelay.settings")
instrumentor = DjangoInstrumentor()
instrumentor.instrument()
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ google-measurement-protocol==1.1.0
gunicorn==21.2.0
jwcrypto==1.5.0
markus[datadog]==4.2.0
opentelemetry-instrumentation-django==0.42b0
opentelemetry-exporter-gcp-trace==1.6.0
pem==23.1.0
psycopg2==2.9.9
PyJWT==2.8.0
Expand Down

0 comments on commit 1068357

Please sign in to comment.