opsmill / infrahub

Infrahub - A new approach to Infrastructure Management
https://opsmill.com/
GNU Affero General Public License v3.0
181 stars 7 forks source link

fix(core, db): avoid tracing warning log #3785

Closed fatih-acar closed 2 months ago

fatih-acar commented 2 months ago

When tracing is enabled, opentelemetry warns about query_name attribute being None.

[warning  ] Invalid type NoneType for attribute 'query_name' value. Expected one of ['bool', 'str', 'bytes', 'int', 'float'] or a sequence of those types [opentelemetry.attributes]