mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-18 03:34:20 +00:00
fix(monitoring): mark handled pipeline errors in traces
This commit is contained in:
@@ -9,6 +9,8 @@ from ....core import app
|
||||
from ....entity.persistence import monitoring as persistence_monitoring
|
||||
|
||||
|
||||
# TODO: Move shared trace/time helpers into a small monitoring utility module
|
||||
# when trace propagation expands beyond the current query/retrieval path.
|
||||
def _utc_now() -> datetime.datetime:
|
||||
return datetime.datetime.now(datetime.timezone.utc).replace(tzinfo=None)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user