Add Langfuse-based LLM observability (#86)

* Add Langfuse-based LLM observability

* Document Langfuse configuration

* Don't hardcode model in use
This commit is contained in:
Juan José Mata
2025-08-06 23:23:07 +02:00
committed by GitHub
parent 099425d240
commit f6dde1a098
7 changed files with 128 additions and 14 deletions
+9
View File
@@ -0,0 +1,9 @@
require "langfuse"
if ENV["LANGFUSE_PUBLIC_KEY"].present? && ENV["LANGFUSE_SECRET_KEY"].present?
Langfuse.configure do |config|
config.public_key = ENV["LANGFUSE_PUBLIC_KEY"]
config.secret_key = ENV["LANGFUSE_SECRET_KEY"]
config.host = ENV["LANGFUSE_HOST"] if ENV["LANGFUSE_HOST"].present?
end
end