feat(telemetry): add complete adapter-function lifecycle observability

Abierto
#1,466 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
python

Línea de trabajo

The issue does not name implementation files or tests. When resumed, first read the adapter implementations for LocalFile, Embedded, and ServerMediated and the existing phase-duration metric producers; map their real lifecycle and outcome paths before proposing changes. Done means lifecycle semantics are documented, spans and metrics agree, and tests cover each supported adapter’s success and failure paths.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area/adapter-functions area/telemetry enhancement p2 triage/accepted

Status

Deferred on 2026-08-27. This is now independent backlog work, not an active Epic #929 deliverable.

The reviewed draft PR #1558 implemented LocalFile activation/deactivation spans through the hook/plugin pattern, but that is only one slice of adapter observability. It was closed rather than merged because the broader capability needs a coherent lifecycle and metric contract across adapter realities.

Problem

Mellea needs useful, truthful observability for adapter-function work across LocalFile, Embedded, ServerMediated, and future bindings. The existing phase-duration metrics and any future spans must describe the same lifecycle without counting setup work as function invocation or fabricating an outcome before one exists.

Scope when resumed

  • Define lifecycle boundaries and invocation semantics for each adapter reality.
  • Add spans only where a real invocation outcome is available.
  • Preserve existing metric-only events where no matching invocation exists.
  • Cover LocalFile setup, activation, generation, parsing, and release as appropriate.
  • Add equivalent observability for Embedded and future adapter realities when their real outcome paths are known.
  • Decide whether content capture and metric exemplars are worth supporting, then make their trace context explicit.

Out of scope

  • A LocalFile-only activation/deactivation slice.
  • Treating setup work as an adapter-function invocation merely to create a span.
  • Inventing spans for metric-only request edits.

Acceptance criteria

  • Each supported adapter reality has documented lifecycle and invocation semantics.
  • Spans and metrics agree on what counts as an invocation and a phase.
  • No backend imports telemetry.tracing; plugins own span creation.
  • Metric-only producers remain valid without fabricated trace correlation.
  • Tests cover each supported adapter reality and its failure paths.
Lenguaje dominante
Python
Estrellas
1.8k
Forks
161
Merge medio
4 d 3 h
PR fusionados (30 d)
45

Preparar el entorno

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 generative-computing/mellea

Todos los issues de generative-computing/mellea

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.