MCPcopy
hub / github.com/Agenta-AI/agenta / get_tracing_session

Method get_tracing_session

api/oss/src/models/db/postgres_engine.py:93–101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

91
92 @asynccontextmanager
93 async def get_tracing_session(self) -> AsyncGenerator[AsyncSession, None]:
94 session = self.async_tracing_session()
95 try:
96 yield session
97 except Exception as e:
98 await session.rollback()
99 raise e
100 finally:
101 await session.close()
102
103 async def close_db(self):
104 """

Callers

nothing calls this directly

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected