SDK
Python SDK
Description
In the two code examples on the Pydantic AI integration page, the first two Python code snippets include the following import:
from sentry_sdk.integrations.openai import OpenAIIntegration
This import is however not used in the further code and has no intended side-effects that are needed for proper tracing. It does however give an error if the openai package is not installed, which is not correct.
I think this is a leftover from an older workaround, which was removed here: https://github.com/getsentry/sentry-docs/pull/15675/changes#diff-c4cf302beb9756f2cc64183534fbdef108dfe4fa330612789205c5340bb16dee
Suggested Solution
Remove the following line from both snippets on this page:
from sentry_sdk.integrations.openai import OpenAIIntegration
I can create a PR to do this if you want.
SDK
Python SDK
Description
In the two code examples on the Pydantic AI integration page, the first two Python code snippets include the following import:
This import is however not used in the further code and has no intended side-effects that are needed for proper tracing. It does however give an error if the
openaipackage is not installed, which is not correct.I think this is a leftover from an older workaround, which was removed here: https://github.com/getsentry/sentry-docs/pull/15675/changes#diff-c4cf302beb9756f2cc64183534fbdef108dfe4fa330612789205c5340bb16dee
Suggested Solution
Remove the following line from both snippets on this page:
I can create a PR to do this if you want.