This commit is contained in:
PhanThanhTrung 2024-10-29 15:03:31 +07:00
parent 17a00c3595
commit 5bcbc257de
4 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ from utils.logging.logging import LOGGER_CONFIG
logging.config.dictConfig(LOGGER_CONFIG) logging.config.dictConfig(LOGGER_CONFIG)
# Get the logger # Get the logger
logger = logging.getLogger(__name__) 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("OCR engine configfs: \n", ocr_cfg)
logger.info("KVU configfs: \n", kvu_cfg) logger.info("KVU configfs: \n", kvu_cfg)

View File

@ -14,7 +14,7 @@ from .task_warpper import VerboseTask
logging.config.dictConfig(LOGGER_CONFIG) logging.config.dictConfig(LOGGER_CONFIG)
# Get the logger # Get the logger
logger = logging.getLogger(__name__) 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) @app.task(base=VerboseTask,name="process_sbt_invoice", track_started=True)
def process_sbt_invoice(rq_id, list_url, metadata): def process_sbt_invoice(rq_id, list_url, metadata):

View File

@ -11,7 +11,7 @@ from utils.logging.logging import LOGGER_CONFIG
logging.config.dictConfig(LOGGER_CONFIG) logging.config.dictConfig(LOGGER_CONFIG)
logger = logging.getLogger(__name__) 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/' os.environ['PYTHONPATH'] = '/home/thucpd/thucpd/cope2n-ai/cope2n-ai/'

View File

@ -4,7 +4,7 @@ import json
from tqdm import tqdm from tqdm import tqdm
from opentelemetry import trace from opentelemetry import trace
tracer = trace.get_tracer() tracer = trace.get_tracer("sbt_celery_ai")
@tracer.start_as_current_span("longestCommonSubsequence") @tracer.start_as_current_span("longestCommonSubsequence")
def longestCommonSubsequence(text1: str, text2: str) -> int: def longestCommonSubsequence(text1: str, text2: str) -> int: