From 5bcbc257de8d2be09d9c726815432895ac89e5fb Mon Sep 17 00:00:00 2001 From: PhanThanhTrung Date: Tue, 29 Oct 2024 15:03:31 +0700 Subject: [PATCH] update --- cope2n-ai-fi/api/sdsap_sbt/prediction_sbt.py | 2 +- cope2n-ai-fi/celery_worker/mock_process_tasks_fi.py | 2 +- cope2n-ai-fi/common/process_pdf.py | 2 +- cope2n-ai-fi/common/utils_kvu/split_docs.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cope2n-ai-fi/api/sdsap_sbt/prediction_sbt.py b/cope2n-ai-fi/api/sdsap_sbt/prediction_sbt.py index 896e292..3f506ff 100755 --- a/cope2n-ai-fi/api/sdsap_sbt/prediction_sbt.py +++ b/cope2n-ai-fi/api/sdsap_sbt/prediction_sbt.py @@ -23,7 +23,7 @@ from utils.logging.logging import LOGGER_CONFIG logging.config.dictConfig(LOGGER_CONFIG) # Get the logger logger = logging.getLogger(__name__) -tracer = trace.get_tracer() +tracer = trace.get_tracer("sbt_celery_ai") logger.info("OCR engine configfs: \n", ocr_cfg) logger.info("KVU configfs: \n", kvu_cfg) diff --git a/cope2n-ai-fi/celery_worker/mock_process_tasks_fi.py b/cope2n-ai-fi/celery_worker/mock_process_tasks_fi.py index 2a0521b..a229e32 100755 --- a/cope2n-ai-fi/celery_worker/mock_process_tasks_fi.py +++ b/cope2n-ai-fi/celery_worker/mock_process_tasks_fi.py @@ -14,7 +14,7 @@ from .task_warpper import VerboseTask logging.config.dictConfig(LOGGER_CONFIG) # Get the logger logger = logging.getLogger(__name__) -tracer = trace.get_tracer() +tracer = trace.get_tracer("sbt_celery_ai") @app.task(base=VerboseTask,name="process_sbt_invoice", track_started=True) def process_sbt_invoice(rq_id, list_url, metadata): diff --git a/cope2n-ai-fi/common/process_pdf.py b/cope2n-ai-fi/common/process_pdf.py index 2cde1e0..3dba615 100755 --- a/cope2n-ai-fi/common/process_pdf.py +++ b/cope2n-ai-fi/common/process_pdf.py @@ -11,7 +11,7 @@ from utils.logging.logging import LOGGER_CONFIG logging.config.dictConfig(LOGGER_CONFIG) logger = logging.getLogger(__name__) -tracer = trace.get_tracer() +tracer = trace.get_tracer("sbt_celery_ai") os.environ['PYTHONPATH'] = '/home/thucpd/thucpd/cope2n-ai/cope2n-ai/' diff --git a/cope2n-ai-fi/common/utils_kvu/split_docs.py b/cope2n-ai-fi/common/utils_kvu/split_docs.py index 157bdb1..590f678 100755 --- a/cope2n-ai-fi/common/utils_kvu/split_docs.py +++ b/cope2n-ai-fi/common/utils_kvu/split_docs.py @@ -4,7 +4,7 @@ import json from tqdm import tqdm from opentelemetry import trace -tracer = trace.get_tracer() +tracer = trace.get_tracer("sbt_celery_ai") @tracer.start_as_current_span("longestCommonSubsequence") def longestCommonSubsequence(text1: str, text2: str) -> int: