Skip to content

[Bug] skywalking-python mysqlclent db not in param when use django  #8581

@katelei6

Description

@katelei6

Search before asking

  • I had searched in the issues and found no similar issues.

Apache SkyWalking Component

Python Agent (apache/skywalking-python)

What happened

when i use django and mysqlclient , import skywalking, the error is
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/skywalking/plugins/sw_mysqlclient.py", line 40, in _sw_connect
con.db = kwargs['db']
KeyError: 'db'

because:
image

What you expected to happen

the plugin can use db and database.

How to reproduce

I have update the plugin to compatible。
pr

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working and you are sure it's a bug!pythonPython agent related

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions