update
This commit is contained in:
parent
90f959223c
commit
17a00c3595
@ -14,7 +14,7 @@ from pathlib import Path
|
|||||||
import environ
|
import environ
|
||||||
from django.urls import reverse_lazy
|
from django.urls import reverse_lazy
|
||||||
from fwd_api.middleware.logging_request_response_middleware import TraceIDLogFilter
|
from fwd_api.middleware.logging_request_response_middleware import TraceIDLogFilter
|
||||||
|
from .opentelemetry_config import setup_tracing
|
||||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||||
|
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
@ -22,6 +22,11 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
|||||||
env = environ.Env(
|
env = environ.Env(
|
||||||
DEBUG=(bool, False)
|
DEBUG=(bool, False)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
tracer_endpoint = env.str("tracer_endpoint", "http://jaeger_collector:4318")
|
||||||
|
service_name = "sbt_celery_backend"
|
||||||
|
setup_tracing(tracer_endpoint=tracer_endpoint, service_name=service_name)
|
||||||
|
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
environ.Env.read_env(os.path.join(BASE_DIR, '.env'))
|
environ.Env.read_env(os.path.join(BASE_DIR, '.env'))
|
||||||
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=['*'] + ['107.120.{}.{}'.format(i, j) for i in range(256) for j in range(256)])
|
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=['*'] + ['107.120.{}.{}'.format(i, j) for i in range(256) for j in range(256)])
|
||||||
|
Loading…
Reference in New Issue
Block a user