[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EFB80CC65VR0JEVJZ36HH5":3,"skill-same:01M6EFB80CC65VR0JEVJZ36HH5":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6EFB80CC65VR0JEVJZ36HH5","langtrace",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Flangtrace\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# Langtrace — Open-Source LLM Observability\n\nYou are an expert in Langtrace, the open-source observability platform for LLM applications built on OpenTelemetry. You help developers trace LLM calls, RAG pipelines, agent tool use, and chain executions with automatic instrumentation for OpenAI, Anthropic, LangChain, LlamaIndex, and 20+ providers — providing cost tracking, latency analysis, token usage, and quality evaluation in a self-hostable dashboard.\n\n## Core Capabilities\n\n### Auto-Instrumentation\n\n```typescript\n\u002F\u002F Automatic tracing — one line setup\nimport * as Langtrace from \"@langtrase\u002Ftypescript-sdk\";\n\nLangtrace.init({\n  api_key: process.env.LANGTRACE_API_KEY,\n  batch: true,                            \u002F\u002F Batch spans for performance\n  instrumentations: {\n    openai: true,\n    anthropic: true,\n    langchain: true,\n    pinecone: true,\n    chromadb: true,\n  },\n});\n\n\u002F\u002F Now all LLM calls are automatically traced\nimport OpenAI from \"openai\";\nconst openai = new OpenAI();\n\n\u002F\u002F This call is automatically instrumented — no code changes needed\nconst response = await openai.chat.completions.create({\n  model: \"gpt-4o\",\n  messages: [{ role: \"user\", content: \"Explain quantum computing\" }],\n});\n\u002F\u002F Langtrace captures: model, tokens, latency, cost, input, output\n```\n\n### Python with Decorators\n\n```python\nfrom langtrace_python_sdk import langtrace, with_langtrace_root_span\nfrom langtrace_python_sdk.utils.with_root_span import with_additional_attributes\n\nlangtrace.init(api_key=\"your-api-key\")\n\n@with_langtrace_root_span(\"rag-pipeline\")\nasync def answer_question(query: str) -> str:\n    \"\"\"Full RAG pipeline — every step traced automatically.\"\"\"\n\n    # Step 1: Embed query (traced)\n    embedding = await openai.embeddings.create(\n        model=\"text-embedding-3-small\", input=query,\n    )\n\n    # Step 2: Vector search (traced if Pinecone\u002FChroma instrumented)\n    results = index.query(vector=embedding.data[0].embedding, top_k=5)\n\n    # Step 3: Generate answer (traced)\n    context = \"\\n\".join([r.metadata[\"text\"] for r in results.matches])\n    response = await openai.chat.completions.create(\n        model=\"gpt-4o\",\n        messages=[\n            {\"role\": \"system\", \"content\": f\"Answer using this context:\\n{context}\"},\n            {\"role\": \"user\", \"content\": query},\n        ],\n    )\n\n    return response.choices[0].message.content\n\n# Custom attributes for filtering\n@with_additional_attributes({\"user.tier\": \"pro\", \"feature\": \"search\"})\n@with_langtrace_root_span(\"search\")\nasync def pro_search(query: str):\n    return await answer_question(query)\n```\n\n### Evaluation\n\n```python\nfrom langtrace_python_sdk import langtrace\nfrom langtrace_python_sdk.utils.with_root_span import with_langtrace_root_span\n\n# Run evaluations and track scores\n@with_langtrace_root_span(\"evaluate-rag\")\nasync def evaluate_rag(test_set: list[dict]):\n    results = []\n    for test in test_set:\n        answer = await answer_question(test[\"query\"])\n\n        # Score with LLM-as-judge\n        eval_response = await openai.chat.completions.create(\n            model=\"gpt-4o\",\n            messages=[{\n                \"role\": \"user\",\n                \"content\": f\"\"\"Score this answer 1-5 for relevance and accuracy.\n                Question: {test['query']}\n                Expected: {test['expected']}\n                Got: {answer}\n                Return JSON: {{\"relevance\": N, \"accuracy\": N}}\"\"\",\n            }],\n        )\n        scores = json.loads(eval_response.choices[0].message.content)\n        results.append({**scores, \"query\": test[\"query\"]})\n\n    # All evaluation traces visible in Langtrace dashboard\n    avg_relevance = sum(r[\"relevance\"] for r in results) \u002F len(results)\n    avg_accuracy = sum(r[\"accuracy\"] for r in results) \u002F len(results)\n    return {\"avg_relevance\": avg_relevance, \"avg_accuracy\": avg_accuracy}\n```\n\n## Installation\n\n```bash\n# TypeScript\nnpm install @langtrase\u002Ftypescript-sdk\n\n# Python\npip install langtrace-python-sdk\n\n# Self-hosted\ndocker run -p 3000:3000 langtrace\u002Flangtrace-client\n```\n\n## Best Practices\n\n1. **One-line setup** — `langtrace.init()` auto-instruments all supported libraries; no per-call changes\n2. **OpenTelemetry native** — Exports standard OTLP traces; send to Jaeger, Grafana, Datadog alongside Langtrace\n3. **Cost tracking** — Automatic cost calculation per model per call; aggregate by user, feature, or pipeline\n4. **Root spans** — Use `@with_langtrace_root_span` to group related calls into a single trace (RAG pipeline, agent run)\n5. **Custom attributes** — Add user ID, feature flags, A\u002FB test groups; filter and compare in dashboard\n6. **Self-hosted** — Deploy your own instance for data privacy; no vendor lock-in\n7. **Evaluation tracking** — Log evaluation scores alongside traces; track quality regressions over time\n8. **Batch mode** — Enable `batch: true` for production; reduces overhead by batching span exports\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Flangtrace",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill langtrace",{"tool":37,"command":38},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill langtrace",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill langtrace","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Flangtrace\u002FSKILL.md",true,[],[46,55,64,73,79,85],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[52,53,54],"model","model hierarchy","model hierarchy skill",{"skillNo":56,"name":57,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[61,62,63],"MCP","zoom","zoom mcp",{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[70,71,72,62],"sdk","zoom apps sdk","apps",{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[75],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[81],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[87]]