Conversation
- Added 'posthog>=4.0.0' to dependencies and optional 'telemetry' section in pyproject.toml. - Updated blog_agent to use llm_config for improved clarity. - Disabled memory in PraisonAIAgents instantiation for better control. - Introduced telemetry support with lazy loading and fallback functions in __init__.py. This update improves the integration of telemetry features while maintaining existing functionality.
…mance and consistency - Added environment variable to disable litellm telemetry in __init__.py, llm.py, and memory.py. - Ensured telemetry is disabled after importing litellm to prevent unnecessary data collection. This change enhances control over telemetry features while maintaining existing functionality.
…ts to version 0.0.104 - Updated PraisonAI version in Dockerfiles and Ruby formula. - Adjusted dependency versions in pyproject.toml and uv.lock for consistency. - Enhanced README to reflect the new versioning. This change ensures compatibility with the latest features and improvements while maintaining existing functionality.
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 17682666 | Triggered | Generic High Entropy Secret | 2c4af80 | src/praisonai-agents/test_posthog_detailed.py | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
|
Caution Review failedThe pull request is closed. WalkthroughThis change updates the PraisonAI and PraisonAIAgents package versions across multiple Dockerfiles, deployment scripts, documentation, and project configuration files. The minimum required version is incremented from 2.2.30 to 2.2.31 for PraisonAI and from 0.0.102 to 0.0.104 for PraisonAIAgents, with corresponding checksum and dependency updates. Changes
Sequence Diagram(s)No sequence diagram generated as the changes are version and configuration updates only. Possibly related PRs
Suggested labels
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (42)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Hello @MervinPraison, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
Summary of Changes
As gemini-code-assist, I've reviewed this pull request titled "Develop". Based on the changes, which primarily focus on the praisonai-agents and PraisonAI components, the main intent appears to be the implementation and integration of a new minimal telemetry system within praisonai-agents, along with significant dependency updates and version bumps for both libraries. The PR also includes efforts to explicitly disable litellm's built-in telemetry to avoid conflicts or unwanted data collection. Unfortunately, the pull request description was empty, so this summary is based solely on the code changes.
Highlights
- Minimal Telemetry System: A new, privacy-focused telemetry module has been added to
praisonai-agents. It tracks anonymous usage metrics like agent executions, task completions, tool usage, and errors, with an opt-out mechanism via environment variables (PRAISONAI_TELEMETRY_DISABLED,PRAISONAI_DISABLE_TELEMETRY,DO_NOT_TRACK). - Automatic Instrumentation: Telemetry is now automatically integrated with
AgentandPraisonAIAgentsclasses upon import (if enabled), wrapping key methods (chat,execute_task,start,astart,execute_tool) to track events without requiring manual calls in user code. - Dependency Updates: Key dependencies have been updated, including
praisonaiagents(to 0.0.104),litellm(to >=1.72.0),openai(to 1.84.0), andposthog(added as a dependency and updated to 4.3.2). Several other dependencies were added or removed. - Disable LiteLLM Telemetry: Code has been added in multiple places (
llm/__init__.py,llm/llm.py,memory/memory.py) to explicitly disablelitellm's built-in telemetry via environment variables and programmatic settings. - Version Bumps: The
praisonaiagentspackage version has been bumped to 0.0.104, and the mainPraisonAIpackage version has been bumped to 2.2.31. Dockerfiles and the Homebrew formula have been updated accordingly. - New Examples and Tests: Several new files have been added, including debug scripts for telemetry, examples demonstrating telemetry usage and state management (
state_based_workflow_example.py,state_management_example.py,state_with_memory_example.py), and various specific telemetry test cases.
Changelog
Click here to see the changelog
- docker/Dockerfile
- Updated praisonai version requirement to
>=2.2.31.
- Updated praisonai version requirement to
- docker/Dockerfile.chat
- Updated praisonai version requirement to
>=2.2.31.
- Updated praisonai version requirement to
- docker/Dockerfile.dev
- Updated praisonai version requirement to
>=2.2.31.
- Updated praisonai version requirement to
- docker/Dockerfile.ui
- Updated praisonai version requirement to
>=2.2.31.
- Updated praisonai version requirement to
- docker/README.md
- Updated PraisonAI version mention in Package Versions section to
>=2.2.31. - Updated PraisonAI version mention in Version Pinning example to
==2.2.31.
- Updated PraisonAI version mention in Package Versions section to
- src/praisonai-agents/TELEMETRY_SUMMARY.md
- Added new file summarizing telemetry implementation fixes and current status.
- src/praisonai-agents/debug_auto_instrument.py
- Added new debug script for testing telemetry auto-instrumentation import order.
- src/praisonai-agents/debug_telemetry.py
- Added new debug script for general telemetry instrumentation debugging.
- src/praisonai-agents/debug_telemetry_double.py
- Added new debug script to check for double-counting in telemetry metrics.
- src/praisonai-agents/praisonaiagents/init.py
- Added imports for telemetry functions and classes (
get_telemetry,enable_telemetry,disable_telemetry,MinimalTelemetry,TelemetryCollector). - Added conditional call to
auto_instrument_all()after imports if telemetry is available and enabled. - Added telemetry functions and classes to
__all__export list.
- Added imports for telemetry functions and classes (
- src/praisonai-agents/praisonaiagents/llm/init.py
- Added import for
os. - Added code to set
LITELLM_TELEMETRYenvironment variable to "False" beforelitellmimport. - Added
try...exceptblock to explicitly setlitellm.telemetry = Falseafterlitellmimport.
- Added import for
- src/praisonai-agents/praisonaiagents/llm/llm.py
- Added import for
os. - Added code to set
LITELLM_TELEMETRYenvironment variable to "False" before imports. - Added code to explicitly set
litellm.telemetry = Falsewithin theLLM.__init__method.
- Added import for
- src/praisonai-agents/praisonaiagents/memory/memory.py
- Added import for
os. - Added code to set
LITELLM_TELEMETRYenvironment variable to "False" before imports. - Added code to explicitly set
litellm.telemetry = Falsewithin thetryblock wherelitellmis imported.
- Added import for
- src/praisonai-agents/praisonaiagents/telemetry/README.md
- Added new README file detailing the telemetry module, privacy guarantees, disabling methods, usage, and implementation.
- src/praisonai-agents/praisonaiagents/telemetry/init.py
- Added module docstring.
- Imported
MinimalTelemetryandTelemetryCollector. - Defined public functions
get_telemetry,enable_telemetry,disable_telemetry. - Added
atexitregistration to callget_telemetry().flush()on program exit if telemetry is enabled.
- src/praisonai-agents/praisonaiagents/telemetry/integration.py
- Added new module containing functions for instrumenting Agent and PraisonAIAgents classes.
- Implemented
instrument_agentto wrap agent methods (chat,start,run,execute_tool) for tracking. - Implemented
instrument_workflowto wrap workflow methods (execute_task,start,astart) for tracking. - Implemented
auto_instrument_allto wrapAgent.__init__andPraisonAIAgents.__init__for automatic instrumentation.
- src/praisonai-agents/praisonaiagents/telemetry/telemetry.py
- Added the core
MinimalTelemetryclass for collecting anonymous metrics. - Implemented tracking methods (
track_agent_execution,track_task_completion,track_tool_usage,track_error,track_feature_usage). - Added PostHog integration (conditional on
posthogavailability) with a specific API key and host. - Implemented
flushmethod to send collected metrics to PostHog. - Added logic to check environment variables for disabling telemetry.
- Implemented
get_metricsto retrieve current collected data. - Added
TelemetryCollectorclass for backward compatibility. - Added global
_telemetry_instanceand helper functionsget_telemetry,disable_telemetry,enable_telemetry.
- Added the core
- src/praisonai-agents/pyproject.toml
- Updated
praisonaiagentsversion to0.0.104. - Added
posthog>=3.0.0as a core dependency. - Updated
litellmversion to>=1.72.0inmemoryandllmoptional dependencies. - Added
posthog>=3.0.0to thetelemetryoptional dependency group. - Added
praisonaiagents[telemetry]to thealloptional dependency group. - Removed dependencies:
dataclasses-json,langchain-community,monotonic,mypy-extensions,marshmallow,typing-inspect. - Added dependencies:
json-repair,langchain-neo4j,neo4j-graphrag,pypdf,types-pyyaml. - Updated
openaiversion to1.84.0. - Updated
posthogversion to4.3.2inuv.lock. - Updated
praisonaiagentsversion to0.0.104inuv.lock. - Updated various other dependency versions in
uv.lock.
- Updated
- src/praisonai-agents/test.py
- Changed
llmparameter in Agent initialization from a string tollm_config. - Changed
memoryparameter in PraisonAIAgents initialization fromTruetoFalse.
- Changed
- src/praisonai-agents/test_auto_telemetry_final.py
- Added new test script for final automatic telemetry check.
- src/praisonai-agents/test_import_order.py
- Added new test script to debug telemetry import order issues.
- src/praisonai-agents/test_litellm_telemetry.py
- Added new test script to verify
litellmtelemetry is disabled.
- Added new test script to verify
- src/praisonai-agents/test_manual_instrumentation.py
- Added new test script to verify manual telemetry instrumentation.
- src/praisonai-agents/test_posthog.py
- Added new test script to verify PostHog integration.
- src/praisonai-agents/test_posthog_detailed.py
- Added new detailed test script for PostHog integration with debug output.
- src/praisonai-agents/test_posthog_direct.py
- Added new test script to test PostHog integration directly.
- src/praisonai-agents/test_posthog_error.py
- Added new test script to test PostHog initialization error (likely related to
events_to_ignore).
- Added new test script to test PostHog initialization error (likely related to
- src/praisonai-agents/test_posthog_import.py
- Added new test script to test PostHog import and initialization.
- src/praisonai-agents/test_telemetry_automatic.py
- Added new test script to verify automatic telemetry.
- src/praisonai-agents/test_telemetry_disabled.py
- Added new test script to verify
litellmtelemetry is disabled.
- Added new test script to verify
- src/praisonai-agents/test_telemetry_integration.py
- Added new test script demonstrating telemetry integration issues and solutions.
- src/praisonai-agents/test_telemetry_simple.py
- Added new simple test script for telemetry.
- src/praisonai-agents/tests/state_based_workflow_example.py
- Added new example demonstrating state-based workflow control.
- src/praisonai-agents/tests/state_management_example.py
- Added new example demonstrating state management features.
- src/praisonai-agents/tests/state_with_memory_example.py
- Added new example demonstrating state with memory integration.
- src/praisonai-agents/tests/telemetry_example.py
- Added new example demonstrating various telemetry usages (basic, manual, advanced, errors).
- src/praisonai/praisonai.rb
- Updated Homebrew formula URL and SHA256 for version
2.2.31.
- Updated Homebrew formula URL and SHA256 for version
- src/praisonai/praisonai/deploy.py
- Updated hardcoded
praisonaiversion in Dockerfile template to2.2.31.
- Updated hardcoded
- src/praisonai/pyproject.toml
- Updated
PraisonAIversion to2.2.31. - Updated
praisonaiagentsdependency to>=0.0.104. - Updated
PraisonAIversion in[tool.poetry]section. - Updated
praisonaiagentsdependency in[tool.poetry.dependencies].
- Updated
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.
| Feature | Command | Description |
|---|---|---|
| Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
| Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
| Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
| Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
There was a problem hiding this comment.
Code Review
This pull request introduces a significant new telemetry system into the praisonai-agents package, updates various dependencies including praisonai and praisonaiagents versions, and adds numerous test and example scripts related to the new telemetry features. The telemetry implementation appears well-thought-out, covering aspects like auto-instrumentation, opt-out mechanisms, privacy considerations (e.g., anonymous IDs, disabling GeoIP for PostHog), and backward compatibility for the old TelemetryCollector.
Key changes include:
- Addition of a
telemetrysubmodule inpraisonaiagentswithMinimalTelemetryand integration logic. - Automatic instrumentation of
AgentandPraisonAIAgentsclasses. - Use of
atexitto ensure telemetry data is flushed on program exit. - Integration with PostHog for telemetry data collection.
- Disabling of
litellm's own telemetry. - Version bumps for
praisonaitov2.2.31andpraisonaiagentstov0.0.104.
The changes are generally well-implemented. However, there are a few areas, particularly around exception handling in the telemetry module, that could be refined for better robustness and debuggability.
Please consider updating the pull request title and description to be more informative about the changes included. A title like "feat: Implement Telemetry System for PraisonAI Agents and Update Dependencies" would be more descriptive than "Develop".
Summary of Findings
- Broad Exception Handling in Telemetry Initialization: In
src/praisonai-agents/praisonaiagents/__init__.py(auto-instrumentation) andsrc/praisonai-agents/praisonaiagents/telemetry/telemetry.py(PostHog client setup and flush), generalexcept Exception:or bareexcept:clauses are used. While intended for silent failure of the optional telemetry feature, this can hide underlying issues. It's recommended to catch more specific exceptions or at least log the caught exception at a debug level to aid in troubleshooting. - Dependency Updates: The PR includes updates to several key dependencies, including
litellm(v1.50.0 to v1.72.0) andposthog(v3.7.5 to v4.3.2). These are significant version jumps and should be thoroughly tested to ensure no regressions or unexpected behavior are introduced. - New Telemetry System: A comprehensive telemetry system has been added to
praisonaiagents. This is a major new feature that includes automatic instrumentation, opt-out mechanisms, and PostHog integration. The implementation is largely robust, with the aforementioned points on exception handling being areas for potential improvement. - Missing Newlines at End of Files: Several new script files (
.py) and Markdown files (.md) are missing a newline character at the end of the file. While this is often a minor stylistic issue, many linters and POSIX standards prefer files to end with a newline. This was found in:TELEMETRY_SUMMARY.md,debug_auto_instrument.py,debug_telemetry.py,debug_telemetry_double.py,telemetry/README.md,telemetry/__init__.py,telemetry/integration.py,telemetry/telemetry.py,telemetry_analysis.md,telemetry_example.py,telemetry_minimal.py,test_auto_telemetry_final.py,test_import_order.py,test_litellm_telemetry.py,test_manual_instrumentation.py,test_posthog.py,test_posthog_detailed.py,test_posthog_direct.py,test_posthog_error.py,test_posthog_import.py,test_telemetry_automatic.py,test_telemetry_disabled.py,test_telemetry_integration.py,test_telemetry_simple.py,tests/state_based_workflow_example.py,tests/state_management_example.py,tests/state_with_memory_example.py,tests/telemetry_example.py. (Note: Not commented inline due to review settings for low severity issues). - Unused Import: In
src/praisonai-agents/praisonaiagents/telemetry/integration.py,import timeis present buttimeis not used within the file. (Note: Not commented inline due to review settings for low severity issues).
Merge Readiness
This pull request introduces valuable telemetry features and necessary version updates. However, due to the medium-severity concerns regarding broad exception handling in the new telemetry module, I recommend addressing these points to improve the robustness and maintainability of the code. Once these suggestions are considered, the PR should be in a much better state for merging. As an AI, I am not authorized to approve pull requests; please ensure further review and approval from team members before merging.
| except Exception: | ||
| # Silently fail if there are any issues | ||
| pass |
There was a problem hiding this comment.
Is it possible to catch more specific exceptions here instead of a general Exception? While the comment indicates that silent failure is intentional for auto-instrumentation, catching specific exceptions (e.g., ImportError, AttributeError, or custom exceptions from the telemetry module) could provide more targeted resilience. If a general catch is necessary, consider logging the exception at a DEBUG level. This could help diagnose issues during development or if telemetry setup becomes problematic in certain environments, without crashing the main application.
| except: | ||
| self._posthog = None |
There was a problem hiding this comment.
Could this except: block be more specific, for example, except Exception as e:? Catching a bare except: can mask unexpected errors, including system-exiting exceptions like SystemExit or KeyboardInterrupt. If the goal is to catch any error during PostHog initialization and proceed without it, explicitly catching Exception as e and perhaps logging e at a debug level would be safer and more informative for debugging potential issues with PostHog setup.
| except: | ||
| pass |
There was a problem hiding this comment.
Similar to the PostHog initialization, could this except: block be more specific, like except Exception as e:? This would prevent catching system-exiting exceptions and allow for logging the specific error if PostHog data submission fails. Logging the error (e.g., at a debug level) could be valuable for diagnosing intermittent network issues or problems with the PostHog service, even if the application itself continues to run.
PR Code Suggestions ✨No code suggestions found for the PR. |
There was a problem hiding this comment.
Bug: Double Instrumentation Causes Recursive Calls
The auto_instrument_all function monkey-patches Agent.__init__ and PraisonAIAgents.__init__ without checking if they have already been instrumented. Calling this function multiple times results in nested wrapping of the __init__ methods, which can lead to recursive calls, potential stack overflow, and duplicate telemetry tracking for the same events. A check should be added to prevent re-wrapping, similar to the checks in instrument_agent and instrument_workflow.
src/praisonai-agents/praisonaiagents/telemetry/integration.py#L199-L238
PraisonAI/src/praisonai-agents/praisonaiagents/telemetry/integration.py
Lines 199 to 238 in 79ab958
BugBot free trial expires on June 11, 2025
You have used $0.00 of your $50.00 spend limit so far. Manage your spend limit in the Cursor dashboard.
Was this report helpful? Give feedback by reacting with 👍 or 👎
PR Type
Enhancement, Bug fix, Documentation, Tests
Description
Introduces a new, privacy-focused, opt-out telemetry system with minimal anonymous metrics collection and PostHog integration.
Adds auto-instrumentation for Agent and PraisonAIAgents classes, ensuring telemetry is enabled by default and can be disabled via environment variables or API.
Disables litellm telemetry globally to prevent unwanted data collection.
Updates dependencies: adds
posthog, bumpslitellmand PraisonAI versions, and introduces a telemetry optional dependency group.Provides extensive documentation, including a telemetry module README, technical analysis of telemetry integration issues, and a summary of telemetry implementation and usage.
Adds comprehensive test and debug scripts to verify telemetry instrumentation, PostHog integration, disabling mechanisms, and import order.
Updates Dockerfiles and Homebrew formula to use PraisonAI version 2.2.31.
Changes walkthrough 📝
6 files
llm.py
Disable litellm telemetry in LLM class and initializationsrc/praisonai-agents/praisonaiagents/llm/llm.py
LITELLM_TELEMETRYto "False" before any imports.litellm.telemetry = Falseafter importing litellm inthe LLM class constructor.
__init__.py
Globally disable litellm telemetry in LLM modulesrc/praisonai-agents/praisonaiagents/llm/init.py
LITELLM_TELEMETRYto "False" before anyimports to disable litellm telemetry globally.
litellm.telemetry = Falsetoensure telemetry is disabled.
memory.py
Disable litellm telemetry in memory modulesrc/praisonai-agents/praisonaiagents/memory/memory.py
LITELLM_TELEMETRYto "False" before anyimports to disable litellm telemetry.
litellm.telemetry = False.Dockerfile.dev
Update PraisonAI version to 2.2.31 in dev Dockerfiledocker/Dockerfile.dev
2.2.31 in the development Dockerfile.
Dockerfile.ui
Update PraisonAI version to 2.2.31 in UI Dockerfiledocker/Dockerfile.ui
Dockerfile.
Dockerfile
Update PraisonAI version to 2.2.31 in main Dockerfiledocker/Dockerfile
Dockerfile.
4 files
__init__.py
Integrate and auto-instrument telemetry in main package initsrc/praisonai-agents/praisonaiagents/init.py
(
get_telemetry,enable_telemetry,disable_telemetry,MinimalTelemetry,TelemetryCollector).telemetry if available and enabled.
__all__to include telemetry-related exports.__init__.py
Add minimal telemetry module with atexit flush and APIsrc/praisonai-agents/praisonaiagents/telemetry/init.py
telemetry.
telemetry is enabled.
telemetry.py
Implement minimal anonymous telemetry collector with PostHogsrc/praisonai-agents/praisonaiagents/telemetry/telemetry.py
anonymous metrics.
usage, errors, and feature usage.
TelemetryCollectorclass.integration.py
Add integration module for auto-instrumenting telemetrysrc/praisonai-agents/praisonaiagents/telemetry/integration.py
classes for telemetry.
instances.
4 files
README.md
Add README documentation for telemetry modulesrc/praisonai-agents/praisonaiagents/telemetry/README.md
guarantees, usage, disabling options, and implementation details.
telemetry_analysis.md
Add technical analysis of telemetry integration issuessrc/praisonai-agents/telemetry_analysis.md
were not being sent and recommendations for fixing integration and
flush issues.
TELEMETRY_SUMMARY.md
Add telemetry implementation summary and usage documentationsrc/praisonai-agents/TELEMETRY_SUMMARY.md
fixes and features.
instructions to disable telemetry.
README.md
Bump PraisonAI version to 2.2.31 in Docker documentationdocker/README.md
documentation and Docker instructions.
5 files
pyproject.toml
Update dependencies and add telemetry extra in pyproject.tomlsrc/praisonai-agents/pyproject.toml
posthogas a dependency for telemetry.litellmminimum version to 1.72.0 for memory and llm extras.[project.optional-dependencies.telemetry].allextra.pyproject.toml
Bump PraisonAI and agent dependency versionssrc/praisonai/pyproject.toml
deploy.py
Update Dockerfile to use latest PraisonAI versionsrc/praisonai/praisonai/deploy.py
praisonai.rb
Update Homebrew formula for new PraisonAI releasesrc/praisonai/praisonai.rb
corresponding SHA256.
Dockerfile.chat
Update Dockerfile to use latest PraisonAI versiondocker/Dockerfile.chat
17 files
debug_telemetry.py
Add debug script for telemetry instrumentation inspectionsrc/praisonai-agents/debug_telemetry.py
in agents and workflows.
debug_telemetry_double.py
Add debug script to detect telemetry double-countingsrc/praisonai-agents/debug_telemetry_double.py
debug_auto_instrument.py
Add debug script for auto-instrumentation of telemetrysrc/praisonai-agents/debug_auto_instrument.py
PraisonAIAgents classes for telemetry.
test_manual_instrumentation.py
Add test for manual telemetry instrumentationsrc/praisonai-agents/test_manual_instrumentation.py
metric collection.
test_telemetry_automatic.py
Add test for automatic telemetry instrumentationsrc/praisonai-agents/test_telemetry_automatic.py
manual setup.
test_telemetry_simple.py
Add simple test for telemetry metrics and PostHogsrc/praisonai-agents/test_telemetry_simple.py
client availability.
test_posthog.py
Add test for PostHog integration and event trackingsrc/praisonai-agents/test_posthog.py
flushing.
test_posthog_direct.py
Add test for direct PostHog integration and flushsrc/praisonai-agents/test_posthog_direct.py
test_posthog_detailed.py
Add detailed debug test for PostHog integrationsrc/praisonai-agents/test_posthog_detailed.py
output and event tracking.
test_posthog_error.py
Add test for PostHog initialization error handlingsrc/praisonai-agents/test_posthog_error.py
telemetry parameters.
test_posthog_import.py
Add test for PostHog import and telemetry integrationsrc/praisonai-agents/test_posthog_import.py
module integration.
test_telemetry_integration.py
Add test to analyze missing telemetry integrationsrc/praisonai-agents/test_telemetry_integration.py
and highlights missing integration points.
test_auto_telemetry_final.py
Add final test for automatic telemetry instrumentationsrc/praisonai-agents/test_auto_telemetry_final.py
metric collection.
telemetry_minimal.py
Add minimal example for telemetry integrationsrc/praisonai-agents/telemetry_minimal.py
collection.
test_litellm_telemetry.py
Add test for disabling litellm telemetrysrc/praisonai-agents/test_litellm_telemetry.py
completion.
test_telemetry_disabled.py
Add test to verify litellm telemetry is disabledsrc/praisonai-agents/test_telemetry_disabled.py
the environment and after LLM instantiation.
test_import_order.py
Add test to debug telemetry import ordersrc/praisonai-agents/test_import_order.py
6 files
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores