Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Merge branch 'BerriAI:main' into LangfuseUsageDetails

Fabrício Ceschin8f785e9a1fe2
diff --cc litellm/integrations/langfuse/langfuse.py
index ccc072149cc,02862c52c5d..f4d1a1f79c4
--- a/litellm/integrations/langfuse/langfuse.py
+++ b/litellm/integrations/langfuse/langfuse.py
@@@ -636,9 -634,14 +634,15 @@@ class LangFuseLogger
# Log provider specific information as a span
log_provider_specific_information_as_span(trace, clean_metadata)
+ # Log guardrail information as a span
+ self._log_guardrail_information_as_span(
+ trace=trace,
+ standard_logging_object=standard_logging_object,
+ )
+
generation_id = None
usage = None
+ usage_details = None
if response_obj is not None:
if (
hasattr(response_obj, "id")