Zum Inhalt springen
Skillpedia
Agenten48k · #5025

langfuse

Was er macht

Langfuse ist ein Tool, mit dem du überwachen kannst, wie deine KI-Anwendungen laufen. Du siehst die Schritte, die die KI geht, kannst die Anweisungen verwalten, die du ihr gibst, und prüfen, ob sie richtig antwortet.

Wann du ihn nutzt

  • ✓Wenn du sehen willst, was in einer KI-Anwendung passiert.
  • ✓Um Fehler in einer KI-Anwendung zu finden und zu beheben.
  • ✓Um sicherzustellen, dass KI-Antworten gleichbleibend und von guter Qualität sind.

Link zum Skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/langfuse/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/langfuse/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Wie richte ich Langfuse ein, um meine Python-Anwendung zu überwachen?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Langfuse funktioniert, indem du deiner Anwendung ein kleines Stück Code hinzufügst, das wichtige Informationen aufzeichnet. Diese Informationen werden an die Langfuse-Plattform geschickt, wo du sie ansehen und auswerten kannst.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Langfuse

Instrument an existing LLM application with traceable, minimized observations and versioned evaluation inputs. Modified by AAS maintainers on 2026-09-05 to replace mixed legacy SDK examples with a current, bounded setup procedure; existing source attribution is preserved.

When to Use

Use when an application already needs Langfuse tracing, prompt management or evaluation, or when debugging missing/duplicated spans. Do not add an observability service merely because an LLM is present; start from the incident or product decision the data must support.

Inputs and prerequisites

  • Installed Python or JS SDK version, framework and runtime lifecycle.
  • The explicitly authorized Langfuse project/endpoint, credentials supplied through the project’s secret mechanism, and data retention/access policy.
  • An allowlist of observable fields and a synthetic request that contains no private content.
  • A defined verifier: expected parent/child spans, status, timing, model/prompt version and flush behavior.

Procedure

  1. Inspect the dependency lock and existing instrumentation. Do not mix old langfuse.trace(), langfuse.decorators or langfuse.callback examples with the current SDK without checking its migration guide.
  2. Choose one integration layer: direct SDK spans, a framework callback or OpenTelemetry instrumentation. Avoid tracing the same call twice through overlapping wrappers.
  3. Configure the approved endpoint and credentials outside source. Verify export permission before running an example: instrumentation can send inputs, outputs, metadata and exceptions externally.
  4. Start with explicit observations containing only synthetic or allowlisted values. Add correlation IDs only when their scope and privacy treatment are defined.
  5. Execute one success and one failure request; inspect the actual exported span tree and verify no sensitive fields escaped through nested metadata or third-party instrumentation.
  6. Flush in short-lived processes and test shutdown/timeouts. A returned SDK call does not by itself prove ingestion.
  7. Add prompt/evaluation metadata only after the trace boundary works. Pin the prompt version or record the exact resolved version; a mutable production label is not an immutable experiment input.

Minimal Python observation

The current Python SDK overview documents get_client() and context-managed observations. Use the API matching the installed SDK. After configuration and export authorization, this synthetic example creates one span and no LLM call:

from langfuse import get_client

client = get_client()
with client.start_as_current_observation(as_type="span", name="synthetic-health-check") as span:
    span.update(output={"status": "ok"})
client.flush()

Expected observation: one completed synthetic-health-check span in the intended project with the fixed status value. This skill does not claim that a live ingestion check has run. A wrong endpoint, missing credentials or exporter failure must be reported as a failed/unverified check.

Privacy and masking

Do not treat truncation as redaction. Prefer omitting raw prompts, user messages and tool payloads; inspect all configured exporters. Current Python SDKs provide mask_otel_spans for export-time transformation; the legacy mask hook covers a narrower set of SDK-created attributes. Choose the installed-version mechanism using the masking documentation, and test a synthetic secret in nested metadata and an exception. Collector-side filtering occurs after data leaves the application, so place it within the approved trust boundary.

Prompt management and evaluation

Record dataset revision, prompt version, model identifier, tool configuration and evaluator definition. Keep evaluator errors distinct from low scores. A judge response must pass a bounded schema and finite-range validation; never convert arbitrary model text directly with float() and call it measured quality. Calibrate judgments against reviewed examples and report disagreement. Separate user feedback from an automatic judge score.

…

Häufige Fragen

Was sind „Spans“?

Spans sind Protokolleinträge einzelner Ereignisse in deiner KI-Anwendung. Sie zeigen, was passiert ist, wann es passiert ist und wie lange es gedauert hat.

Schützt Langfuse meine sensiblen Daten?

Ja, Langfuse kann sensible Informationen maskieren oder weglassen, bevor sie zur Überwachung übertragen werden. So bleibt deine Privatsphäre geschützt.

Kann ich Langfuse mit verschiedenen Programmiersprachen nutzen?

Ja, Langfuse unterstützt Integrationen für Python und JavaScript sowie beliebte Frameworks wie LangChain und LlamaIndex.

Details

Originalbeschreibung des Autors

Expert in Langfuse - the open-source LLM observability platform. Covers tracing, prompt management, evaluation, datasets, and integration with LangChain, LlamaIndex, and OpenAI. Essential for debugging, monitoring, and improving LLM applications in production.

repo: sickn33/agentic-awesome-skills

Beliebtheit

GitHub-Sterne
48k
Platz im Ranking
#5025
Lizenz
MIT
Aktualisiert
15.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills