praisonaiagents 0.0.132__py3-none-any.whl → 0.0.133__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- praisonaiagents/telemetry/telemetry.py +56 -2
- {praisonaiagents-0.0.132.dist-info → praisonaiagents-0.0.133.dist-info}/METADATA +1 -1
- {praisonaiagents-0.0.132.dist-info → praisonaiagents-0.0.133.dist-info}/RECORD +5 -5
- {praisonaiagents-0.0.132.dist-info → praisonaiagents-0.0.133.dist-info}/WHEEL +0 -0
- {praisonaiagents-0.0.132.dist-info → praisonaiagents-0.0.133.dist-info}/top_level.txt +0 -0
@@ -116,8 +116,17 @@ class MinimalTelemetry:
|
|
116
116
|
|
117
117
|
self._metrics["agent_executions"] += 1
|
118
118
|
|
119
|
-
#
|
120
|
-
|
119
|
+
# Send event to PostHog
|
120
|
+
if self._posthog:
|
121
|
+
self._posthog.capture(
|
122
|
+
distinct_id=self.session_id,
|
123
|
+
event='agent_execution',
|
124
|
+
properties={
|
125
|
+
'success': success,
|
126
|
+
'session_id': self.session_id
|
127
|
+
}
|
128
|
+
)
|
129
|
+
|
121
130
|
self.logger.debug(f"Agent execution tracked: success={success}")
|
122
131
|
|
123
132
|
def track_task_completion(self, task_name: str = None, success: bool = True):
|
@@ -133,6 +142,17 @@ class MinimalTelemetry:
|
|
133
142
|
|
134
143
|
self._metrics["task_completions"] += 1
|
135
144
|
|
145
|
+
# Send event to PostHog
|
146
|
+
if self._posthog:
|
147
|
+
self._posthog.capture(
|
148
|
+
distinct_id=self.session_id,
|
149
|
+
event='task_completion',
|
150
|
+
properties={
|
151
|
+
'success': success,
|
152
|
+
'session_id': self.session_id
|
153
|
+
}
|
154
|
+
)
|
155
|
+
|
136
156
|
self.logger.debug(f"Task completion tracked: success={success}")
|
137
157
|
|
138
158
|
def track_tool_usage(self, tool_name: str, success: bool = True):
|
@@ -148,6 +168,18 @@ class MinimalTelemetry:
|
|
148
168
|
|
149
169
|
self._metrics["tool_calls"] += 1
|
150
170
|
|
171
|
+
# Send event to PostHog
|
172
|
+
if self._posthog:
|
173
|
+
self._posthog.capture(
|
174
|
+
distinct_id=self.session_id,
|
175
|
+
event='tool_usage',
|
176
|
+
properties={
|
177
|
+
'tool_name': tool_name,
|
178
|
+
'success': success,
|
179
|
+
'session_id': self.session_id
|
180
|
+
}
|
181
|
+
)
|
182
|
+
|
151
183
|
# Only track tool name, not arguments or results
|
152
184
|
self.logger.debug(f"Tool usage tracked: {tool_name}, success={success}")
|
153
185
|
|
@@ -163,6 +195,17 @@ class MinimalTelemetry:
|
|
163
195
|
|
164
196
|
self._metrics["errors"] += 1
|
165
197
|
|
198
|
+
# Send event to PostHog
|
199
|
+
if self._posthog:
|
200
|
+
self._posthog.capture(
|
201
|
+
distinct_id=self.session_id,
|
202
|
+
event='error',
|
203
|
+
properties={
|
204
|
+
'error_type': error_type or 'unknown',
|
205
|
+
'session_id': self.session_id
|
206
|
+
}
|
207
|
+
)
|
208
|
+
|
166
209
|
# Only track error type, not full error messages
|
167
210
|
self.logger.debug(f"Error tracked: type={error_type or 'unknown'}")
|
168
211
|
|
@@ -176,6 +219,17 @@ class MinimalTelemetry:
|
|
176
219
|
if not self.enabled:
|
177
220
|
return
|
178
221
|
|
222
|
+
# Send event to PostHog
|
223
|
+
if self._posthog:
|
224
|
+
self._posthog.capture(
|
225
|
+
distinct_id=self.session_id,
|
226
|
+
event='feature_usage',
|
227
|
+
properties={
|
228
|
+
'feature_name': feature_name,
|
229
|
+
'session_id': self.session_id
|
230
|
+
}
|
231
|
+
)
|
232
|
+
|
179
233
|
# Track which features are being used
|
180
234
|
self.logger.debug(f"Feature usage tracked: {feature_name}")
|
181
235
|
|
@@ -33,7 +33,7 @@ praisonaiagents/task/__init__.py,sha256=VL5hXVmyGjINb34AalxpBMl-YW9m5EDcRkMTKkSS
|
|
33
33
|
praisonaiagents/task/task.py,sha256=-EXxw3czWZdAK1WWI6Dvga5CujsItgk9RWYD_CdW47w,24075
|
34
34
|
praisonaiagents/telemetry/__init__.py,sha256=5iAOrj_N_cKMmh2ltWGYs3PfOYt_jcwUoElW8fTAIsc,3062
|
35
35
|
praisonaiagents/telemetry/integration.py,sha256=8h8TDlPFTbsBmU5rIYNOibJbwEEEWmzS1ENE9uPTvvg,8696
|
36
|
-
praisonaiagents/telemetry/telemetry.py,sha256=
|
36
|
+
praisonaiagents/telemetry/telemetry.py,sha256=w15OMQwL2rGQG7CIpwABmVFsAQKSAVmi9BYbmR3BdDQ,13459
|
37
37
|
praisonaiagents/tools/README.md,sha256=am9mlHp46sC1U9HfyXtX-E_cckxpazprl4tuVFYHP_0,4905
|
38
38
|
praisonaiagents/tools/__init__.py,sha256=9NYh9anzJZlaLtrRINdM1uD6JfNSuOzZAFMaarO6yAU,9321
|
39
39
|
praisonaiagents/tools/arxiv_tools.py,sha256=1stb31zTjLTon4jCnpZG5de9rKc9QWgC0leLegvPXWo,10528
|
@@ -57,7 +57,7 @@ praisonaiagents/tools/xml_tools.py,sha256=iYTMBEk5l3L3ryQ1fkUnNVYK-Nnua2Kx2S0dxN
|
|
57
57
|
praisonaiagents/tools/yaml_tools.py,sha256=uogAZrhXV9O7xvspAtcTfpKSQYL2nlOTvCQXN94-G9A,14215
|
58
58
|
praisonaiagents/tools/yfinance_tools.py,sha256=s2PBj_1v7oQnOobo2fDbQBACEHl61ftG4beG6Z979ZE,8529
|
59
59
|
praisonaiagents/tools/train/data/generatecot.py,sha256=H6bNh-E2hqL5MW6kX3hqZ05g9ETKN2-kudSjiuU_SD8,19403
|
60
|
-
praisonaiagents-0.0.
|
61
|
-
praisonaiagents-0.0.
|
62
|
-
praisonaiagents-0.0.
|
63
|
-
praisonaiagents-0.0.
|
60
|
+
praisonaiagents-0.0.133.dist-info/METADATA,sha256=rMgd4wWk6Eb5J05cO9MYVVDVYwxwoFum8Zj3AqJ8DmE,1699
|
61
|
+
praisonaiagents-0.0.133.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
62
|
+
praisonaiagents-0.0.133.dist-info/top_level.txt,sha256=_HsRddrJ23iDx5TTqVUVvXG2HeHBL5voshncAMDGjtA,16
|
63
|
+
praisonaiagents-0.0.133.dist-info/RECORD,,
|
File without changes
|
File without changes
|