Skip to content

Commit 6196bc8

Browse files
committed
Fix the README to reference register_engine.
Instead of register_connectable(), that is.
1 parent 072df12 commit 6196bc8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ Please see the examples directory. Overall, basic usage requires that a tracer g
2828
sqlalchemy_opentracing.set_traced(sel)
2929
conn.execute(sel)
3030
31-
By default, only statements marked to be traced are taken into account (explicitly through set_traced() or implicitly when registering its parent span through set_parent_span()). Alternatively, you can enable tracing of all queries under the registered Engine/Connection:
31+
By default, only statements marked to be traced are taken into account (explicitly through set_traced() or implicitly when registering its parent span through set_parent_span()). Alternatively, you can enable tracing of all queries under the registered Engine:
3232

3333
.. code-block:: python
3434
3535
sqlalchemy_opentracing.init_tracing(tracer, trace_all=True)
36-
sqlalchemy_opentracing.register_connectable(engine)
36+
sqlalchemy_opentracing.register_engine(engine)
3737
3838
# this statement will be traced too (without a parent span, though)
3939
with engine.begin() as conn:

0 commit comments

Comments
 (0)