All articles

Langfuse

6 articles on Langfuse, each a problem from production engineering work and how it was solved.

  1. Warming a Langfuse prompt cache at .NET startup for cold starts

    A last-known-good prompt cache only covers outages that start after a pod is warm. Resolve every prompt in a hosted service at startup and log a census.

  2. OpenAI JSON mode needs the word json: guard prompts from Langfuse

    Check a Langfuse prompt mentions JSON before sending it in json_object mode, in one shared helper, so an edit fails clearly instead of at the API.

  3. What to keep in code when moving LLM prompts to Langfuse

    Keep a per-request JSON schema in code, move only the editable instructions to Langfuse, and name the schema separately: OpenAI rejects slashes.

  4. Logging OpenTelemetry .NET exporter failures with an EventListener

    The OTLP exporter reports failed exports only to an EventSource, so forward those events to ILogger and probe the endpoint once at startup.

  5. Loading Langfuse prompts in .NET with labels and version pins

    Fetch Langfuse prompts through one loader that applies a label or a pinned version and validates the prompt's shape before any model call.

  6. Tracing LiteLLM proxy calls from .NET with Langfuse

    Route .NET LLM calls through one gateway, record each as a Langfuse generation over OpenTelemetry, and fail startup when tracing credentials are blank.