Cette page est affichée en anglais. Une traduction française est en cours.
SkillsMay 11, 2026·2 min de lecture

openllmetry-js — OpenTelemetry for LLM Apps

Add OpenTelemetry traces to Node.js LLM apps with OpenLLMetry JS so you can debug latency, tool calls, and RAG steps. Works with a standard OTEL backend.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Asset
Commande d'installation directe
npx -y tokrepo@latest install 16fe280b-3881-4aae-85b8-2576cb8de8d3 --target codex

À exécuter après confirmation du plan en dry-run.

Introduction

Add OpenTelemetry traces to Node.js LLM apps with OpenLLMetry JS so you can debug latency, tool calls, and RAG steps. Works with a standard OTEL backend.

  • Best for: Node.js teams who want trace-level visibility into LLM calls and tool/RAG pipelines
  • Works with: Node.js, OpenTelemetry collectors, tracing backends (Jaeger, OTEL-compatible vendors)
  • Setup time: 14 minutes

Quantitative Notes

  • Setup time ~14 minutes (npm install + OTEL exporter config)
  • GitHub stars + forks (verified): see Source & Thanks
  • Aim for <1% overhead by sampling traces (e.g., 1/100 requests in prod)

Practical Notes

Good traces answer: where time went and what failed. Model calls, retrieval, tool execution, and output parsing should each be a span. Record request IDs, model name, and high-level outcome, but avoid logging raw prompts—store hashes or redacted summaries to keep privacy and cost under control.

Safety note: Treat traces as sensitive: redact prompts, mask PII, and set retention limits.

FAQ

Q: Is this vendor-specific? A: No. It uses OpenTelemetry so you can export to any OTEL-compatible backend.

Q: What should I trace first? A: Start with LLM latency + token usage (if available), then add spans for retrieval and tools.

Q: How do I control cost? A: Use sampling, redact sensitive attributes, and keep span attributes small.


🙏

Source et remerciements

GitHub: https://github.com/traceloop/openllmetry-js Owner avatar: https://avatars.githubusercontent.com/u/125419530?v=4 License (SPDX): Apache-2.0 GitHub stars (verified via api.github.com/repos/traceloop/openllmetry-js): 398 GitHub forks (verified via api.github.com/repos/traceloop/openllmetry-js): 68

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires