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

オープン
#1,466 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python
領域
observability

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
Python
スター
1.8k
フォーク
161
平均マージ
4日 3時間
マージ済み PR(30日)
45

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

generative-computing/mellea のほかの issue

generative-computing/mellea の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。