Un-cap the `dbos` extra; add `opentelemetry-instrumentation-logging` as a test dependency instead
Follow-up to #7804. That PR capped the public dbos extra to <2.31.0 to unblock a release quickly, but the real scope is narrower — see the correction on the upstream issue: https://github.com/dbos-inc/dbos-transact-py/issues/832#issuecomment-5441876955 (wrong link fixed below).
What actually breaks
dbos>=2.31.0's DBOS.__init__ imports opentelemetry.instrumentation.logging.handler.LoggingHandler whenever enable_otlp=True, but only declares that package under their own optional [otel] extra. A bare DBOS() construction is unaffected — verified directly, and confirmed by the dbos maintainer (dbos-inc/dbos-transact-py#832).
Our own tests/test_dbos.py fixture sets enable_otlp=True to cover DBOS's OTLP integration — that's the only place we hit this, not real end-user usage of the dbos extra.
The fix
- Revert the
dbos<2.31.0cap on the public extra — real users aren't affected by this regardless of dbos version. - Add
opentelemetry-instrumentation-loggingto our owndevdependency group instead, so our test suite has what it needs.
Verified locally: with dbos==2.31.0 resolved and this dev dependency present, tests/test_dbos.py passes.
Checklist
- Any AI generated code has been reviewed line-by-line by the human PR author, who stands by it.
- No breaking changes in accordance with the version policy.
- Any permitted compatibility impact has a label, warning, migration, release note, and exact API-check waiver.
- PR title is fit for the release changelog.