getsentry / getsentry/sentry-python

Verify `Agent.run_sync()` and `pydantic_ai.direct.model_request()` span coverage

Aperta
#5,841 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Python Spans Task
Lingua principale
Python
Stelle
2.2k
Fork
669
Merge medio
1g 1h
PR unite (30g)
213

Descrizione

`Agent.run_sync()` is not directly patched but likely works transitively since it calls `Agent.run()` internally. This should be verified with a test.

`pydantic_ai.direct.model_request()` is a standalone LLM call API that bypasses Agent entirely. The `Model.request` patch in `patches/model_request.py` may catch the underlying call, but this also needs verification.

Both should have explicit tests confirming span creation.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.