Add Phoenix OTLP tracing and LLM span attributes

This commit is contained in:
dahyeon committed 2026-05-18 21:09:08 -07:00
1 parent f15459bb99
commit 1d0be56842
11 files changed
+244 -17

No files matched your search

+8
View File
@@ -121,6 +121,14 @@ export function getOtelExporter(): "stdout" | "none" {
return getNodeEnv() === "dev" ? "none" : "stdout";
}
export function getPhoenixOtlpEndpoint(): string | undefined {
return process.env["PHOENIX_OTLP_ENDPOINT"]?.trim() || undefined;
}
export function getPhoenixLogPrompts(): boolean {
return getBoolean("PHOENIX_LOG_PROMPTS", false);
}
export function getRequestSubject(): string {
return (
process.env["AGENT_REQUEST_SUBJECT"]?.trim() || "lolympus-agent.request"