From 118398fa68ed65343175bf2dae90d29e83b73784 Mon Sep 17 00:00:00 2001 From: icurfer Date: Fri, 5 Dec 2025 12:40:05 +0900 Subject: [PATCH] [update] Trace Endpoint --- README.md | 6 ++++++ auth_prj/wsgi.py | 6 ++++-- version | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ecc2eb4..376b03a 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,12 @@ python3 manage.py runserver 0.0.0.0:8000 gunicorn auth_prj.wsgi:application --bind 0.0.0.0:8000 --workers 3 ``` +## 2025-12-05 TRACE ENDPOINT 변경 ( v0.0.15 ) +* 변경전 static +* 변경후 변수 처리 + * TRACE_ENDPOINT='test' + * TRACE_SERVICE_NAME='' + ## 2025-09-29 jaeger Endpoint 변경 ( v0.0.14 ) * 변경전: endpoint="http://jaeger-collector.istio-system:4317", * 변경후: endpoint="http://jaeger-collector.observability.svc.cluster.local:4317", diff --git a/auth_prj/wsgi.py b/auth_prj/wsgi.py index e299225..fd7346b 100644 --- a/auth_prj/wsgi.py +++ b/auth_prj/wsgi.py @@ -27,14 +27,16 @@ if not settings.DEBUG: trace.set_tracer_provider( TracerProvider( resource=Resource.create({ - "service.name": "msa-django-auth", + # "service.name": "msa-django-auth", + "service.name": settings.TRACE_SERVICE_NAME, }) ) ) otlp_exporter = OTLPSpanExporter( # endpoint="http://jaeger-collector.istio-system:4317", - endpoint="jaeger-collector.observability.svc.cluster.local:4317", + # endpoint="jaeger-collector.observability.svc.cluster.local:4317", + endpoint=settings.TRACE_ENDPOINT, insecure=True, ) diff --git a/version b/version index 75e92d0..faa66db 100644 --- a/version +++ b/version @@ -1 +1 @@ -v0.0.14_r1 \ No newline at end of file +v0.0.15 \ No newline at end of file