https://www.boundaryml.com logo
How do I add tracing in Posthog
# help
i
I am trying to add LLM traces with Posthog when I make calls throgh BAML Client. I can't find any docs on that other than Boundary Studio's tracing app. Can someone please help?
a
do you know what format posthog takes the logs in?
you can use a Collector (i think you already know about it), but you'd need to publish the logs manually using posthog's format: https://docs.boundaryml.com/guide/baml-advanced/collector-track-tokens
i
Yes just came across Collector. Posthog is mostly JSON based API calls using their own library so pretty simple. I think should be done now, will update you once done.