-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(temporal): Added posthog client to temporal to enable exceptions capture #26583
base: master
Are you sure you want to change the base?
Conversation
|
||
workflow_result = await super().execute_workflow(input) | ||
|
||
ph_client.flush() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this call blocking? Should we send it to a thread with asyncio.to_thread
?
|
||
class _PostHogClientWorkflowInterceptor(WorkflowInboundInterceptor): | ||
async def execute_workflow(self, input: ExecuteWorkflowInput) -> Any: | ||
ph_client = Client(api_key="sTMFPsFhdP1Ssg", enable_exception_autocapture=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, is this api key public?
async def execute_workflow(self, input: ExecuteWorkflowInput) -> Any: | ||
ph_client = Client(api_key="sTMFPsFhdP1Ssg", enable_exception_autocapture=True) | ||
|
||
workflow_result = await super().execute_workflow(input) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we wrap this call in a try
, except
? Otherwise we won't be calling ph_client.flush()
if anything is raised.
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the |
Problem
Changes