Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Feature: configurable trace tags (filter traces by agent/tool in shared projects)

Abierto
#34 1 comentario 0 reacciones 1 asignado Ver en GitHub

@bezbac ya está trabajando en esto.

Desde el 31/8/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

[Langfuse] feat-tracing feature integration-opencode integrations

Problem

The plugin exports traces without any tags. In a shared Langfuse project that receives traces from multiple agent tools (Claude Code, OpenCode, Hermes, Codex...), there is no way to filter traces by which tool produced them.

Notably, the Claude Code plugin already hardcodes a claude-code trace tag on every trace, so traces from different tools are inconsistently filterable.

For example — we self-host Langfuse and aggregate traces from several coding agents into one project. Claude Code traces can be filtered by tag, OpenCode traces cannot:

Tool Trace tags in UI
Claude Code plugin claude-code
OpenCode plugin (none)

Proposed solution

Add an optional tags field to the credentials config (~/.config/opencode/opencode-langfuse.json):

{
  "publicKey": "pk-lf-...",
  "secretKey": "sk-lf-...",
  "tags": ["opencode", "production"]
}

plus a LANGFUSE_TAGS env var (comma-separated) for env-only setups, mirroring the existing env-var pattern (LANGFUSE_USER_ID, LANGFUSE_SERVICE_NAME, ...).

Implementation: a makeTraceTagsSpanProcessor following the existing makeUserIdSpanProcessor pattern, setting the langfuse.trace.tags OTTL attribute on every span — @langfuse/core's OTEL endpoint maps this attribute to Langfuse trace tags.

Workaround currently in use

Manually patching dist/index.js in the opencode plugin cache to add one span.setAttribute("langfuse.trace.tags", ...) line. Works, but is wiped on every plugin update.


Use case: multi-agent observability rollouts where one Langfuse project serves a whole team's coding agents and dashboards/queries filter by agent type.

I have a PR ready implementing this (config file + env var, merged & de-duplicated, capped at 50 tags, README updated).

Lenguaje dominante
TypeScript
Estrellas
30
Forks
18
Merge medio
4 h 24 min
PR fusionados (30 d)
5

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de langfuse/opencode-observability-plugin

Todos los issues de langfuse/opencode-observability-plugin

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.