Skip to content

Commit 694fcc2

Browse files
fix: make TelemetryCollector.stop() consistent with shutdown behavior
Ensures TelemetryCollector.stop() calls shutdown() instead of just flush() for consistency with the main atexit handler and proper PostHog session cleanup. Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>
1 parent 9ae29b0 commit 694fcc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/praisonai-agents/praisonaiagents/telemetry/telemetry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ def start(self):
354354
pass
355355

356356
def stop(self):
357-
"""Stop telemetry collection and flush data."""
358-
self.telemetry.flush()
357+
"""Stop telemetry collection and properly shutdown."""
358+
self.telemetry.shutdown()
359359

360360
def trace_agent_execution(self, agent_name: str, **attributes):
361361
"""Compatibility method for agent execution tracking."""

0 commit comments

Comments
 (0)