Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

A Six-Stage Guide to Tracing LLM Apps with Langfuse

AI summary

A technical article organizes LLM observability into six stages: selecting what to observe, instrumenting calls, defining span data, exporting traces, mapping semantics, and storing observations. It explains OpenTelemetry and Langfuse integration, including context propagation, head and tail sampling, redaction, version metadata, and troubleshooting missing or duplicated spans. The author recommends observing business-significant or costly-to-repeat steps while collecting security events in full, but notes that the cited storage estimates are experiential assumptions rather than measurements.

一根 span 从代码到页面,中间有六站:记什么、怎么采、长成什么样、怎么发、怎么映射、怎么存。每一站都能让数据丢失或失真——页面空白可能卡在第一站,成本算错可能错在第五站。

下面按六站走一遍。传播、采样、脱敏、语义约定这几件事不在某一站里,它们各卡在两站之间,走到哪说到哪。

图1-六站总览.png

一、观测对象:哪些步骤值得记

判据只有一条:有业务意义、有副作用、重做代价大。

图2-观测对象判据.png

#Langfuse#OpenTelemetry#ClickHouse

Original · 7 min readRead the original
Group chat

No comments yet. Start the conversation.