fix(proxy/utils.py): fix add langfuse trace id to alert

Fixing the import after refactor
This commit is contained in:
Krrish Dholakia 2024-06-21 14:55:09 -07:00
parent 5912decd19
commit 941574a921
3 changed files with 46 additions and 35 deletions

View file

@ -462,9 +462,11 @@ class ProxyLogging:
extra_kwargs = {}
alerting_metadata = {}
if request_data is not None:
_url = self.slack_alerting_instance._add_langfuse_trace_id_to_alert(
request_data=request_data
)
if _url is not None:
extra_kwargs["🪢 Langfuse Trace"] = _url
formatted_message += "\n\n🪢 Langfuse Trace: {}".format(_url)