-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opentelemetry-autoinstrumentation causes pymsql connection erros #1213
Comments
…ated to … (open-telemetry#1213)" This reverts commit 270b73f.
@srikanthccv Was this fixed by #1346? I'm still seeing the same error with the |
No, I don't think they are related. I think this was referenced mistakenly. |
This should be fixed in #1424 |
Please re-open if it's not fixed in #1424 |
Hi @rogersd and @srikanthccv, How to reproduce
Notes
Logs
Interesting factsIf I add |
Looking at https://github.com/vasireddy99/opentelemetry-lambda/blob/main/python/src/otel/otel_sdk/requirements-nodeps.txt it looks like they're still using
|
I was looking at the tag section and the latest one I saw was 0.35b0, so I imagined that was the one. |
Describe your environment Describe any aspect of your environment relevant to the problem, including your Python version, platform, version numbers of installed dependencies, information about your cloud hosting provider, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on main.
and I have these env vars set:
Steps to reproduce
Describe exactly how to reproduce the error. Include a code sample if applicable.
I run my application like this:
opentelemetry-instrument python3 ./<mypyscript.py>
What is the expected behavior?
What did you expect to see?
This runs just fine if i dont add opentelemetry-instrument
What is the actual behavior?
What did you see instead?
Stack trace
opentelemetry-instrument python3 ./tuna/import_configs.py -t recurrent_alex_opentelemetry_22_nchw --mark_recurrent -f utils/configs/conv_configs_NCHW.txtInvalid key value resource attribute pair null: not enough values to unpack (expected 2, got 1)
Invalid key value resource attribute pair null: not enough values to unpack (expected 2, got 1)
Invalid key value resource attribute pair null: not enough values to unpack (expected 2, got 1)
Invalid key value resource attribute pair null: not enough values to unpack (expected 2, got 1)
Invalid key value resource attribute pair null: not enough values to unpack (expected 2, got 1)
Invalid key value resource attribute pair null: not enough values to unpack (expected 2, got 1)
Invalid key value resource attribute pair null: not enough values to unpack (expected 2, got 1)
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/engine/base.py", line 2336, in _wrap_pool_connect
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/pool/base.py", line 364, in connect
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/pool/base.py", line 778, in _checkout
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/pool/base.py", line 495, in checkout
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/pool/impl.py", line 140, in _do_get
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/util/langhelpers.py", line 68, in exit
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/util/compat.py", line 182, in raise_
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/pool/impl.py", line 137, in _do_get
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/pool/base.py", line 309, in _create_connection
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/pool/base.py", line 440, in init
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/pool/base.py", line 664, in __connect
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/event/attr.py", line 314, in exec_once_unless_exception
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/event/attr.py", line 285, in _exec_once_impl
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/event/attr.py", line 322, in call
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/util/langhelpers.py", line 1406, in go
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/engine/strategies.py", line 200, in first_connect
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/dialects/mysql/base.py", line 2509, in do_rollback
File "/usr/local/lib/python3.9/dist-packages/pymysql/connections.py", line 431, in rollback
File "/usr/local/lib/python3.9/dist-packages/pymysql/connections.py", line 742, in _execute_command
pymysql.err.InterfaceError: (0, '')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/miopenpdb/workspace/Test_mb_alex_opentelemetry/./tuna/import_configs.py", line 239, in
File "/home/miopenpdb/workspace/Test_mb_alex_opentelemetry/./tuna/import_configs.py", line 231, in main
File "/home/miopenpdb/workspace/Test_mb_alex_opentelemetry/./tuna/import_configs.py", line 208, in import_cfgs
File "/home/miopenpdb/workspace/Test_mb_alex_opentelemetry/tuna/db_tables.py", line 56, in connect_db
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/engine/base.py", line 2234, in execute
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/engine/base.py", line 2302, in _contextual_connect
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/engine/base.py", line 2339, in _wrap_pool_connect
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/engine/base.py", line 1583, in _handle_dbapi_exception_noconnection
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/util/compat.py", line 182, in raise_
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/engine/base.py", line 2336, in _wrap_pool_connect
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/pool/base.py", line 364, in connect
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/pool/base.py", line 778, in _checkout
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/pool/base.py", line 495, in checkout
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/pool/impl.py", line 140, in _do_get
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/util/langhelpers.py", line 68, in exit
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/util/compat.py", line 182, in raise_
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/pool/impl.py", line 137, in _do_get
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/pool/base.py", line 309, in _create_connection
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/pool/base.py", line 440, in init
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/pool/base.py", line 664, in __connect
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/event/attr.py", line 314, in exec_once_unless_exception
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/event/attr.py", line 285, in _exec_once_impl
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/event/attr.py", line 322, in call
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/util/langhelpers.py", line 1406, in go
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/engine/strategies.py", line 200, in first_connect
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/dialects/mysql/base.py", line 2509, in do_rollback
File "/usr/local/lib/python3.9/dist-packages/pymysql/connections.py", line 431, in rollback
File "/usr/local/lib/python3.9/dist-packages/pymysql/connections.py", line 742, in _execute_command
sqlalchemy.exc.InterfaceError: (pymysql.err.InterfaceError) (0, '')
(Background on this error at: http://sqlalche.me/e/13/rvf5)
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
script returned exit code 1
Additional context
This is my first go at adding instrumentation to our project, so please bare with me as i navigate this.
It seems like adding the instrumentation to any scripts that launch db connections fail in the same way.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: