Make a Langfuse trace worth opening: question, answer, session, no probe noise

This commit is contained in:
2026-08-21 14:45:32 +07:00
parent 53582b6030
commit f3eaab0948
16 changed files with 733 additions and 5 deletions
+8
View File
@@ -65,6 +65,14 @@ class Settings(BaseSettings):
otel_service_name: str = "ai-service"
otel_exporter_otlp_endpoint: str = "http://localhost:4318/v1/traces"
otel_sample_ratio: float = Field(default=1.0, ge=0.0, le=1.0)
# Langfuse ingests the SAME spans over OTLP as a second exporter, so it
# adds an LLM-shaped view (per-trace answers, eval scores) without
# replacing Tempo or touching any instrumentation. All three must be set
# for the exporter to be added; keys are secrets and live only in .env /
# the cluster Secret, never in values.yaml.
langfuse_base_url: str = ""
langfuse_public_key: str = ""
langfuse_secret_key: str = ""
entities_path: Path = _default_entities_path()
# F-08: a per-turn budget across RagAgent's sequential Bedrock calls
# (understand, generate, one entailment check on the live agent path).