Skip to content

Conversation

@nirga
Copy link
Member

@nirga nirga commented Nov 25, 2025

  • I have added tests that cover my changes.
  • If adding a new instrumentation or changing an existing one, I've added screenshots from some observability platform showing the change.
  • PR name follows conventional commits format: feat(instrumentation): ... or fix(instrumentation): ....
  • (If applicable) I have updated the documentation accordingly.

Important

Remove posthog dependency and Telemetry class, affecting exception logging and event capture across multiple files.

  • Dependencies:
    • Remove posthog from pyproject.toml.
  • Telemetry Removal:
    • Remove Telemetry class from telemetry.py.
    • Remove Telemetry usage in __init__.py, base.py, client.py, and tracing.py.
  • Exception Handling:
    • Remove Telemetry().log_exception(e) calls in base.py and tracing.py.
  • Event Capture:
    • Remove Telemetry().capture() calls in client.py and tracing.py.

This description was created by Ellipsis for 2d5f8fd. You can customize this summary. It will automatically update as commits are pushed.

@coderabbitai
Copy link

coderabbitai bot commented Nov 25, 2025

Warning

Rate limit exceeded

@nirga has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 6 minutes and 38 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between ba1aa4c and 2d5f8fd.

⛔ Files ignored due to path filters (1)
  • packages/traceloop-sdk/poetry.lock is excluded by !**/*.lock
📒 Files selected for processing (6)
  • packages/traceloop-sdk/pyproject.toml (0 hunks)
  • packages/traceloop-sdk/traceloop/sdk/__init__.py (0 hunks)
  • packages/traceloop-sdk/traceloop/sdk/decorators/base.py (2 hunks)
  • packages/traceloop-sdk/traceloop/sdk/prompts/client.py (0 hunks)
  • packages/traceloop-sdk/traceloop/sdk/telemetry.py (0 hunks)
  • packages/traceloop-sdk/traceloop/sdk/tracing/tracing.py (7 hunks)
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch remove-posthog

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed everything up to 87b6e1e in 2 minutes and 0 seconds. Click for details.
  • Reviewed 839 lines of code in 6 files
  • Skipped 1 files when reviewing.
  • Skipped posting 6 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. packages/traceloop-sdk/pyproject.toml:70
  • Draft comment:
    Removed the posthog dependency. Confirm that no remaining telemetry or analytics features rely on it.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
2. packages/traceloop-sdk/traceloop/sdk/__init__.py:16
  • Draft comment:
    Telemetry import and its initialization code have been removed. Ensure that deprecation of telemetry features is acceptable.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% The comment is asking the PR author to ensure that the deprecation of telemetry features is acceptable. This falls under the category of asking the author to confirm their intention or ensure behavior, which is against the rules.
3. packages/traceloop-sdk/traceloop/sdk/decorators/base.py:184
  • Draft comment:
    Swallowing TypeError exceptions without logging may hide issues. Consider using standard logging to capture these errors.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50% The PR author explicitly removed the telemetry logging and the import. This appears to be an intentional decision to simplify error handling by silently ignoring TypeErrors (which likely occur when trying to JSON serialize non-serializable objects). The comment is suggesting to add logging back, but this goes against the clear intent of the change. The comment doesn't provide strong evidence that this is wrong - it's just a general suggestion about error handling. Without knowing the broader context of why this change was made, I should assume the author had a good reason. The comment is not pointing out a bug, just questioning a design decision that was clearly intentional. Perhaps the author removed logging because it was too noisy or because the Telemetry class had issues. Maybe there's a valid reason to log these errors that I'm not seeing. However, the comment doesn't provide specific evidence of a problem. While there might be valid reasons to log these errors, the comment doesn't provide strong evidence that the change is wrong. It's a general suggestion that contradicts an intentional change. Per the rules, I should not keep comments that question design decisions without clear evidence of a problem. This comment should be deleted because it contradicts an intentional change made in the PR (removing telemetry logging) without providing strong evidence that the change is incorrect. It's a general suggestion about error handling rather than identifying a specific bug.
4. packages/traceloop-sdk/traceloop/sdk/prompts/client.py:54
  • Draft comment:
    Removed the telemetry capture call in render_prompt. Verify that prompt rendering does not require telemetry events.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% The comment is asking the PR author to verify that the removal of telemetry capture is intentional and does not affect the functionality. This is against the rules as it asks for verification of intention.
5. packages/traceloop-sdk/traceloop/sdk/telemetry.py:1
  • Draft comment:
    The entire telemetry module has been removed. Ensure no residual references exist and update documentation accordingly.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
6. packages/traceloop-sdk/traceloop/sdk/tracing/tracing.py:565
  • Draft comment:
    Telemetry capture and exception logging calls have been removed from instrumentor initializations (e.g., OpenAI, Anthropic, etc.). Ensure standard logging now sufficiently reports errors.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.

Workflow ID: wflow_ahKmHWspLuAZM4v5

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link
Member

@doronkopit5 doronkopit5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed 2d5f8fd in 2 minutes and 2 seconds. Click for details.
  • Reviewed 837 lines of code in 6 files
  • Skipped 1 files when reviewing.
  • Skipped posting 6 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. packages/traceloop-sdk/pyproject.toml:70
  • Draft comment:
    Removed "posthog" dependency. Ensure related documentation and tests are updated.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
2. packages/traceloop-sdk/traceloop/sdk/__init__.py:15
  • Draft comment:
    Telemetry integration removed (import and related block). Confirm that disabling telemetry is intentional and update docs if needed.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
3. packages/traceloop-sdk/traceloop/sdk/decorators/base.py:184
  • Draft comment:
    Swallowing TypeError exceptions silently after telemetry removal. Consider adding debug-level logging to aid troubleshooting if JSON serialization fails.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 20% vs. threshold = 50% The comment is suggesting adding debug-level logging after the PR author intentionally removed telemetry logging. This appears to be a code quality suggestion rather than pointing out a clear bug or issue. The PR author deliberately removed the Telemetry import and replaced exception logging with silent pass statements. The comment is essentially second-guessing this design decision and suggesting an alternative approach. According to the rules, I should not keep comments that are merely suggestions without strong evidence of incorrectness. The comment doesn't point to a bug or clear problem - it's a "consider doing X" suggestion about logging strategy. The comment might be valid if silently swallowing TypeErrors could make debugging significantly harder in production. The author may have intentionally removed telemetry to reduce dependencies or noise, but losing all visibility into JSON serialization failures could be problematic. While debugging visibility is important, the PR author made a deliberate choice to remove telemetry logging. The comment is a "consider" suggestion rather than identifying a clear defect. Without strong evidence that this will cause problems, this falls into the category of speculative code quality suggestions that should be removed per the rules. This comment should be deleted. It's a speculative suggestion about adding logging rather than identifying a clear bug or required change. The PR author intentionally removed telemetry, and the comment is second-guessing that design decision without strong evidence of a problem.
4. packages/traceloop-sdk/traceloop/sdk/prompts/client.py:54
  • Draft comment:
    Removed telemetry capture in render_prompt. Verify that telemetry tracking for prompt rendering is no longer required.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% The comment is asking the PR author to verify if telemetry tracking is no longer required, which violates the rule against asking for confirmation of intention or verification of behavior. It does not provide a specific code suggestion or ask for a test to be written.
5. packages/traceloop-sdk/traceloop/sdk/telemetry.py:1
  • Draft comment:
    Entire Telemetry module has been removed. Ensure that no lingering Telemetry calls remain in the codebase.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
6. packages/traceloop-sdk/traceloop/sdk/tracing/tracing.py:565
  • Draft comment:
    Telemetry logging (capture and log_exception) has been removed from instrumentor initializations (e.g., in init_openai_instrumentor). Confirm that error reporting via logging.error is sufficient.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.

Workflow ID: wflow_UFnNEOBbE1o3DIBj

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@nirga nirga merged commit 2d5fecc into main Nov 25, 2025
12 checks passed
@nirga nirga deleted the remove-posthog branch November 25, 2025 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants