Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

context not propagated from kagent -> kagent-tools

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
go

調査の方向性

まず、レポートに示されている kagent execute_tool スパンと kagent-tools mcp.tool および commands.execute スパンの間でコンテキストがどのように伝播しているかを追跡します。トレースを再現し、関連するリクエストとスパンコンテキストの処理を調べます。完了の条件は、kagent-tools の parentSpanId の値が対応する execute_tool スパンを指していることです。

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

説明

Notice the parentSpanId of the spans with the "kagent-tools" service name doesn't match any of the execute_tool spans:

[

    {
        "traceId": "a018c8f8b5321be6e92fa7b2577d625a",
        "spanId": "680c9e0d2afce47d",
        "parentSpanId": "13a166e55d04d943",
        "serviceName": "kagent",
        "operationName": "execute_tool k8s_get_resources",
        "startTime": {
            "seconds": 1757086452,
            "nanos": 268017589
        },
        "duration": {
            "seconds": 0,
            "nanos": 365
        }
    },
    {
        "traceId": "a018c8f8b5321be6e92fa7b2577d625a",
        "spanId": "3d73b1b80ed13686",
        "parentSpanId": "13a166e55d04d943",
        "serviceName": "kagent",
        "operationName": "execute_tool k8s_get_resources",
        "startTime": {
            "seconds": 1757086452,
            "nanos": 270561422
        },
        "duration": {
            "seconds": 0,
            "nanos": 361
        }
    },

    {
        "traceId": "a018c8f8b5321be6e92fa7b2577d625a",
        "spanId": "e0e4dc496e64afbb",
        "parentSpanId": "bd36e757ec38d1b8",
        "serviceName": "kagent-tools",
        "operationName": "commands.execute",
        "spanAttributes": [
            {
                "key": "args",
                "value": "[\"get\",\"deployment\",\"-o\",\"wide\"]"
            },
            {
                "key": "built_args",
                "value": "[\"get\",\"deployment\",\"-o\",\"wide\"]"
            },
            {
                "key": "built_command",
                "value": "\"kubectl\""
            },
            {
                "key": "cached",
                "value": "false"
            },
            {
                "key": "command",
                "value": "\"kubectl\""
            },
            {
                "key": "result_length",
                "value": "\"10538\""
            }
        ],
        "startTime": {
            "seconds": 1757086452,
            "nanos": 277799922
        },
        "duration": {
            "seconds": 0,
            "nanos": 352
        }
    },
    {
        "traceId": "a018c8f8b5321be6e92fa7b2577d625a",
        "spanId": "a843d1cc5f6ff4bd",
        "parentSpanId": "2f672f2e70ec5615",
        "serviceName": "kagent-tools",
        "operationName": "commands.execute",
        "spanAttributes": [
            {
                "key": "args",
                "value": "[\"get\",\"pod\",\"-o\",\"wide\"]"
            },
            {
                "key": "built_args",
                "value": "[\"get\",\"pod\",\"-o\",\"wide\"]"
            },
            {
                "key": "built_command",
                "value": "\"kubectl\""
            },
            {
                "key": "cached",
                "value": "false"
            },
            {
                "key": "command",
                "value": "\"kubectl\""
            },
            {
                "key": "result_length",
                "value": "\"3129\""
            }
        ],
        "startTime": {
            "seconds": 1757086452,
            "nanos": 277838380
        },
        "duration": {
            "seconds": 0,
            "nanos": 354
        }
    },
    {
        "traceId": "a018c8f8b5321be6e92fa7b2577d625a",
        "spanId": "2f672f2e70ec5615",
        "parentSpanId": "099bafa83362c5ff",
        "serviceName": "kagent-tools",
        "operationName": "mcp.tool.k8s_get_resources",
        "spanAttributes": [
            {
                "key": "http",
                "value": "{\"header\":{\"User-Agent\":\"python-httpx/0.28.1\"},\"parent_span_id\":\"099bafa83362c5ff\",\"parent_trace_id\":\"a018c8f8b5321be6e92fa7b2577d625a\"}"
            },
            {
                "key": "mcp",
                "value": "{\"request\":{\"arguments\":\"{\\\"output\\\":\\\"wide\\\",\\\"resource_type\\\":\\\"pod\\\"}\",\"id\":\"k8s_get_resources\"},\"result\":{\"content_count\":\"1\",\"is_error\":false},\"tool\":{\"duration_seconds\":0.356380375,\"name\":\"k8s_get_resources\"}}"
            }
        ],
        "startTime": {
            "seconds": 1757086452,
            "nanos": 275590964
        },
        "duration": {
            "seconds": 0,
            "nanos": 356
        }
    },
    {
        "traceId": "a018c8f8b5321be6e92fa7b2577d625a",
        "spanId": "bd36e757ec38d1b8",
        "parentSpanId": "c79764444c62a556",
        "serviceName": "kagent-tools",
        "operationName": "mcp.tool.k8s_get_resources",
        "spanAttributes": [
            {
                "key": "http",
                "value": "{\"header\":{\"User-Agent\":\"python-httpx/0.28.1\"},\"parent_span_id\":\"c79764444c62a556\",\"parent_trace_id\":\"a018c8f8b5321be6e92fa7b2577d625a\"}"
            },
            {
                "key": "mcp",
                "value": "{\"request\":{\"arguments\":\"{\\\"output\\\":\\\"wide\\\",\\\"resource_type\\\":\\\"deployment\\\"}\",\"id\":\"k8s_get_resources\"},\"result\":{\"content_count\":\"1\",\"is_error\":false},\"tool\":{\"duration_seconds\":0.353295,\"name\":\"k8s_get_resources\"}}"
            }
        ],
        "startTime": {
            "seconds": 1757086452,
            "nanos": 276565214
        },
        "duration": {
            "seconds": 0,
            "nanos": 353
        }
    }
]
主要言語
Go
スター
36
フォーク
29
平均マージ
3日 23時間
マージ済み PR(30日)
3

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

kagent-dev/tools のほかの issue

kagent-dev/tools の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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