Add span for connection phase#1134
Conversation
|
|
ocelotl
left a comment
There was a problem hiding this comment.
Thanks for the contribution! We need at least one test case that validates these changes are correct 🙂
|
@ocelotl no problem!
Can you guide me through an example? You mean UT? Also, I saw that some tests are failing now so I'll fix it |
|
@ocelotl Fixed all tests and they pass now. Also - they're covering the connect phase, as every test use |
|
@ocelotl |
|
you probably wanted to add listen on connect similar to this |
|
@srikanthccv So - initially, I thought about this approach too. Still, the problem is that if I add a listener to the Unfortunately, |
|
@shahargl makes sense |
…/opentelemetry-python-contrib into feature/sqlalchemy-connect-span
|
@ocelotl updated the code to allow SQLAlchemy 1.1 too |
...ntelemetry-instrumentation-sqlalchemy/src/opentelemetry/instrumentation/sqlalchemy/engine.py
Outdated
Show resolved
Hide resolved
...ntelemetry-instrumentation-sqlalchemy/src/opentelemetry/instrumentation/sqlalchemy/engine.py
Outdated
Show resolved
Hide resolved
…pentelemetry/instrumentation/sqlalchemy/engine.py Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
...ntelemetry-instrumentation-sqlalchemy/src/opentelemetry/instrumentation/sqlalchemy/engine.py
Outdated
Show resolved
Hide resolved
…pentelemetry/instrumentation/sqlalchemy/engine.py Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
instrumentation/opentelemetry-instrumentation-sqlalchemy/tests/test_sqlalchemy.py
Outdated
Show resolved
Hide resolved
|
@ocelotl @srikanthccv - fixed the tests :) feel free to approve/merge |
I see some tests failing, please take a look, @shahargl |
…/opentelemetry-python-contrib into feature/sqlalchemy-connect-span
|
@ocelotl fixed, can you report the status so the tests will run? |
instrumentation/opentelemetry-instrumentation-sqlalchemy/tests/test_sqlalchemy.py
Outdated
Show resolved
Hide resolved
...ntelemetry-instrumentation-sqlalchemy/src/opentelemetry/instrumentation/sqlalchemy/engine.py
Show resolved
Hide resolved
…/opentelemetry-python-contrib into feature/sqlalchemy-connect-span
|
@ocelotl |
|
@ocelotl So idk why, do you have idea? Also, fixed the |
Description
I've added the code that adds #1133
Fixes #1133
#1133
Type of change
Please delete options that are not relevant.
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.