Fetch observations filtered by trace name in SDK #8026
-
Describe the feature or potential improvement
Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
@nikkinxaver Within the UI we have some additional magic to make filtering by trace properties within the observation view more efficient which are not applicable on the SDK. If you query the traces api (https://api.reference.langfuse.com/#tag/trace/get/api/public/traces) each trace will have a list of observation IDs that are attached to it. You could use this list to query the relevant observations in a second step. I believe rebuilding your desired behaviour with the given APIs would be better than modifying the APIs. Let me know in case you have further questions on how to approach this. |
Beta Was this translation helpful? Give feedback.
@nikkinxaver Within the UI we have some additional magic to make filtering by trace properties within the observation view more efficient which are not applicable on the SDK.
If you query the traces api (https://api.reference.langfuse.com/#tag/trace/get/api/public/traces) each trace will have a list of observation IDs that are attached to it. You could use this list to query the relevant observations in a second step. I believe rebuilding your desired behaviour with the given APIs would be better than modifying the APIs.
Let me know in case you have further questions on how to approach this.