OpenAdaptAI / OpenAdapt

AI-First Process Automation with Large ([Language (LLMs) / Action (LAMs) / Multimodal (LMMs)] / Visual Language (VLMs)) Models
https://www.OpenAdapt.AI
MIT License
735 stars 95 forks source link

Posthog event logging updates #772

Closed KIRA009 closed 1 week ago

KIRA009 commented 1 week ago

What kind of change does this PR introduce? This PR adds a version number of the openadapt build to posthog events, so its easier to debug the source of erroneous events. It also adds a fix so that submenus in the tray, that have the name of the recording are not reported, rather the underlying action is reported

Summary Address #768

Checklist

How can your code be run and tested? In utils.py, comment out the lines that disable posthog in the get_posthog_instance function. I have added a property to psothog events that will differentiate dev events from events coming from the app, so this can be used when we need to test without polluting the events charts. Play around with the tray (also the submenus) and check that the events are logged correctly

abrichr commented 1 week ago

@KIRA009 can you please fix merge conflicts? I believe we should pass in recording to get_perf_stats