Python: get_trace & get_observation
Hey everyone! Is there any plan to add get_trace and get_observation to the python SDK?
5 Replies
Hi Sara, get_observation is available as it is commonly used when working with datasets to evaluate outputs. I just created an issue to add get_trace to the sdks. Currently it is only available via the api
You can follow it here: https://github.com/langfuse/langfuse/issues/634
GitHub
feat(SDK): get_trace · Issue #634 · langfuse/langfuse
Describe the feature you'd like to request Add function to get a single trace via the sdks Describe the solution you'd like to see API and openapi spec already exists. Just need to add func...
Thansk Marc! Yeah I noticed that in your tests you have a wrapper for the API and that's how you're calling get_trace. Looking forward to this change!
Just added a get_trace method in Python SDK v1.12.0
https://github.com/langfuse/langfuse-python/releases/tag/v1.12.0
GitHub
Release v1.12.0 · langfuse/langfuse-python
What's Changed
feat: add get_trace(id) by @marcklingen in #212
Full Changelog: v1.11.0...v1.12.0
Thanks Marc!