-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add MySQLPlugin to plugins #30
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the plugin to the doc https://github.com/apache/skywalking-nodejs#supported-libraries please
@@ -59,5 +60,6 @@ export default { | |||
Number.parseInt(process.env.SW_AGENT_MAX_BUFFER_SIZE as string, 10) : 1000, | |||
ignoreSuffix: process.env.SW_IGNORE_SUFFIX ?? '.jpg,.jpeg,.js,.css,.png,.bmp,.gif,.ico,.mp3,.mp4,.html,.svg', | |||
traceIgnorePath: process.env.SW_TRACE_IGNORE_PATH || '', | |||
mysql_sql_parameters_max_length: Math.trunc(Math.max(0, Number(process.env.SW_MYSQL_SQL_PARAMETERS_MAX_LENGTH))) || 512, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the env var to doc please
BTW, I've checked packages |
I think the latter saying makes more sense, let's add a column in the supported libraries table |
Go ahead and add the column how you want and when I test packages I will add them there. [EDIT] Never mind, have a look how I added this. |
@tom-pytel can you please also review #29 , since you're adding 2 plugins for 2 different MySQL libs. Also, if possible, add a test case in this PR? |
I can look into adding tests later, right now fighting with a PostgreSQL plugin. If you can merge this before I get the pg plugin done it will make things less messy, especially with the other mysql2 plugin... |
No description provided.