-
Notifications
You must be signed in to change notification settings - Fork 278
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 extra connection params as tags for JDBC statements #7055
Conversation
@@ -122,6 +124,8 @@ protected String dbHostname(final DBInfo info) { | |||
public AgentSpan onConnection(final AgentSpan span, DBInfo dbInfo) { | |||
if (dbInfo != null) { | |||
processDatabaseType(span, dbInfo.getType()); | |||
span.setTag(DB_WAREHOUSE, dbInfo.getWarehouse()); |
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.
nit: a null check on the value can be done before setting the tag (same for the schema) to avoid synchronizing the map of tags at span level for nothing.
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.
lgtm
Connection string for Snowflake contains additional attributes we want to add to spans as tags: