This commit is contained in:
@ -34,6 +34,7 @@ else:
|
||||
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
SECRET_KEY = os.environ.get('SECRET_KEY', 'django-insecure-ec9me^z%x7-2vwee5#qq(kvn@^cs!!22_*f-im(320_k5-=0j5')
|
||||
SERVICE_PLATFORM = os.getenv("SERVICE_PLATFORM", "none")
|
||||
TRACE_SERVICE_NAME = os.getenv("TRACE_SERVICE_NAME", "msa-django-auth")
|
||||
TRACE_ENDPOINT = os.getenv("TRACE_ENDPOINT", "none")
|
||||
|
||||
|
||||
@ -27,6 +27,7 @@ if not settings.DEBUG:
|
||||
trace.set_tracer_provider(
|
||||
TracerProvider(
|
||||
resource=Resource.create({
|
||||
"service.platform": settings.SERVICE_PLATFORM,
|
||||
# "service.name": "msa-django-auth",
|
||||
"service.name": settings.TRACE_SERVICE_NAME,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user