Esta página se muestra en inglés. Una traducción al español está en curso.
SkillsMay 11, 2026·2 min de lectura

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.

Listo para agents

Instalación lista para agent

Este activo puede instalarse después de elegir el runtime, revisar el plan y ejecutar el comando correspondiente.

Native · 98/100Política: permitir
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: Established
Entrada
Asset
Comando de instalación directa
npx -y tokrepo@latest install 16fe280b-3881-4aae-85b8-2576cb8de8d3 --target codex

Ejecutar después de confirmar el plan con dry-run.

Introducción

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.


🙏

Fuente y agradecimientos

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

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados