Replies: 1 comment
-
|
Thanks for adding this @marcjaner! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature or potential improvement
Currently, the Langfuse Java SDK and Spring AI integration only support a single Langfuse project per application instance, configured via global API keys (
LANGFUSE_PUBLIC_KEY/LANGFUSE_SECRET_KEY).In applications with multiple AI agents or completion types, there's no way to dynamically route traces to different Langfuse projects based on the agent or completion context.
Use Case
I'm building a Spring Boot application with Spring AI that has multiple AI agents, each serving different purposes (e.g., customer support agent, analytics agent, content generation agent). For organizational and access control reasons, I want traces from each agent type to go to separate Langfuse projects.
Current workaround limitations:
Proposed Solution
Allow dynamic project selection at the observation/span level. Possible approaches:
Option 1: Context-based API Keys
Option 2: Observation Attributes
Option 3: Configuration via Spring AI
Additional information
Environment
Beta Was this translation helpful? Give feedback.
All reactions