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

Method tracing_session

api/oss/src/dbs/postgres/shared/engine.py:86–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84
85 @asynccontextmanager
86 async def tracing_session(self) -> AsyncGenerator[AsyncSession, None]:
87 session: AsyncSession = self.async_tracing_session()
88
89 try:
90 yield session
91 await session.commit()
92
93 except Exception as e:
94 await session.rollback()
95 raise e
96
97 finally:
98 await session.close()
99
100 ### LEGACY CODE ###
101

Callers 15

queryMethod · 0.80
analyticsMethod · 0.80
create_oneMethod · 0.80
create_manyMethod · 0.80
read_oneMethod · 0.80
read_manyMethod · 0.80
read_childrenMethod · 0.80
delete_oneMethod · 0.80
delete_manyMethod · 0.80
create_spanMethod · 0.80
create_spansMethod · 0.80
read_spanMethod · 0.80

Calls 2

closeMethod · 0.80
commitMethod · 0.45

Tested by

no test coverage detected