2026-09-05 08:12:30 +03:30
|
|
|
import asyncio
|
|
|
|
|
|
2026-10-13 10:09:57 +03:30
|
|
|
from opentelemetry.instrumentation.sqlalchemy import SQLAlchemyInstrumentor
|
|
|
|
|
|
|
|
|
|
from common.db import engine
|
2026-09-05 08:12:30 +03:30
|
|
|
from common.logging_config import configure_logging
|
2026-10-13 10:09:57 +03:30
|
|
|
from common.telemetry import setup_telemetry
|
2026-09-05 08:12:30 +03:30
|
|
|
|
|
|
|
|
from . import consumer
|
|
|
|
|
|
|
|
|
|
configure_logging("audit")
|
2026-10-13 10:09:57 +03:30
|
|
|
setup_telemetry(service_name="audit")
|
|
|
|
|
SQLAlchemyInstrumentor().instrument(engines=[engine.sync_engine])
|
2026-09-05 08:12:30 +03:30
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
asyncio.run(consumer.run())
|