added trace name
This commit is contained in:
parent
4e4fae329a
commit
7c9f649f01
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ def get_langfuse_callback(trace_id):
|
||||||
if langfuse := LangfuseInstance.get():
|
if langfuse := LangfuseInstance.get():
|
||||||
logger.debug("Langfuse credentials found")
|
logger.debug("Langfuse credentials found")
|
||||||
try:
|
try:
|
||||||
trace = langfuse.trace(CreateTrace(id=trace_id))
|
trace = langfuse.trace(CreateTrace(name="langflow-"+trace_id, id=trace_id))
|
||||||
return trace.getNewHandler()
|
return trace.getNewHandler()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logger.error(f"Error initializing langfuse callback: {exc}")
|
logger.error(f"Error initializing langfuse callback: {exc}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue