Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error logging in posthog #6346

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

neubig
Copy link
Contributor

@neubig neubig commented Jan 18, 2025

[WIP: I need to confirm that this works]

End-user friendly description of the problem this fixes or functionality that this introduces

  • Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below

Add comprehensive error logging to PostHog


Give a summary of what the PR does, explaining any non-trivial design decisions

This commit adds centralized error logging to PostHog for all errors displayed in the frontend, whether through toasts or in the chat window. Changes include:

  • New error-handler.ts utility for centralized error handling and logging
  • Comprehensive test coverage for error logging functionality
  • Integration with existing error display mechanisms
  • Consistent metadata handling for better error tracking

Link of any specific issues this addresses

Resolves #6344


To run this PR locally, use the following command:

docker run -it --rm   -p 3000:3000   -v /var/run/docker.sock:/var/run/docker.sock   --add-host host.docker.internal:host-gateway   -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:b8a0873-nikolaik   --name openhands-app-b8a0873   docker.all-hands.dev/all-hands-ai/openhands:b8a0873

This commit adds centralized error logging to PostHog for all errors displayed in the frontend, whether through toasts or in the chat window. Changes include:

- New error-handler.ts utility for centralized error handling and logging
- Comprehensive test coverage for error logging functionality
- Integration with existing error display mechanisms
- Consistent metadata handling for better error tracking

Resolves #6344
This commit adds centralized error logging to PostHog for all errors displayed in the frontend, whether through toasts or in the chat window. Changes include:

- New error-handler.ts utility for centralized error handling and logging
- Comprehensive test coverage for error logging functionality
- Integration with existing error display mechanisms
- Consistent metadata handling for better error tracking

Resolves #6344
@neubig neubig changed the title Feature/error logging 6344 Better error logging in posthog Jan 18, 2025
@neubig neubig marked this pull request as draft January 18, 2025 19:17
@neubig neubig self-assigned this Jan 18, 2025
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.

Add error monitoring in posthog logs
2 participants