Files
LedgerLine/services/audit/worker.py
T

17 lines
435 B
Python
Raw Normal View History

import asyncio
from opentelemetry.instrumentation.sqlalchemy import SQLAlchemyInstrumentor
from common.db import engine
from common.logging_config import configure_logging
from common.telemetry import setup_telemetry
from . import consumer
configure_logging("audit")
setup_telemetry(service_name="audit")
SQLAlchemyInstrumentor().instrument(engines=[engine.sync_engine])
if __name__ == "__main__":
asyncio.run(consumer.run())