Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TortoiseORM instrumentation] Fix AttributeError: type object 'Config' has no attribute 'title' #1575

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ async def _from_queryset(self, func, modelcls, args, kwargs):

model_config = getattr(modelcls, "Config", None)
if model_config:
model_title = getattr(modelcls.Config, "title")
model_title = getattr(modelcls.Config, "title", modelcls.__name__)
if model_title:
span_attributes["pydantic.model"] = model_title

Expand Down