getsentry / getsentry/sentry-python

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

Open
#5,841 1 comment 0 reactions 0 assignees View on GitHub
Python Spans Task
Dominant language
Python
Stars
2.2k
Forks
669
Avg merge
1d 40m
Merged PRs (30d)
212

Description

`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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.