Skip to content

Commit

Permalink
fix default trace handler (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
moria97 authored Sep 10, 2024
1 parent 2e9c796 commit 365f8a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pai_rag/core/rag_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def init_trace(trace_config):
service_owner_sub_id="",
)
logger.info(f"Pai-LLM-Trace enabled with endpoint: '{trace_config.endpoint}'.")
else:
elif trace_config is not None and trace_config.type == "arize_phoenix":
set_global_handler("arize_phoenix")
logger.info("Arize trace enabled.")
else:
logger.warning("No trace used.")

0 comments on commit 365f8a6

Please sign in to comment.