Toolverse
All skills

langfuse-reference-architecture

by jeremylongshore

Production-grade Langfuse architecture patterns and best practices.\nUse when designing LLM observability infrastructure, planning Langfuse deployment,\nor implementing enterprise-grade tracing architecture.\nTrigger with phrases like \

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Security

About this skill

Production-grade Langfuse architecture patterns and best practices.\nUse when designing LLM observability infrastructure, planning Langfuse deployment,\nor implementing enterprise-grade tracing architecture.\nTrigger with phrases like \

How to use

  1. Upewnij się, że masz Node.js 18 lub nowszy oraz zainstalowane pakiety: @langfuse/tracing, @langfuse/otel i @opentelemetry/sdk-node. Skill wymaga zrozumienia systemów rozproszonych i asynchronicznych wzorców programowania.

  2. Stwórz plik konfiguracyjny (np. src/lib/tracing.ts) z singletonem SDK. Zainicjalizuj NodeSDK z LangfuseSpanProcessor, który będzie odpowiedzialny za wysyłanie śladów do Langfuse. Użyj AsyncLocalStorage do propagacji kontekstu między asynchronicznymi operacjami.

  3. Wybierz architekturę na podstawie skali: dla poniżej 100K śladów dziennie użyj bezpośredniego SDK z Langfuse Cloud, dla 100K–1M śladów dodaj batching i rozważ self-hosted, dla ponad 1M śladów wdrożź queue-buffered z samplingiem na infrastrukturze self-hosted z wysoką dostępnością.

  4. Skonfiguruj korelację śladów między usługami, aby śledzić żądania przechodzące przez wiele serwisów. Propaguj identyfikatory śladów w nagłówkach HTTP i kontekście asynchronicznym.

  5. Dostosuj konfiguracje dla różnych środowisk (development, staging, production) — zmień endpointy Langfuse i poziomy samplingiu w zależności od potrzeb.

  6. Testuj architekturę z rzeczywistymi obciążeniami, monitoruj opóźnienia wysyłania śladów i dostosuj rozmiary batchy oraz strategie samplingiu w razie potrzeby.

Related skills

feishu-docs

by openclaw

飞书文档(Docx)API技能。用于创建、读取、更新和删除飞书文档。支持Markdown/HTML内容转换、文档权限管理。

Security
1574

python-expert

by Shubhamsaboo

Senior Python developer expertise for writing clean, efficient, and well-documented code.\nUse when: writing Python code, optimizing Python scripts, reviewing Python code for best practices,\ndebugging Python issues, implementing type hints, or when user mentions Python, PEP 8,

Security
2777

youtube-watcher

by openclaw

Fetch and read transcripts from YouTube videos. Use when you need to summarize a video, answer questions about its content, or extract information from it.

Security
2231

payload

by payloadcms

Use when working with Payload CMS projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Use when debugging validation errors, security issues, relationship queries, transactions, or hook behavior.

Security
50171

obsidian

by gapmiss

Comprehensive guidelines for Obsidian.md plugin development including all 27 ESLint rules, TypeScript best practices, memory management, API usage (requestUrl vs fetch), UI/UX standards, and submission requirements. Use when working with Obsidian plugins, main.ts files,

Security
14111

security-compliance

by davila7

Guides security professionals in implementing defense-in-depth security architectures, achieving compliance with industry frameworks (SOC2, ISO27001, GDPR, HIPAA), conducting threat modeling and risk assessments, managing security operations and incident response, and embedding

Security
1172