Instrumentation
SQLORM can be instrumented using OpenTelemetry.
It supports automatic instrumentation or can be enabled manually:
from sqlorm.opentelemetry import SQLORMInstrumentor
SQLORMInstrumentor().instrument(engine=engine)
You can optionally configure SQLAlchemy instrumentation to enable sqlcommenter which enriches the query with contextual information.
SQLORMInstrumentor().instrument(enable_commenter=True, commenter_options={})