context not propagated from kagent -> kagent-tools
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- go
- Ambito
- distributed-systems, observability
Direzione di ricerca
Inizia tracciando la propagazione del contesto tra gli span kagent execute_tool e gli span kagent-tools mcp.tool e commands.execute mostrati nel report. Riproduci la traccia e analizza la gestione delle richieste e dello span context rilevanti; il lavoro è completato quando i valori di parentSpanId di kagent-tools puntano agli span execute_tool corrispondenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
}
}
]
- Lingua principale
- Go
- Stelle
- 36
- Fork
- 29
- Merge medio
- 3g 23h
- PR unite (30g)
- 3
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di kagent-dev/tools
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
kagent-dev/tools#87 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
kagent-dev/tools#54 ·
-
[FEATURE] Add a limit parameter to k8s_get_resources to bound context growthForse già presa @anjosluc l’ha presa 19 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
kagent-dev/tools#82 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
kagent-dev/tools#80 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
kagent-dev/tools#69 · 1 commento ·
Tutte le issue di kagent-dev/tools
Issue simili
-
[submenu] nil issue on ubuntu 26.04Forse già presa @egoist l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
prime-radiant-inc/evener#3873 ·
I maintainer di solito rispondono entro 1 giorno
-
extract_llm_sweep / cache_aware_summarizer prefix ask 400s when thinking.budget_tokens exceeds PrefixAskMaxTokensForse già presa @amiddavid l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
rossoctl/context-guru#405 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
router-for-me/CLIProxyAPI#6423 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni