In this example:
from langfuse.openai import openai # OpenAI integration
Why do I need to import openai from langfuse? from langfuse.openai import openai # OpenAI integration
Why do I need to import openai from langfuse?Langfuse is not in the critical path, this just helps with instrumentation.
You can use the Langfuse Python SDK / Decorator to track any LLM (with some instrumentation code) or use one of the framework integrations.
Here is a fully-featured example using the Amazon Bedrock SDK: https://langfuse.com/docs/integrations/amazon-bedrock
We are looking into adding an Otel Collector as OTel-semantics are maturing around LLMs. For now many features that are key to LLMOPs are difficult to make work with OTel instrumentation as the space is moving quickly. Main thread on this is here: https://github.com/orgs/langfuse/discussions/2509