Sara
Sara10mo ago

Python: get_trace & get_observation

Hey everyone! Is there any plan to add get_trace and get_observation to the python SDK?
5 Replies
Marc
Marc10mo ago
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
Marc
Marc10mo ago
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...
Sara
Sara10mo ago
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!
Marc
Marc10mo ago
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
Sara
Sara10mo ago
Thanks Marc!